简易安装脚本

本脚本适用的环境包括:
系统:CentOS、Debian、Ubuntu
内存要求:≥128M
发布日期:2017年07月27日
脚本简介:
此脚本可便捷地安装ShadowsocksR服务端。
请下载相应的客户端程序以便进行连接。
(仅Windows和Python客户端支持SSR的新特性,其他原版客户端仅能兼容连接SSR服务器)
默认配置:
服务器端口:用户自设(未设定时默认为8989)
密码:用户自设(未设定时默认为teddysun.com)
加密方式:用户自设(未设定时默认为aes-256-cfb)
协议(Protocol):用户自设(未设定时默认为origin)
混淆(obfs):用户自设(未设定时默认为plain)
客户端下载:
Windows / OS X
Linux
Android / iOS
OpenWRT
使用说明:
请使用root用户登录并运行以下命令:
wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocksR.sh chmod +x shadowsocksR.sh ./shadowsocksR.sh 2>&1 | tee shadowsocksR.log 安装完成后,脚本将显示如下提示:
Congratulations, ShadowsocksR server install completed! Your Server IP :your_server_ip Your Server Port :your_server_port Your Password :your_password Your Protocol :your_protocol Your obfs :your_obfs Your Encryption Method:your_encryption_method Welcome to visit:https://shadowsocks.be/9.html Enjoy 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
多用户配置示例:
{ "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
https://github.com/breakwa11/shadowsocks-rss/blob/master/ssr.md
https://github.com/breakwa11/shadowsocks-rss/wiki/config.json
更新日志:
2017年07月27日:
1. 新增可选协议(protocol)auth_chain_b。使用此协议需更新至最新版(4.7.0)ShadowsocksR客户端;
2. 修改源码下载地址。
2017年07月22日:
1. 新增可选13种加密方式(none为不加密),如下:
none aes-256-cfb aes-192-cfb aes-128-cfb aes-256-cfb8 aes-192-cfb8 aes-128-cfb8 aes-256-ctr aes-192-ctr aes-128-ctr chacha20-ietf chacha20 rc4-md5 rc4-md5-6 2. 新增可选7种协议(protocol),如下:
origin verify_deflate auth_sha1_v4 auth_sha1_v4_compatible auth_aes128_md5 auth_aes128_sha1 auth_chain_a auth_chain_b 3. 新增可选9种混淆(obfs),如下:
plain http_simple http_simple_compatible http_post http_post_compatible tls1.2_ticket_auth tls1.2_ticket_auth_compatible tls1.2_ticket_fastauth tls1.2_ticket_fastauth_compatible 2016年08月13日:
1. 新增多用户配置示例。请注意,如果新增端口,务必在防火墙中开放该端口(iptables或firewalld)。
2016年05月12日:
1. 新增CentOS下防火墙规则设置。
参考链接:
https://github.com/shadowsocksr/shadowsocksr
