32MB.CN

Using ProxyChains & Shadowsocks to Synchronize codes on Ubuntu 14.04 in China
China is a fantastic country that you can not visit Googl...
扫描右侧二维码阅读全文
07
2016/03

Using ProxyChains & Shadowsocks to Synchronize codes on Ubuntu 14.04 in China

China is a fantastic country that you can not visit Google,Facebook,Youtube and etc.Sometimes,github.com is unavaliable for chinese too.So I need to find a stable way to synchronize codes.
I have tried vpn/openvpn and goagent,but all are too slow,especially vpn connection are offen reset by G*W in China.
Then I found a 'Chinese VPN Protocol' called Shadowosocks.Doesn't like vpn,just a chinese special secure sock5 proxy protocol,it's traffic characteristics are not obvious.So G*W cannot easy to detect the traffic through Shadowsocks.
Here's the guide for Using ProxyChains & Shadowsocks to Synchronize codes on Ubuntu 14.04 in China.
1.You need to own a vps.
Cheaper is better.
2.Install Shadowsocks on VPS
Click here to check for how-tos
3.Install & Configure Shadowsocks-Qt5 on PC
Shadowsocks-Qt5 is a 3rd party clients for Shadowsocks.

I'm usting Ubuntu
PPA is for Ubuntu >= 14.04.

sudo add-apt-repository ppa:hzwhuang/ss-qt5
sudo apt-get update
sudo apt-get install shadowsocks-qt5

Check for "how-tos on other systems".

After you installed Shadowsocks-Qt5,you must configure it before use.
[menu]->[Connection]->[Add]->[Manually]
Input the infomation you have configure on your server.

connect to your vps.

4.Install & Configure proxychains

sudo apt-get install proxychains

proxychains looks for config file in following order:
1) ./proxychains.conf
2) ${HOME}/.proxychains/proxychains.conf
3) /etc/proxychains.conf

so,you can edit /etc/proxychains.conf for applying proxies to every account on your pc.

sudo nano /etc/proxychains.conf

congfig file example is listed as fllowed:

strict_chain
proxy_dns 
remote_dns_subnet 224
tcp_read_time_out 15000
tcp_connect_time_out 8000
localnet 127.0.0.0/255.0.0.0
quiet_mode

[ProxyList]
socks5  127.0.0.1 1080

save config file.now you can use proxychains to synchronize codes.

proxychains [command]
Last modification:February 14th, 2019 at 07:30 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment