CentOS6.6 install the ShadowSocks Server

Source: Internet
Author: User

CentOS6.6 install the ShadowSocks Server

1. view the system

[root@localhost~]#cat/etc/issueCentOSrelease6.6(Final)[root@localhost~]#uname-aLinuxlocalhost.localdomain2.6.32-042stab106.6#1SMPMonApr2014:48:47MSK2015x86_64x86_64x86_64GNU/Linux

2. Install ShadowSocks

#yuminstallpython-setuptools&&easy_installpip#pipinstallshadowsocks

3. Create the configuration file/etc/shadowsocks. json.

[root@localhost/]#touch/etc/shadowsocks.json[root@localhost/]#vi/etc/shadowsocks.json{"server":"138.128.208.158","server_port":443,"local_address":"127.0.0.1","local_port":1080,"password":"MyPass","timeout":600,"method":"rc4-md5"}

Note: The official encryption method uses aes-256-cfb by default, it is recommended to use rc4-md5, because RC4 is several times faster than AES.

Description of fields:

Server: server IP Address

Server_port: server port

Local_port: local port

Password: the password used for encryption

Timeout: timeout (seconds)

Method: encryption method, you can select "bf-cfb", "aes-256-cfb", "des-cfb", "rc4", etc.

4. Run the shadowsocks service in the background using the configuration file.

[root@localhost/]#ssserver-c/etc/shadowsocks.json-dstart

NOTE: If no configuration file exists, run the following command in the background:

[Root @ localhost/] # ssserver-p 443-k MyPass-m rc4-md5-d start

5. Stop the service

[root@localhost/]#ssserver-c/etc/shadowsocks.json-dstop

Refer:

Https://github.com/shadowsocks/shadowsocks/wiki/shadowsocks-usage instructions

Http://wuchong.me/blog/2015/02/02/shadowsocks-install-and-optimize/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.