Help Center
How do I connect to the VPN from a remote server
If you attempt to connect to the VPN from a server that you are remotely connected to, you will lose the connection to the server as soon as the VPN connects. This is because the VPN server pushes a new default route that sends the return traffic through the VPN. To prevent this, you’ll need to edit the OpenVPN config file for the server you are connecting to and add the line below:
route A.B.C.D 255.255.255.255 net_gateway
where A.B.C.D is the IP address of the device you are connecting from.
If you don’t want to route all traffic through the VPN you can reject the default route pushed by the server by adding the directive below to the config file. You will then need to add your own static routes for the addresses you do want to route through the VPN.
route-nopull
Related Articles
- Tunnelblick - "Unable to load net.tunnelblick.tap kexts" error
- My real location is detected when connected to VPN. How to disable geolocation?
- Linux - How do I prevent VPN leaks using nftables and OpenVPN?
- I lose Internet connection when I disconnect from IVPN. Why?
- I forgot my password. What should I do?
Still have questions?
Get in touch and we'll get back to you in a few hours.
Contact supportInterested in privacy?
Read our latest privacy news and keep up-to-date on IVPN services.
Visit IVPN Blog