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 machinesI 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.
(Score: 1, Insightful) by Anonymous Coward on Saturday November 25 2017, @11:33PM (2 children)
http://blog.backslasher.net/pages/about.html [backslasher.net]
(Score: 0) by Anonymous Coward on Sunday November 26 2017, @05:20AM
How bad is Nazi Hitler? Is he worse than Literal Hitler? Would either steal 40 cakes?
(Score: 2) by rob_on_earth on Monday November 27 2017, @11:11AM
JWZ has some messages for you.
https://www.google.co.uk/search?q=jwz+blog+facebook+quit&oq=jwz+blog+facebook+quit&aqs=chrome..69i57.12150j0j7&sourceid=chrome&ie=UTF-8 [google.co.uk]
TL;dr Facebook==bad