Jump to content
Not connected, Your IP: 3.14.246.52
Sign in to follow this  
yoyall

Preferred port for ssh

Recommended Posts

I recently noticed that my openvpn speeds weren't great. It didn't matter whether I was connecting via udp or tcp or a specific port. And so I tried connecting via ssl and ssh tunnels.  Both were surprsingly much faster. So, I have two questions, please:

 

1) Am I correct in my understanding that openvpn via a ssh tunnel is more efficient and generally preferred over openvpn via a ssl tunnel?

 

2) For openvpn via a ssh tunnel, which port is preferred and recommended?

 

Thanks much for the assistance and advice!

Share this post


Link to post

If using the SSH tunnel on port 22 performs at speeds you are happy with, I recommend you use that.

 

Unfortunately, I am not able to answer the first question and am interested in knowing myself.

Share this post


Link to post

Technically speaking a standard openvpn UDP connection should be the fastest.

 

But if you're getting throttled use what works for you. SSH has slightly more overhead than SSL. Generally I get better pings on SSL.

Both are fast @ raw bandwidth however both will have more overhead than just openvpn + UDP. -because its essentially a second tunnel that has to encrypt/decrypt data.

 

SSH port is really your choice. Pick one, if its not throttled run it.

Share this post


Link to post

For the SSH tunnel, you have only port 22 to go with right now.

Air could make the SSH daemon listen on more ports, however in most cases it is the best to leave it on the default one - that's the purpose

of the tunnel (To maintain a real SSH connection to the standard 22 port)


Occasional moderator, sometimes BOFH. Opinions are my own, except when my wife disagrees.

Share this post


Link to post

Thanks for this. Yes, rickjames, you're right that openvpn+udp is the ideal.  But after not being able to speed things up by changing udp ports or even switching to tcp (which I know is chattier), I decided to try openvpn+ssl and openvpn+ssh. I have to say that a part of me prefers openvpn+ssl because there's then no trace of the openvpn signature.

 

Zhang888, when I go to the config generator, I have an option with openvpn+ssh of ports 22, 53 and 80.  So, it looks like the AirVPN team are already on top of that.

 

But I think I now get it - more overhead with openvpn+ssh and the specific port on openvpn+ssh shouldn't matter - just leave it set to 22.

 

Cheers!

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
Sign in to follow this  

×
×
  • Create New...