Updates:
- 2016-05-27 14:25:20
- Docker enthusiast? (7MB/s)
Let’s talk about network. Chinese version.
1 | ssh -v -N -C -D 8089 -o ServerAliveInterval=60 -o ServerAliveCountMax=2048 rankun.org |
One step further.
Before long, your will see a lot of error messages like this:
1 | debug1: Connection to port 8089 forwarding to socks port 0 requested. |
Which means your just lost the connection to remote server, but you can use autossh to monitor and restart it.
1 | autossh -M 2000 -v -N -C -D 8089 -o ServerAliveInterval=60 -o ServerAliveCountMax=2048 rkus.rankun.org |
3-tier forwarding
Idea: shadowsocks + port forwarding (ssh tunnel)
1 | # Start a ssserver in a server outside of China (here: listen on oversea:993) |
The result?
Might surprise you :-)
OK, attached the video ;)
Step closer to development:
1 | ~/docker/nhweb on master ⌚ 1:08:21 |
Push code to Bitbucket (that one, normally 10-20KB/s…) can be up to 6MB/s.
Test environment: 四川省 长城宽带…
Notes:
- You will need 2 servers or at least ¥50 in your pocket to rent one.
- Some Internet are bad enough, in such condition, you will need to use a
AUTOSSH_POLL
env to force autossh check the connection health more frequent. Let’s do a checking every 5 seconds!1
export AUTOSSH_POLL=5 && autossh -M 2000 -v -g -C -N -L 8089:localhost:993 -o ServerAliveInterval=60 -o ServerAliveCountMax=2048 hz.youdar.net
Thank you for reading,
Regards,
Youdar