Halaman

Jumat, 07 Maret 2014

Route internet traffic over the VPN

In order to pass normal internet traffic through the remote server, we must run two more commands. If you’re not the administrator of the VPN server we recommend that you first check that you have been given permission to do this, or you may find that the remote server disallows it.

To do this, we will make the VPN server our default gateway for all internet connections. But since we need to be able to reach it over the internet before that will work, we must first set an explicit route to the VPN server.

$ ip route add <the IP address of your VPN server> via <the IP address of your current internet gateway>                          

You can run ip route show default if you’re not sure of the gateway address. Finally, we set the new default route for all other locations to go through our VPN gateway:

$ ip route add default via <VPN gateway>                         

Check that you have internet connection: you can use a utility such as mtr or traceroute to confirm that traffic is indeed being routed through the VPN server.

Tidak ada komentar:

Posting Komentar