New answers tagged

1

By coincidence I found the problem. I run the following command:root@vpnServer:/etc/openvpn# iptables -t nat -L -n -v --line-numbers Chain PREROUTING (policy ACCEPT 81998 packets, 22M bytes) num pkts bytes target prot opt in out source destination Chain INPUT (policy ACCEPT 9509 packets, 694K bytes) num pkts bytes target ...


0

client routing table before starting vpn client Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.1.1 0.0.0.0 UG 100 0 0 eth0 10.10.0.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0 169.254.0.0 0.0.0.0 255.255.0.0 U ...


0

You need to add an IP alias 192.168.1.1/24 to the same interface where 172.20.1.0/24 is configured. The kernel will add a directly connected route automatically. Then you need to configure a web server like nginx, apache, lightttpd to be able to server web pages on http://192.168.1.1


Top 50 recent answers are included