Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sugarbeatsthat opened this issue Feb 3, 2020 · 3 comments

Comments

@sugarbeatsthat
Copy link

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
Copy link
Author

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

@jotyGill
Copy link
Owner

jotyGill commented Feb 4, 2020

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 jotyGill changed the title unable to run openpyn on Ubuntu 18.04 Auto manage ip routes to allow ssh or (any other service) to external IP; VPS support Feb 4, 2020
@xChr11s
Copy link

xChr11s commented Mar 1, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants