[日更-2019.5.5] 搭建SS伺服器
阿新 • • 發佈:2019-06-02
1 前提
在vultr註冊站好,建立伺服器。
2 安裝shadowsocks
- Debian/Ubuntu
apt-get install python-pip
pip install shadowsocks
- CentOS
yum install python-setuptools && easy_install pip
pip install shadowsocks
3 配置多使用者shadowsocks.json
-
建立shadowsocks.json檔案: vi /etc/shadowsocks.json
-
配置shadowsocks.json檔案:
{ "server":"0.0.0.0", "port_password":{ "2019":"pedro.com", "2020":"pedro.com", "2021":"pedro.com", "2022":"pedro.com", "2023":"pedro.com", "2024":"pedro.com", "2025":"pedro.com", "2026":"pedro.com", "2027":"pedro.com", "2028":"pedro.com", "2029":"pedro.com", "2030":"pedro.com" }, "local_address":"127.0.0.1", "local_port":1080, "timeout":300, "method":"aes-256-cfb", "fast_open":false }
- 啟動shadowsocks
#啟動
ssserver -c /etc/shadowsocks.json -d start
#停止
ssserver -c /etc/shadowsocks.json -d stop
4 關閉防火牆
#停止firewall
systemctl stop firewalld.service
#禁止firewall開機啟動
systemctl disable firewalld.service