Share on facebook
Facebook
Share on twitter
Twitter
Share on linkedin
LinkedIn
Share on reddit
Reddit
Share on google
Google+
Share on pocket
Pocket
Share on email
Email
Share on print
Print

One Command to Install ShadowSocks(R) on your VPS/Server!

for CentOS 6+ / Ubuntu 12+ / Debian 7+

How to install ShadowSocks?

Use SSH login to your VPS or Server, then enter the ShadowRocks installation commands:

wget --no-check-certificate -O shadowsocks-all.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-all.sh chmod +x shadowsocks-all.sh ./shadowsocks-all.sh 2>&1 | tee shadowsocks-all.log

After completing ShadowSocks installation, then it will show the details below:

  • Congratulations, your_shadowsocks_version install completed!
  • Your Server IP :your_server_ip
  • Your Server Port :your_server_port
  • Your Password :your_password
  • Your Encryption Method:your_encryption_method
  • Your QR Code: (For Shadowsocks Windows, OSX, Android and iOS clients) ss://your_encryption_method:[email protected]_server_ip:your_server_port
  • Your QR Code has been saved as a PNG file path: your_path.png

How to uninstall ShadowSocks?

./shadowsocks-all.sh uninstall

ShadowSocks Commands: start | stop | restart | status

start - start shadowsocksstop - stop shadowsocks | restart - restart shadowsocks | status - check shadowsocks status

  • Shadowsocks-Python:
    /etc/init.d/shadowsocks-python start | stop | restart | status
  • ShadowsocksR:
    /etc/init.d/shadowsocks-r start | stop | restart | status
  • Shadowsocks-Go:
    /etc/init.d/shadowsocks-go start | stop | restart | status
  • Shadowsocks-libev
    /etc/init.d/shadowsocks-libev start | stop | restart | status

ShadowSocksR, Shadowsocks Python, Shadowsocks libev, Shadowsocks Go's default configuration files

  • Shadowsocks-Python
    /etc/shadowsocks-python/config.json
  • ShadowsocksR:
    /etc/shadowsocks-r/config.json
  • Shadowsocks-Go:
    /etc/shadowsocks-go/config.json
  • Shadowsocks-libev:
    /etc/shadowsocks-libev/config.json

ShadowSocks Requirements

  • System:CentOS 6+,Debian 7+,Ubuntu 12+, don't support CentOS 8
  • RAM:≥ 128M 

One Command to Install ShadowSocks(R)

  • Install Shadowsocks-Python, ShadowsocksR, Shadowsocks-Go, Shadowsocks-libev on your server;
  • Only install one ShadowSocks version every time;
  • Support intalling different  ShadowSocks versions,and every shadowsocks version has different port;

ShadowSocks default configuration

  1. Server Port:default 9000-19999 generate randomly or set up by yourself
  2. Password:default password is teddysun.com or set up by yourself
  3. Encryption Method:set up by yourself (ShadowSocks Python and ShadowSocks libev's default is aes-256-gcm; ShadowSocks R and  ShadowSocks Go's default is aes-256-cfb
  4. Protocol: set up by yourself  (default is origin, only for ShadowsocksR version)
  5. obfs: set up by yourself  (default is plain, only for ShadowsocksR version)

NOTEThe command only creats single user's configuration file, if you want add more users, please change it manually and reboot later.

ShadowSocksR, Shadowsocks Python, Shadowsocks libev, Shadowsocks Go

Encryption Methods/Protocols/obfs

ShadowSocks Python
and libev versions
have 16 encryption methods:

aes-256-gcm
aes-192-gcm
aes-128-gcm
aes-256-ctr
aes-192-ctr
aes-128-ctr
aes-256-cfb
aes-192-cfb
aes-128-cfb
camellia-128-cfb
camellia-192-cfb
camellia-256-cfb
chacha20-ietf-poly1305
chacha20-ietf
chacha20
rc4-md5

ShadowSocks Go
has 9 encryption methods:

aes-256-cfb
aes-192-cfb
aes-128-cfb
aes-256-ctr
aes-192-ctr
aes-128-ctr
chacha20-ietf
chacha20
rc4-md5

ShadowsocksR
has 15 encryption methods:

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
salsa20
xchacha20
xsalsa20
rc4-md5

ShadowsocksR
has 7 protocols:

origin
verify_deflate
auth_sha1_v4
auth_sha1_v4_compatible
auth_aes128_md5
auth_aes128_sha1
auth_chain_a
auth_chain_b

ShadowsocksR
has 9 kind of 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_f