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, Troll) by Anonymous Coward on Sunday November 26 2017, @07:16AM (2 children)

    by Anonymous Coward on Sunday November 26 2017, @07:16AM (#601644)

    "Offtopic"? Really?

    Wow, the moderation here is based on spite, isn't it.

    Well, fuck you, whoever modded me down. Probably one of the snowflake Libertarians, who can't stand it when I point out that their ideas are based on falsehoods and ignorance.

    Starting Score:    0  points
    Moderation   -1  
       Troll=1, Total=1
    Extra 'Troll' Modifier   0  

    Total Score:   -1  
  • (Score: 1, Offtopic) by The Mighty Buzzard on Sunday November 26 2017, @12:18PM (1 child)

    by The Mighty Buzzard (18) Subscriber Badge <themightybuzzard@proton.me> on Sunday November 26 2017, @12:18PM (#601700) Homepage Journal

    Probably one of the snowflake Libertarians...

    Nope. That was your one guess. You'll just have to remain in ignorance now.

    --
    My rights don't end where your fear begins.
    • (Score: 0) by Anonymous Coward on Monday November 27 2017, @02:51AM

      by Anonymous Coward on Monday November 27 2017, @02:51AM (#601921)

      Snowflake Libertarian detected!