Shadowsocks 配置

使用root用户登录,运行以下命令:

wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-all.sh
chmod +x shadowsocks-all.sh
./shadowsocks-all.sh 2>&1 | tee shadowsocks-all.log

安装完成后,脚本提示如下

Congratulations, your_shadowsocks_version install completed!
Your Server IP        :your_server_ip
Your Server Port      :your_server_port
Your Password         :your_password
Your Encryption Method:aes-256-cfb

Welcome to visit:https://teddysun.com/486.html
Enjoy it!

参考配置:

vi /etc/shadowsocks-python/config.json (每天进 /etc 后来发现大型软件的 config 大家都喜欢放 /etc)

{
    "server": "::",
    "server_port":8989,
    "local_address":"127.0.0.1",
    "local_port":1080,
    "port_password": {
        "8989": "pass1",
        "8388": "pass2",
    },
    "timeout":300,
    "method":"aes-256-cfb",
    "fast_open":false
}
  1. 第2行 "0.0.0.0" => "::" 可以在 ipv6 连接
    记得 enable vps 的 ipv6,和 ufw disable 关闭防火墙
  2. 修改第6行以下,可设置为多帐号使用
添加新评论