Jump to content
Not connected, Your IP: 3.142.124.119

Recommended Posts

Hi, I'm trying to understand how to SSH into a server (like a DO droplet with Ubuntu 20.04, headless), and then activate the VPN. Would I get immediately disconnected? Can I a) make an exception so that only SSH avoids the VPN (like split tunnel?) b) Could I use port forwarding to open port back to my port 22, and assuming I can find the correct IP, I can then do like $: SSH user@airvpnIP -p 65536 ... knowing this goes back to port 22??

tl;dr I don't want my server's IP exposed, but want to SSH into it and run a VPN 

PS how do I install and run in Ubuntu using Bash only, can't find an easy guide for this?

Share this post


Link to post

First, forward a port with a DDNS name set, remote port random, local port 22.
Then run the VPN via systemd service. See the Suite download page and the documentation.
Connect using ddnsname.airdns.org:remoteport.


NOT AN AIRVPN TEAM MEMBER. USE TICKETS FOR PROFESSIONAL SUPPORT.

LZ1's New User Guide to AirVPN « Plenty of stuff for advanced users, too!

Want to contact me directly? All relevant methods are on my About me page.

Share this post


Link to post
22 hours ago, RANDOMstring6677 said:

Hi, I'm trying to understand how to SSH into a server (like a DO droplet with Ubuntu 20.04, headless), and then activate the VPN. Would I get immediately disconnected? Can I a) make an exception so that only SSH avoids the VPN (like split tunnel?) b) Could I use port forwarding to open port back to my port 22, and assuming I can find the correct IP, I can then do like $: SSH user@airvpnIP -p 65536 ... knowing this goes back to port 22??

tl;dr I don't want my server's IP exposed, but want to SSH into it and run a VPN 

PS how do I install and run in Ubuntu using Bash only, can't find an easy guide for this?


You would lose your SSH connection when OpenVPN or Wireguard change the default gateway in the routing table. But you can avoid this by doing some configuration first.

See this:

https://github.com/tool-maker/VPN_just_for_torrents/wiki/Maintaining-SSH-Access-Using-a-VPN-on-a-Remote-Linux-Server

EDIT: By the way, if you are not very experienced with Linux on VPS providers, I suggest you remove "UFW" ("Uncomplicated Firewall") if it is installed. The default Ubuntu installation at Digital Ocean might include this. The last VPS I set up at VULTR did. And it took me a while to realize this was blocking just about everything for no good reason. If you want a more restrictive firewall, add it back in once you have your stuff working.

EDIT2 : To install or remove software without a GUI using bash/SSH use the "apt-get" and/or the "apt" command.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image

×
×
  • Create New...