Install the ShadowSocks server on CentOS 6.6

Source: Internet
Author: User

Install the ShadowSocks server on CentOS 6.6

Install the ShadowSocks server on CentOS 6.6

1. view the system
[Root @ localhost ~] # Cat/etc/issue
CentOS release 6.6 (Final)
[Root @ localhost ~] # Uname-
Linux localhost. localdomain 2.6.32-042stab106. 6 #1 SMP Mon Apr 20 14:48:47 MSK 2015 x86_64 x86_64 x86_64 GNU/Linux

2. Install ShadowSocks
# Yum install python-setuptools & easy_install pip
# Pip install shadowsocks

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-d start

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-d stop

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.