SSH Tunnel – Local and Remote Port Forwarding Explained With Examples
blog.sensible.io
blog.sensible.io
"Now let's stop here for a little bit an explain what is actually going on. In the first example the 9000:github.com:80 is actually saying forward my local port 9000 to github.com at port 80."
However at that point there is no example that uses github.com as an argument.
Edit: In fact there's possibly an issue with the ports being talked about in one of the examples too; 8000 vs 9000.
Re: using multiple ports for OpenVPN, I do this too, and it works well in conjunction with remote-random configured on the client side. In my experience using the same IP/port for OpenVPN for long periods of time can get that combo blocked after a few days. TCP seems to have better throughout than UDP for me, although this didn't used to be the case.
Subscribe to a VPN service (or rent a cheap VPS and set up your own).
Install these apps on your phone:
- Pleco (chinese dictionary)
- Baidu Maps (百度地图)
- WeChat (微信)
Email me (address in profile) if you want specific advice on VPN etc. or if you want to grab a beer in Beijing
Hint for an addition: I find it easier to specify tunneling in ~/.ssh/config file (LocalForward and RemoteForward directives).
The LocalForward and RemoteForward takes two arguments instead of one, so I had to use:
LocalForward localhost:8000 localhost:80
There were a lot of examples online of the syntax being just like the command line, so mine's either very outdated or it was recently changed.