Shadowsocks one-click installation script (CentOS6, 7, Ubuntu, Debian), shadowsockscentos6

Source: Internet
Author: User

Shadowsocks one-click installation script (CentOS6, 7, Ubuntu, Debian), shadowsockscentos6
Principle of Shadowsocks

For a simple understanding, Shadowsocks splits the Socks5 protocol previously created through SSH into the Server and client. The following schematic can briefly introduce its FQ principle, which is basically similar to using SSH tunnel:

Therefore, the advantage of Shadowsocks is that it solves GFW's interference problem by analyzing traffic characteristics, which is superior to SSH and VPNFQ.

Installation instructions

The Shadowsocks server has Python, libev, And go versions. In terms of system resource usage and multi-user configuration, I chose Python as the Shadowsocks server, there are already many good one-click installation scripts on the Internet, such as teddysun. However, you need to manually change the configuration file (iptables,/etc
/Shadowsocks. json ). Therefore, write one by yourself, including the installation, addition, And uninstallation functions, and integrate them into OneinStack and lnmp one-click installation packages.

How to use the one-click installation package before January 26, July 8?

Cd lnmp # If you use oneinstack (cd oneinstack) wget http://mirrors.linuxeye.com/lnmp/shadowsocks.shchmod + x shadowsocks. sh./shadowsocks. sh install # install, add users, uninstall, and follow
Shadowsocks Installation
wget http://mirrors.linuxeye.com/oneinstack.tar.gztar xzf oneinstack.tar.gzcd oneinstack./shadowsocks.sh install

The installation is successful as follows:

Your Server IP: You_Server_IPYour Server Port: 9001Your Password: oneinstackYour Local IP: 127.0.0.1Your Local Port: 1080Your Encryption Method: aes-256-cfb
Add a user to Shadowsocks
Uninstall Shadowsocks
Shadowsocks Service Management
Service shadowsocks start # start service shadowsocks stop # disable service shadowsocks restart # restart service shadowsocks status # status
Local Client

You can download shadowsocks-GUI from gui clients in Windows and OS X,

Http://sourceforge.net/projects/shadowsocksgui/files/dist

Currently the most up-to-date scheme is shadowsocks-win-2.3.1.zip and ShadowsocksX-2.6.3.dmg

If it cannot be opened, use the backup address.

Win:

. NET Framework 3.5, suitable for Windows 7 users, link: http://pan.baidu.com/s/1kTKjIxp password: j3xd

. NET Framework 4.0 for Windows 8.1 users, link: http://pan.baidu.com/s/1jUnFK password: 8220

OS X:

Link: http://pan.baidu.com/s/1mglBIBY password: 2cqe

For two systems, OS X and Windows, and mobile iOS and Android clients.

Operating system X

It is extremely convenient to use in Mac. Because the GUI has already integrated the system Pac, you do not need to set any scientific surfing posture, run ShadowsocksX directly, and then enter the account information provided by the service provider to you, after saving and running, you can directly access the Internet in all browsers,

How to configure and use Windows

Extract shadowsocks-win-2.3.1.zipand open shadowsocks.exe.

Enter the account information provided by the service provider to you,

Click OK to save. The Shadowsocks logo icon is displayed in the lower right corner of the desktop, and then right-click Enable to run the Shadowsocks logo.

Due to the complexity of the Windows system, we need to set the browser separately. This article only introduces Chrome and Firefox, which are excellent browsers. This article will not introduce other browsers, such as IE.

① Proxy SwitchySharp plug-in Chrome

Https://chrome.google.com/webstore/detail/proxy-switchysharp/dpplabbmogkhghncfbfdeeokoefdjegm? Hl = zh-CN

If you cannot access the file, you can also download the. crx file.

Link: http://pan.baidu.com/s/1jGmvMPg password: if2e

After the download is complete, drag the. crx file into the window and install it in Settings> extension.

Open the settings of Proxy SwitchySharp, create a new scenario, name it Shadowsocks, and set the port. The mode is socks5.

Then click the switch rule. Because Google may not be accessible, we will enable the switch rule. Then, in URL mode, enter * google * to configure all Google domain names and select the pattern matching as a wildcard, the scenario is Shadowsocks.

Then hook the online rule list and enter the URL as: https://autoproxy-gfwlist.googlecode.com/svn/trunk/gfwlist.txt

Check the AutoProxy compatibility list and click "Update Now". After the update is complete, save the settings,

If you do not want to use the plug-in, directly use the Global Proxy. Right-click the desktop shortcut chrome.exe and choose Properties> modify the running parameters of Chrome.exe. In the target column, add the quotation marks following the final quotation marks.

--proxy-server="socks5://127.0.0.1:1080" --host-resolver-rules="MAP * 0.0.0.0 , EXCLUDE localhost"

That is to say, change it to a similar one (1080 sets the local port for you. If you set a different port, modify it on your own)

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"--proxy-server="socks5://127.0.0.1:1080" --host-resolver-rules="MAP * 0.0.0.0 , EXCLUDE localhost"

Then run Chrome.

 

② AutoProxy 20131215 under Firefox

Because the author of AutoProxy is not updated, the new version cannot be set proxy rules later than Firefox 27.0, so we use the repaired version of xthunder author, download link: http://xthunder.googlecode.com/files/autoproxy20131215.xpi

If you cannot access, you can also access this link: http://pan.baidu.com/s/1c0rrGDq password: 9abj

Download the. xpi file, drag it into any Firefox window, and then install and restart the browser. Click the new small earth icon in the upper-right corner to set it.

Click preferences

Choose Proxy Server> edit proxy server.

Add a local port named Shadowsocks with the type of socks5.

Then click proxy rules> Add proxy rules

Subscribe to GFW List

Save the settings. You can set a global proxy or an automatic proxy. We recommend that you use an automatic proxy for a batch of websites. Then, the small earth icon in the upper right corner turns blue (automatic mode) or green (Global Mode)

Android and iOS clients

If you need local scientific Internet access, you need root for Android, And If wood has root, you can only access the Internet globally.

Touch me on the Android client:

Https://play.google.com/store/apps/details? Id = com. github. shadowsocks

If you cannot access it, you can also touch this:

Http://apps.evozi.com/apk-downloader? Id = com. github. shadowsocks

The Set account information is basically the same as that on the computer:

If iOS is not jailbroken, you can directly install the Shadowsocks app. visit:

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

This is a browser with built-in SS. It is similar to setting the account information. Click the plus sign in the upper right corner and set your account:

If iOS is jailbroken, search for Shadowsocks in Cydia and install

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.