openpyn-nordvpn icon indicating copy to clipboard operation
openpyn-nordvpn copied to clipboard

Auto manage ip routes to allow ssh or (any other service) to external IP; VPS support

Open sugarbeatsthat opened this issue 4 years ago • 3 comments

Ubuntu 18.04.3 LTS Python 3.6.9 openpyn 2.7.5

Hi, awesome program. I'm just having trouble running it on my Ubuntu 18.04 VPS.

I've installed it fine using "sudo python3 -m pip install --upgrade openpyn", but when I run the app, it gets to a point and just hangs. The VPS becomes unresponsive and after a few minutes disconnects me, and I have to reboot manually.

I've attached the terminal output when I run "openpyn us"

Any help would be appreciated.

Thanks.

openpyn ubuntu18_04 error log 20200203.txt

sugarbeatsthat avatar Feb 03 '20 00:02 sugarbeatsthat

Just an update: I tried to run the official NordVPN client, as well as openvpn, with similar issues. Not sure what that means, or how to troubleshoot this.

openvpn ubuntu18_04 error log 20200203.txt

nordvpn ubuntu18_04 error log 20200203.txt

sugarbeatsthat avatar Feb 03 '20 00:02 sugarbeatsthat

Hi there, Thanks.

the thing is when openvpn connects, from then on all the traffic goes through the vpn tunnel. When you are conneted via ssh, that connection can't work, as all traffic (including ssh) is trying to go out through the vpn tunnel. To make this work you have to add ip route commands saying if connection is coming in from outside send the traffic using your internet facing adopter.

See this https://unix.stackexchange.com/questions/365285/how-to-allow-ssh-into-terminal-after-connecting-to-vpn-server-using-nordvpn-serv

It is actually one of the functionalities i was working on implementing in openpyn. You know what I'll finish it and push it to the test branch.

jotyGill avatar Feb 04 '20 11:02 jotyGill

Hey,

Did somebody try this already? Couldnt get it working to allow ssh login on Debian 10. Used the following commands: ch -m 50 --p2p -t 10 -f --allow 22 -r and as well with -no-redirect-gateway.

Have I done something wrong? Of course I used the test branch.

Thanks in advance, Kind regards.

xChr11s avatar Mar 01 '20 19:03 xChr11s