A tutorial on setting up Shadowsocks scientific Internet configuration on Linux VPS

Source: Internet
Author: User
Tags chmod json vps server port git clone


Shadowsocks is a lightweight socks agent software, built on a VPS, the speed is really good.

First, use a key script installation

1. Installation Method:

Log on using the root user to run the following command:

wget http://soft.clang.cn/ftp/shadowsocks/shadowsocks.sh
chmod +x shadowsocks.sh
./shadowsocks.sh

When the installation is complete, the script prompts as follows:


Congratulations, shadowsocks install completed!
Your Server ip:209.**.**.**
Your Server port:8388
Your password:123456
Your Local ip:127.0.0.1
Your Local port:1080
Your Encryption METHOD:AES-256-CFB

Welcome to visit:http://clang.cn/blog/
Enjoy it!

2. Manually edit the configuration file

Configuration file path:/etc/shadowsocks.json

Nano/etc/shadowsocks.json

3. Uninstall Method:

Log on using the root user to run the following command:

./shadowsocks.sh Uninstall

4, the use of the command:

/etc/init.d/shadowsocks Start #启动
/etc/init.d/shadowsocks Stop #停止
/etc/init.d/shadowsocks Restart #重启
/etc/init.d/shadowsocks Status #状态
-------------------------I'm a split line-------------------------

Second, Debian/ubuntu compile installation
1. Compile and install Shadowsocks

First install the package required for compilation:

Apt-get Update
Apt-get-y install build-essential autoconf libtool git

Then download the source code through git, and then go to the directory to compile the installation:

git clone https://github.com/madeye/shadowsocks-libev.git
CD Shadowsocks-libev
./configure--PREFIX=/USR
Make && make install

After the installation is complete, configure the service and configuration files:

Mkdir-p/etc/shadowsocks-libev
CP./debian/shadowsocks-libev.init/etc/init.d/shadowsocks-libev
CP./debian/shadowsocks-libev.default/etc/default/shadowsocks-libev
CP./debian/config.json/etc/shadowsocks-libev/config.json
chmod +x/etc/init.d/shadowsocks-libev

To set the power-on self boot:

UPDATE-RC.D Shadowsocks-libev Defaults

2. Configure Shadowsocks configuration file
Single User Profile sample

To modify a configuration file command:

Nano/etc/shadowsocks-libev/config.json

To modify the server address and server_port and how to encrypt:

Default

{
"Server": "Your_server_ip",
"Server_port": 8388,
"Local_address": "127.0.0.1",
"Local_port": 1080,
"Password": "Ilovechina",
"Timeout": 300,
"Method": "AES-256-CFB",
"Fast_open": false
}

Meaning of each field:

Default

server     server IP (ipv4/ipv6), note that this will also be the IP address or input 0.0.0.0 that the service side listens to
server_port      Server Port
local_port      local side port
password         Password to encrypt
timeout         timeout (seconds)
method           encryption method, can choose "BF-CFB", "AES-256-CFB", "DES-CFB", "RC4", and so on. The default is an unsecured encryption, which is recommended with the "AES-256-CFB"
Multiuser multiport configuration file Sample
Default


{
"Server": "Your IP address or 0.0.0.0",
"Local_address": "127.0.0.1",
"Local_port": 1080,
"Port_password": {
"9000": "Password0",
"9001": "Password1",
"9002": "Password2",
"9003": "Password3",
"9004": "Password4"
},
"Timeout": 300,
"Method": "AES-256-CFB",
"Fast_open": false
}

3, the use of orders.

/etc/init.d/shadowsocks-libev Stop #停止
/etc/init.d/shadowsocks-libev Start #启动
/etc/init.d/shadowsocks-libev Restart #重启

Third, the client downloads the address:
Windows & OS X clients
http://sourceforge.net/projects/shadowsocksgui/files/dist/

iOS client
Https://itunes.apple.com/us/app/shadowsocks/id665729974?ls=1&mt=8

Android Client
Http://apps.evozi.com/apk-downloader/?id=com.github.shadowsocks

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.