Stories
Slash Boxes
Comments

SoylentNews is people

posted by martyb on Saturday November 25 2017, @09:47PM   Printer-friendly
from the Open-and-shut-case? dept.

http://blog.backslasher.net/ssh-openvpn-tunneling.html

The Story

I was asked to take care of a security challange - setup Redis replication between two VMs over the internet.
The VMs were in different continents, so I had keep the bandwidth impact to a minimum. I thought of 3 options:

        stunnel, which uses tunnels TCP connections via SSL
        SSH, which has TCP tunneling over it's secure channel (amongst its weponary)
        OpenVPN, which is designed to encapsulate, encrypt and compress traffic among two machines

I quickly dropped stunnel because its setup is nontrivial compared to the other two (no logging, no init file...), and decided to test SSH and OpenVPN.
I was sure that when it comes to speed, OpenVPN will be the best, because:

        The first Google results say so (and they even look credible)
                http://superuser.com/a/238801
                http://security.stackexchange.com/a/68367
                http://support.vpnsecure.me/articles/tips-tricks/comparison-chart-openvpn-pptp-ssh-tunnel
        Logic dictates that SSH tunneling will suffer from TCP over TCP, since SSH runs over TCP, [while] OpenVPN, being a VPN software, is solely designed to move packets from one place to another.

I was so sure of that, that I almost didn't test [but, after testing, the results showed that as] long as you only need one TCP port forwarded, SSH is a much faster choice, because it has less overhead. I was quite surprised.


Original Submission

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 1, Informative) by Anonymous Coward on Sunday November 26 2017, @04:21AM

    by Anonymous Coward on Sunday November 26 2017, @04:21AM (#601596)

    > Lastly, this blog posting is almost 3 years old. I now that SoylentNews can be slow, but this is ridiculous.

    It's a repost from HackerNews (discussion [ycombinator.com]), which regularly features old articles (though they usually tag them with the year). Even seeing stuff from the 70s is not unusual over there.

    Starting Score:    0  points
    Moderation   +1  
       Informative=1, Total=1
    Extra 'Informative' Modifier   0  

    Total Score:   1