电脑软件工具集

Shadowsocks服务搭建和使用

2018-04-08  本文已影响16人  诺之林

目录

服务器

本文服务器基于阿里云(香港)

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

客户端

shadowsocks-server-02.png shadowsocks-server-03.png
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
export HTTP_PROXY=socks5://127.0.0.1:1086;export HTTPS_PROXY=socks5://127.0.0.1:1086

参考

上一篇下一篇

猜你喜欢

热点阅读