1. Using SSH tunnel.
1.1 Prepare your ssh keys (on your computer).1.2 Log in your VPS (with user name, for example, tom), in folder ~/.ssh/, edit the file: authorized_keys, add your public key there.
1.3 On your computer, use:
ssh -N -D 1080 tom@(IPAddress Of your VPS)
Now you get a sock5 proxy on port 1080 and you can use it on your browser.
2. Use shadowsocks
1. How to install shadowsocks on your VPS is simple: https://github.com/clowwindy/shadowsocks2. Configure shadowsocks with Supervisor, so it will restart if crash, very useful: https://github.com/clowwindy/shadowsocks/wiki/Configure-Shadowsocks-with-Supervisor
3. However, on Mac OS, python 'pip' may have problems. You may need to use:
sudo easy_install --upgrade pip
to upgrade pip to the latest version.
4. Now you can use (on your computer):
sslocal -c [path to your config.json]
to open the SOCK5 proxy.
3. Convert SOCK5 proxy to HTTP proxy.
1. Use brew to install privoxy:brew install privoxy
2. The config file is on /usr/local/etc/privoxy:
vim /usr/local/etc/privoxy/config
uncomment this line:
forward-socks5 127.0.0.1:8008
Here, change 8008 to the actual port your SOCKS5 uses.
No comments:
Post a Comment