用shadowsocks自制翻墙神器
- 买好服务器后,收到服务器商发来的邮件,记下里面的"公网IP:*.*.*.*"。
- 用root登入,再输入买服务器时设好的密码。
- 下面开始安装shadowsocks。shadowsocks有四个版本:Shadowsocks-Python, ShadowsocksR, Shadowsocks-Go, Shadowsocks-libev 版。这里我们用libev版。据说该版本内存占用小(600k左右),低 CPU 消耗,甚至可以安装在基于 OpenWRT 的路由器上。
在putty上运行以下命令: (注:共四条命令,‘()’表示一条命令,不要把括号复制进去。每条命令需单独回车执行。)
yum -y install wget
(wget --no-check-certificate -O shadowsocks-libev.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-libev.sh)
chmod +x shadowsocks-libev.sh
./shadowsocks-libev.sh 2>&1 | tee shadowsocks-libev.log - 配置:
服务器端口:自己设定(如不设定,默认为10465)
密码:自己设定(如不设定,默认为 teddysun.com)
加密方式:自己设定(如不设定,默认为 aes-256-gcm)
- 安装完成:
- 启动:/etc/init.d/shadowsocks start
另外使用的命令:
停止:/etc/init.d/shadowsocks stop
重启:/etc/init.d/shadowsocks restart
查看状态:/etc/init.d/shadowsocks status
卸载:./shadowsocks-libev.sh uninstall
配置文件:/etc/shadowsocks-libev/config.json - 开放防火墙端口:如果用的是搬瓦工(bandwagon)的服务器,就可以跳过这步。
-
Shadowsocks for Windows 客户端下载:
https://github.com/shadowsocks/shadowsocks-windows/releases
存入电脑后,解压缩。点击运行 - 客户端配置:
注意“代理端口”默认为1080,但容易和“迅雷”冲突,我这里改成“1070”
接着在屏幕右下角找到shadowsocks的纸飞机图标。点击鼠标右键,选择”启用系统代理“
然后把“系统代理模式”改为“全局模式”,“纸飞机”从灰色变为蓝色
- 不翻墙时,鼠标右键点击”纸飞机“,”退出“为好,否则看内网会受影响。
参考文献:秋水逸冰 《 shadowsocks 一键安装脚本》
No comments:
Post a Comment