After VPN connection is setup the following routing rule is added by default:
vpn_server_ip previous_default_gateway
This rule appears useless for me. Why it is added?
Note:
- VPN connection is not the connection that is used to connect to the Internet.
vpn_server_ip
does not belong to the virtual network.
Example:
In example I will use '$ route -n' notation. Before VPN connection was setup I had
0.0.0.0 192.168.0.1
Routing table afterward looks like following:
193.196.65.76 192.168.0.1
0.0.0.0 192.168.0.1
147.38.45.1 0.0.0.0 iface ppp0
So I can understand why
147.38.45.1 0.0.0.0 iface ppp0
is added. 147.38.45.1 the IP of a server in VPN. But I do not understand why
193.196.65.76 192.168.0.1
is added, 193.196.65.76 is the IP of dialin server. Maybe it's just a precaution for the case IP of dialin server is in VPN network?!