Frequently Asked Question

How to route internet internet from VPN client
Last Updated 2 years ago

The following How-To describes the steps to make the VPN clients connect to the internet while they are connected to their VPN network. These instructions apply to PPTP and L2TP/IPSec VPN, which by default will change the client's default gateway in order to channel all traffic through the VPN connection.

To route internet traffic via the VPN client's direct internet connection and not via the VPN connection, we need to do the following actions:

1. From the iNODE interface, go to Configuration -> System -> User Management
Choose the correct user and go to the VPN section. Choose Static for Remote IP and then set a proper IP that will always be handed to the specified user:

image




2. From the windows VPN connection of the client, edit the VPN connection, go to Networking -> Internet Protocol Version 4(TCP/IPv4) -> Properties ->Advanced and uncheck the "Use default gateway on remote network" checkbox, which is enabled by default:


image



3. Finally, connect the VPN client and after a successful connection, while still connected, open a Windows command prompt as administrator (right click on the Command Prompt and click on "Run as administrator"), and enter the following:

route -p ADD MASK

where network is the remote network we reach through the VPN connection.
where netmask is the remote network's netmask and
gateway is the IP we gave on the VPN client on the first step.
 
Be careful: Submit the command above while the VPN client is connected, or else it will fail.

With this configuration you have managed to make the VPN client get internet access through his local network 

image




In case we want the VPN client access the internet through iNODE
Go to iNODE interface under Configuration -> Firewall Service -> Translation Rules -> New Rule
Apply the configuration as shown in the picture below.

image



Select Source and choose "Create Network" from the drop-down menu and create the network of the VPN users in source.
The network show in the picture below is the default network of the VPN users who obtain their IP dynamically from the VPN server.
The IP configuration of the VPN clients is located under Configuration -> VPN Service -> General Settings .

image



Press save and the Source field will now show 'VPN_clients' like in the picture below.

image


Please Wait!

Please wait... it will take a second!