How to install Shadowsocks server on Centos 7

How to install Shadowsocks server on Centos 7

This article explain how to install Shadowsocks server on Centos 7, create configuration and connecting Shadowsocks client to your server.

Shadowsocks is secure socks5 proxy, designed to protect your Internet traffic.

You can also use Shadowsocks to bypass blocked internet.

If your school, office or government is blocking your internet, you can easily bypass with Shadowshocks.

The advantages of Shadowshocks:

  • Super Fast, Bleeding edge techniques using Asynchronous I/O and Event-driven programming.
  • Flexible Encryption, Secured with industry level encryption algorithm. Flexible to support custom algorithms.
  • Mobile Ready, Optimized for mobile device and wireless network, without any keep-alive connections.
  • Cross Platform, Available on most platforms, including Windows, Linux, Mac, Android, iOS, and OpenWRT.
  • Open Source, Totally free and open source. A worldwide community devoted to deliver bug-free code and long-term support.
  • Easy Deployment, Easy deployment with pip, aur, freshports and many other package manager systems.

You can read more about Shadowshocks on https://shadowsocks.org/en/index.html or on Github page.

If you want to use it yourself, you can buy a VPS and install the Shadowsocks server and use it without a hitch or share speed with others.

Instead of subscribing to a VPN, it’s still cheap if you subscribe to a small VPS with a low specification, 1 processor and 1GB of RAM, the price between 3-5 USD.

Install Shadowsocks server on Centos 7

Update your Linux system repositories, then download and install all the dependencies:

Example you want to use /usr/src. Now change to your designed directory and clone Shadowshocks from github

Create the Shadowsocks configuration file on /etc/shadowsocks/shadowsocks.json.

By default Shadowsocks port is 8388.

You can change it to custom configuration on shadowsocks.json.

In this case we use port 26789. Below sample working Shadowshocks configuration file for /etc/shadowsocks/shadowsocks.json

Create Shadowsocks Systemd service

Shadowsocks Systemd service to allows the daemon to automatically start on system boot and run in the background.

Using nano, vim or text editor in /etc/systemd/system/shadowsocks.service and then paste the following code.

Systemd Shadowsocks.service
Systemd Shadowsocks.service

Change permission /etc/systemd/system/shadowsocks.service to 755.

Reload daemon, enable and start shadowsocks.service

Add firewall rule on Shadowshocks port that you specify on your configuration, example port 26789.

Shadowshocks server running, you need to download Shadowshocks client and use your Shadowshocks server.

Download Shadowshocks client at https://shadowsocks.org/en/download/clients.html

Shadowsocks Client on Ubuntu

On Ubuntu and any modern 64-bit PC Linux distributions that newer than Debian Wheezy, you can download the latest AppImage file from Releases page https://github.com/shadowsocks/shadowsocks-qt5/releases and then add execution permission.

Connect Shadowsocks client on Ubuntu to your server.

  1. Click Connection
  2. Choose Add -> Manually
  3. Server address is IP Shadowsocks server IP (178.128.xxx.xxx)
  4. Server Port is Shadowsocks server port (26789)
  5. Password id Shadowsocks server
  6. Encryption is Shadowsocks server method (aes-256-gcm)
  7. Save and giva name of profile
  8. For start on boot or auto connect choose setting menu
Shadowsocks client setting
Shadowsocks client setting

Set your chrome or firefox to socks proxy and then check your IP address.

Make sure that public see your Shadowsocks server address, not your device IP address.

Shadowsocks does not have proxy setting. If you have problem because your internet using proxy server, please read this article How to redirect traffic through proxy using Proxychains

Shadowsocks Client on Android

Go to Google Play Store and search Shadowsocks or click here https://play.google.com/store/apps/details?id=com.github.shadowsocks

Open Shadowsocks client on Android, click plus icon on top to add new connection, choose manual setting and fill your server detail.

Add profile Shadowsocks client on Android
Add profile Shadowsocks client on Android

Click menu, choose setting for additional setting is available, auto connect, TCP Fast open and other setting.

Shadowsocks client setting on Android
Shadowsocks setting om Android

Click logo to connect. Don’t forget to check your IP address to make sure it’s your server’s IP address.

Shadowsocks Client on Mac OS

After download and run Shadowsocks on Mac, icon will appear on top right of your Mac OS.

Shadowsocks client on Mac OS
Shadowsocks Client on Mac OS

Click the icon, then go to server and choose Server Preferences. You will see window like below.

Add configuration of Shadowsocks client on Mac OS
Add configuration of Shadowsocks client on Mac OS

Click Plus sign on bottom left. And configure youre server detail.

Shadowsocks client configuration on Mac OS
Shadowsocks client configuration on Mac OS

Leave a Reply

Your email address will not be published. Required fields are marked *