目录
服务器
本文服务器基于阿里云(香港)
service
sudo apt update
sudo apt install -y python-pip python-setuptools m2crypto
sudo -H pip install shadowsocks --upgrade
sudo vim /etc/shadowsocks.json
{
"server":"172.31.67.73",
"server_port":12313,
"local_address":"127.0.0.1",
"local_port":1086,
"password":"***",
"timeout":300,
"method":"rc4-md5"
}
sudo ssserver -c /etc/shadowsocks.json --log-file /tmp/ss.log -d start
iptables
sudo iptables -A INPUT -p tcp --dport 12313 -j ACCEPT
安全组
登录阿里云管理后台 设置安全组允许TCP端口12313
shadowsocks-server-01.png客户端
- MacOS客户端下载地址
- Windows客户端下载地址
- Ubuntu1604客户端
sudo apt update
sudo apt install -y python-pip python-setuptools m2crypto
sudo -H pip install shadowsocks --upgrade
vim ~/.shadowsocks.conf
{
"server":"47.75.67.227",
"server_port":12313,
"local_address":"127.0.0.1",
"local_port":1086,
"password":"***",
"timeout":300,
"method":"rc4-md5"
}
sudo sslocal -c ~/.shadowsocks.conf -d start
-
Chrome浏览器使用代理需要安装插件SwitchyOmega
-
终端使用代理需要设置环境变量
export HTTP_PROXY=socks5://127.0.0.1:1086;export HTTPS_PROXY=socks5://127.0.0.1:1086
网友评论