ShadowsocksR One-Click Install Script

Shadowsocks
This script is suitable for the following environments:
Supported systems: CentOS, Debian, Ubuntu
Memory requirement: ≥128M
Date: July 27, 2017

About this script:
One-click installation of the ShadowsocksR server.
Please download the corresponding client program to connect.
(Among the clients below, only the Windows client and the Python client can use the new SSR features; other original clients can only connect to the SSR
server in a compatible way.)

Default configuration:
Server port: set by yourself (if not set, the default is 8989)
Password: set by yourself (if not set, the default is teddysun.com)
Encryption method: set by yourself (if not set, the default is aes-256-cfb)
Protocol: set by yourself (if not set, the default is origin)
obfs: set by yourself (if not set, the default is plain)

Client downloads:
Windows / OS
X

Linux
Android / iOS
OpenWRT

Usage:
Log in as the root user and run the following commands:

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

After the installation is complete, the script will display the following prompt:

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!

Uninstallation method:
Log in as the root user and run the following command:

./shadowsocksR.sh uninstall

After installation is complete, ShadowsocksR will already be running in the background. Run:

/etc/init.d/shadowsocks status

to check whether the ShadowsocksR process has started.
After this script finishes installing, ShadowsocksR will also be automatically added to start on boot.

Commands:
Start: /etc/init.d/shadowsocks start
Stop: /etc/init.d/shadowsocks stop
Restart: /etc/init.d/shadowsocks restart
Status: /etc/init.d/shadowsocks status

Configuration file path: /etc/shadowsocks.json
Log file path: /var/log/shadowsocks.log
Code installation directory: /usr/local/shadowsocks

Multi-user configuration example:

{
"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
}

If you want to modify the configuration file, please refer to:
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

Changelog:
July 27, 2017:
1. Added: optional protocol auth_chain_b
. To use this protocol, you need to update to the latest version (4.7.0) of the ShadowsocksR client;
2. Changed: updated the ShadowsocksR source code download URL.

July 22, 2017:
1. Added: during installation, you can choose one of 13 encryption methods (none
means no encryption). As shown below:

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. Added: during installation, you can choose one of 7
protocols. As shown below:

origin
verify_deflate
auth_sha1_v4
auth_sha1_v4_compatible
auth_aes128_md5
auth_aes128_sha1
auth_chain_a
auth_chain_b

3. Added: during installation, you can choose one of 9 obfuscation methods. As shown below:

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

August 13, 2016:
1. Added a multi-user configuration example. Note: if you add a new port, you also need to open that port in the firewall (iptables
or firewalld).

May 12, 2016:
1. Added firewall rule settings for CentOS.

Reference link:
https://github.com/shadowsocksr/shadowsocksr

Leave a Comment

Your email address will not be published. Required fields are marked *

中文 EN
🚀

RedGate VPN

免费节点太挤太慢?
升级高速稳定专线

立即体验 →

告别卡顿

RedGate VPN
全球高速节点

免费下载 →
Scroll to Top