server config - month-time/shadowsocksr GitHub Wiki

ShadowsocksR 服务端配置指南


适用环境

  • 系统支持:CentOS 6+,Debian 7+,Ubuntu 12+
  • 内存要求:≥ 128M

默认配置

  • 服务器端口:从 9000-19999 之间随机生成
  • 密码:teddysun.com
  • 加密:none
  • 协议:auth_chain_a
  • 混淆:plain

协议支持

加密 协议 混淆
none origin plain
aes-256-cfb   verify_deflate http_simple        
aes-192-cfb auth_sha1_v4 http_simple_compatible   
aes-128-cfb auth_sha1_v4_compatible http_post     
aes-256-cfb8 auth_aes128_md5 http_post_compatible     
aes-192-cfb8 auth_aes128_sha1 tls1.2_ticket_auth     
aes-128-cfb8 auth_chain_a tls1.2_ticket_auth_compatible 
aes-256-ctr auth_chain_b tls1.2_ticket_fastauth 
aes-192-ctr auth_chain_c tls1.2_ticket_fastauth_compatible
aes-128-ctr auth_chain_d
chacha20-ietf auth_chain_e
chacha20 auth_chain_f
salsa20
xchacha20
xsalsa20
rc4-md5      

注 1:表中项目并无一一对应关系。

注 2:表中项目的具体说明参见协议插件文档

使用步骤

1.安装 wget,若已安装,则可忽略这一步

CentOS: yum install wget -y

Debian\Ubuntu: apt-get install wget

2.一键脚本安装 SSR

wget --no-check-certificate https://raw.githubusercontent.com/ikacarrot/shadowsocksr/master/shadowsocksR.sh
chmod +x shadowsocksR.sh
./shadowsocksR.sh 2>&1 | tee shadowsocksR.log

注 1:安装过程按需配置,推荐端口为80/443这种常用端口,如果不想用常用端口,则尽量设置为30000以上,加密为none,协议为auth_chain_a,混淆为plain,安装完成后即已后台启动,且已自动加入开机自启动。

注 2:相关优化参见 ShadowsocksR 优化指南

相关命令

启动: /etc/init.d/shadowsocks start

停止: /etc/init.d/shadowsocks stop

重启: /etc/init.d/shadowsocks restart

状态: /etc/init.d/shadowsocks status

卸载: ./shadowsocksR.sh uninstall

文件路径

安装目录: /usr/local/shadowsocks

日志文件: /var/log/shadowsocks.log

配置文件: /etc/shadowsocks.json

注:有关配置文件的具体说明参见配置文件说明