Linux – VPN on Ubuntu server

linuxopenvpnUbuntuvpnxfce

I have an Linux server running Ubuntu 14.04. On it, I have xfce installed to act as a desktop. Additionally, I have xrdp installed so I can remote into the machine.

Once a remote session is started, I'd like to connect to a VPN. Currently, I have PIA VPN installed but every time I connect, my remote session disconnects. I've tried tinkering with settings but the same result applies.

Please reply with recommended settings or a different VPN service if this is possible.

Thanks!

Best Answer

Your problem is likely to be related to routing. Connecting to a VPN almost always involves changing the system's route table in some way. Please remember that a routing table applies to all connections, and is global to the system.

You probably need to add a static route that allows your RDP traffic to continue to use the original gateway, before the VPN changed it.

Without knowing your current route tables, and network addressing for the various systems I can't make any specific suggestions about what you need to change.

Related Question