本腳本適用環境:系統支持:CentOS,Debian,Ubuntu內存要求:≥128M日期:2016 年 08 月 13 日
關于本腳本:一鍵安裝 ShadowsocksR 服務端。請下載與之配套的客戶端程序來連接。(以下客戶端只有 Windows 客戶端和 Python 版客戶端可以使用 SSR 新特性,其他原版客戶端只能以兼容的方式連接 SSR 服務器)
默認配置:服務器端口:自己設定(如不設定,默認為 8989)客戶端端口:1080密碼:自己設定(如不設定,默認為teddysun.com)
客戶端下載:Windows / OS XlinuxAndroid / iOSOpenWRT
使用方法:使用root用戶登錄,運行以下命令:
wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocksR.shchmod +x shadowsocksR.sh./shadowsocksR.sh 2>&1 | tee shadowsocksR.log安裝完成后,腳本提示如下:
Congratulations, ShadowsocksR install completed!Server ip:your_server_ipServer Port:your_server_portPassWord:your_passwordLocal IP:127.0.0.1Local Port:1080PRotocol:originobfs:plainEncryption Method:aes-256-cfb
Welcome to visit:https://shadowsocks.be/9.htmlIf you want to change protocol & obfs, reference URL:https://github.com/breakwa11/shadowsocks-rss/wiki/Server-SetupEnjoy it!
卸載方法:使用 root 用戶登錄,運行以下命令:
./shadowsocksR.sh uninstall安裝完成后即已后臺啟動 ShadowsocksR ,運行:
/etc/init.d/shadowsocks status可以查看 ShadowsocksR 進程是否已經啟動。本腳本安裝完成后,已將 ShadowsocksR 自動加入開機自啟動。
使用命令:啟動:/etc/init.d/shadowsocks start停止:/etc/init.d/shadowsocks stop重啟:/etc/init.d/shadowsocks restart狀態:/etc/init.d/shadowsocks status
配置文件路徑:/etc/shadowsocks.json日志文件路徑:/var/log/shadowsocks.log代碼安裝目錄:/usr/local/shadowsocks
多用戶配置 sample:
{"server":"0.0.0.0","server_ipv6": "[::]","local_address":"127.0.0.1","local_port":1080,"port_password":{ "8989":"password1", "8990":"password2", "8991":"password3"},"timeout":300,"method":"aes-256-cfb","protocol": "origin","protocol_param": "","obfs": "plain","obfs_param": "","redirect": "","dns_ipv6": false,"fast_open": false,"workers": 1}如果你想修改配置文件,請參考:https://github.com/breakwa11/shadowsocks-rss/wiki/Server-Setup
更新日志:2016 年 08 月 13 日:1、新增多用戶配置 sample。注意:如果你新增了端口,也要將該端口從防火墻(iptables 或 firewalld)中打開。
2016 年 05 月 12 日:1、新增在 CentOS 下的防火墻規則設置。
參考鏈接:https://github.com/breakwa11/shadowsocks-rss
另增加:單人配置
vi /etc/shadowsocks.json{ "server":"0.0.0.0", "server_ipv6":"::", "server_port":your_port, "local_address":"127.0.0.1", "local_port":1080, "password":"your_pwd", "timeout":120, "method":"aes-256-cfb", "protocol":"origin", //協議 "protocol_param":"", "obfs":"http_simple",//混淆模式 "obfs_param":"", "redirect":"", "dns_ipv6":false, "fast_open":false, "workers":1}
|
新聞熱點
疑難解答