s_s+ipv6 提升网速&免流量攻略

in 技巧百宝箱 with 0 comment

效果:

微信图片_20170427171521.png

配置ipv6地址:

Bandwagon 后台点击获取服务器ipv6地址。

服务器端搭建s_s:

使用来自teddysun.com的shadowsocks python版一键安装脚本root下执行以下命令:

wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks.sh

chmod +x shadowsocks.sh
./shadowsocks.sh 2>&1 | tee shadowsocks.log

下载编译之类的需要一段时间,中间会输入密码之类的,最后会显示:

Congratulations, shadowsocks install completed!
Your Server IP:your_server_ip
Your Server Port:8989
Your Password:your_password
Your Local IP:127.0.0.1
Your Local Port:1080
Your Encryption Method:aes-256-cfb

Welcome to visit:http://teddysun.com/342.html
Enjoy it!

shadowsocks配置文件的路径为:/etc/shadowsocks.json,内容为:

{
    "server":"your_server_ip",
    "server_port":8989,
    "local_address":"127.0.0.1",
    "local_port":1080,
    "password":"yourpassword",
    "timeout":300,
    "method":"aes-256-cfb",
    "fast_open": false
}

使用命令:

vi /etc/shadowsocks.json

编辑配置文件,将

"server":"your_server_ip"

修改为

"server":"::"

这样在ipv6环境下也能使用shadowsocks了。

shadowsocks使用命令:

启动:/etc/init.d/shadowsocks start
停止:/etc/init.d/shadowsocks stop
重启:/etc/init.d/shadowsocks restart
状态:/etc/init.d/shadowsocks status

参考资料:

[1].使用shadowsocks,搭建ipv6 VPN,让ipv4上ipv6,下载速度提升到100M

The article has been posted for too long and comments have been automatically closed.