准备工作:
1.Ubuntu服务器一台
2.本地电脑为Ubuntu(子系统或者虚拟机)
国外购买服务器地址:https://www.vultr.com/
翻墙资料:https://github.com/shadowsocks
免费上网账号地址:https://free-ss.site/
搭建本地配置
1.sudo apt update
2.sudo apt install shadowsocks-libev
3./etc/init.d/shadowsocks-libev stop
4.sudo systemctl disable shadowsocks-libev (禁用本地端服务器程序)
5.vim .ssc(服务器和本地要配置一样)
6.ss-local -c .ssc(本地端启动)
搭建服务器配置
1.sudo apt update
2.sudo apt install shadowsocks-libev
3.vim /etc/shadowsocks-libev/config.json(服务器和本地要配置一样)
4/etc/init.d/shadowsocks-libev restart
5.netstat -lpant(查看端口是否启动)
.ssc配置文件和config.json配置文件
{
"server":"45.77.230.110",
"server_port":21080,
"local_address":"0.0.0.0",
"local_port":41080,
"password":"EWQ77UYXG0UlObOz",
"method":"aes-256-gcm",
"timeout":60
}
"server":"45.77.230.110", //服务器地址
"server_port":21080, //服务器端口
"local_address":"0.0.0.0", //本地地址
"local_port":41080, //本地端口
"password":"EWQ77UYXG0UlObOz", //密码
"method":"aes-256-gcm", //加密方式
"timeout":60 //请求超时
服务器端:配置IPV4和IPV6" server":["::", "0.0.0.0"]
客户端:不需要Server,直接删除
客户端启动加IPV6 ss-local -c .ssc -s 2001:19f0:5401:5bc:54(IPV6)
发表评论: