New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Installed OpenVPN with PIA but no longer access to my VPS
Is there a way to allow VNC connections to my VPS while still having Private Internet Access in place? It seems that once OpenVPN/PIA is running, I can no longer connect to my VPS since it routes all traffic via PIA.
I am using Ubuntu 16.04 with Lubuntu GUI.
Thanks for any help!
Comments
Pretty sure this wont work with pia
Most VPN service Programs not use openvpn. They are support openvpn but their programs use IKEv2. if work want use VPN on VPS you must use openvpn apps with vpn service opvn config files.
if you were using windows, I give my own apps. I coded on vb.net.
My apps working logic : İf windows RDP connection drop, Detect this and kill vpn connection apps so network gone back original.
Maybe you will find for linux this logic or use only openvpn with config files.
good luck
This is very likely routing related. You have a couple options:
I'd only attempt the third option if you are comfortable with CLI, somewhat familiar with iptables, have at least a basic grasp on routing and preferably a VNC console to debug your config in case of lock outs.
In my case, I only need torrent to be going through VPN, so it is possible to configure OpenVPN to be only used bythe ports of the torrent client? And thus leave TLS to the VPS untouched?
Yes it's possible (might be a bit more complicated with a properitary client but i guess you could still apply the required settings) . Routing by port is a bit exotic though. Basic routing goes by destination IP and everything else is a bit of a pain. In your case it would go something like this:
That's the basic idea. Getting this right is kinda annoying though. That's why i wouldn't attempt it without some prior knowledge and a way to debug. If you feel like you want to try i can go a bit more into detail but it's not like i can just give you a foolproof step by step howto.
Word of caution with torrents: You should route your DNS through the VPN too otherwise you'll be looking up hostnames and such through your normal connection and thereby leak data. Customizing where DNS requests go is also possible but now that's really nasty.
Maybe a crazy though, dunno, but what about settin up virtualbox inside my Linux VPS to run a virtual linux instance which has PIA configured, would that work? In theory, I can still access my VPN, while the VM is happily downloading torrents via VPN.
If your VPS can take the overhead of nested virtualization that should work just fine. You could also try to save a bit of resources by avoiding the desktop environment on the host VPS and run qemu with vnc (through ssh tunnel obviously but that's fairly easy) on the commandline instead of virtualbox.
Or just use their SOCKS proxy instead...
Does SOCKS work for UDP or can you torrent over TCP?
Torrents are TCP by nature... SOCKS can do both UDP and TCP.
Interesting. Didn't know the first and wasn't sure about the second.
A suggestion for regaining access to your server would be to use your provider's "emergency console" if they provide one.
If you are using the PIA app, you have to also have the "enable portforwarding" option turned on