1. Environment Fedora 16: automatically connect to the Internet through the vro, and the machine can connect to the Internet through the route. For details, refer to PacketiX. NET vpn client installation on linux.
The previous steps in this document are correct. Due to some routing configuration problems, the VPN Server cannot be connected according to its configuration. Therefore, do not execute dhclient vpn_o and configure the network by yourself;
2. According to the comments from the above netizens, after testing, I roughly figured out how to connect. The following figure shows the Specific Network Configuration:
A) # route add-net 130.158.6.0/24 gw 192.168.1.1 dev wlan0
The CIDR Block 130.158.6.0/24 should be the public CIDR Block of the Packetix VPN Japanese server. After ping public.softether.com, the server should be able to connect directly to the server through the wireless network card wlan0, the VPN interface vpn_o should not be used;
# Ping public.softether.com
PING public.softether.com (130.158.6.51) 56 (84) bytes of data.
64 bytes from public1.softether.com (130.158.6.51): icmp_req = 1 ttl = 111 time = 394 MS
B) # dhclient vpn_o // assign an address to the vpn_o Interface
The address obtained through VPN starts with 10. It is A Class A address, and the gateway is 10.0.0.1;
# Ifconfig vpn_o
Vpn_o Link encap: Ethernet HWaddr 00: AC: 09: D7: F3: C0
Inet addr: 10.11.211.22 Bcast: 10.20.255.255 Mask: 255.0.0.0
C) The connection speed through the PacketiX VPN is slow, so it is not suitable for all addresses to pass through the VPN. Therefore, view the route table in route-n and check whether the default route passes through 10.0.0.1. Delete the route if yes: route del default gw 10.0.0.1 dev vpn_o, and then re-establish the default route: route add default gw 10.0.0.1 dev vpn_o. You only need to make some addresses pass through the VPN, such as g.cn, first ping g.cn or host g.cn
To get the IP address of g.cn, get 74.125.71.160, and use route add-host 74.125.71.160 gw 10.0.0.1 dev vpn_o to connect g.cn through VPN, VPN servers can also be connected through wlan0.