demand
now,With gfw upgrade we need more and more scientific grounds Internet,But the most common VPN speed is getting slower and slower because of interference,For now,SS is a good alternative to。Now that you have your own vps,You may wish to use it to give yourself easily build a server SS。
installation
Since the routing system is Ubuntu vps,I also use the command to do demonstrations on Ubuntu,But other similar basic system:
1 2 |
sudo apt-get install python-pip pip install shadowsocks |
This service is now installed shadowsocks,Next we come
Create profile
.json Create a profile of your favorite places,Probably syntax is as follows:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
vi /etc/shadowsocks.json { "server":"your_server_ip", "local_address": "127.0.0.1", "local_port":1080, "port_password":{ "110":"password0", "8001":"password1", "8002":"password2", "8003":"password3", "8004":"password4" }, "timeout":300, "method":"rc4-md5", "fast_open": false } |
This allows for port configuration password,I wrote the first port 110,Purpose is to tell you that your ISP probably high-speed ports shameless,If you find this kind of problem,Ports can try to write those commonly known port (port do not pay attention to your own conflicts like the vps。)
1 2 |
//如果你的vps恰好没有给小于1024端口的权限,那么你可以用iptables命令来转发端口: iptables -t nat -A PREROUTING -p tcp --dport 110 -j REDIRECT --to-ports 8686 |
This time you have configured the relevant account information,You can try
It starts service:
1 2 3 4 5 |
ssserver -c /etc/shadowsocks.json -d restart //-c 是指定配置文件 -d是后台以服务形式运行 //如果你觉得这样有些繁琐,可以使用alias命令来简化,比如: alias ssrestart='ssserver -c /etc/shadowsocks.json -d restart' //这样以后就只要输入 ssrestart 就能重新载入配置了 |
Original article written by LogStudio:R0uter's Blog » ShadowSocks build servers on vps
Reproduced Please keep the source and description link:https://www.logcg.com/archives/898.html
Thanks for sharing
Thanks for sharing,I just built a service Shadowsocks,Welcome devpn.info