- không có quyền gì trên VPN server thì... chắc là bó tay
- routing table thế kia thì... Tây mới nhìn được
- Trước khi VPN:
Code:
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 304 0 0 wlan0
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 304 0 0 wlan0
- Sau khi VPN:
Code:
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 304 0 0 wlan0
192.168.9.0 172.22.18.1 255.255.255.0 UG 0 0 0 tap0
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 304 0 0 wlan0
- Thêm một static route:
Code:
# route add -host 74.63.219.12 gw 172.22.18.1
Code:
Destination Gateway Genmask Flags Metric Ref Use Iface
74.63.219.12 172.22.18.1 255.255.255.255 UGH 0 0 0 tap0
172.22.18.0 0.0.0.0 255.255.255.0 U 0 0 0 tap0
192.168.0.0 0.0.0.0 255.255.255.0 U 304 0 0 wlan0
192.168.9.0 172.22.18.1 255.255.255.0 UG 0 0 0 tap0
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 304 0 0 wlan0
Tham khảo: http://openvpn.net/index.php/open-source/documentation/howto.html#wwwect