Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save VMatrix1900/5bfb4d896a55506a618ff0608a4916e3 to your computer and use it in GitHub Desktop.
Save VMatrix1900/5bfb4d896a55506a618ff0608a4916e3 to your computer and use it in GitHub Desktop.
How to setup Shadowsocks on your Ubuntu server

How to setup Shadowsocks on your Ubuntu server

Your school or company network may block the access to a few specific websites. To solve this problem, I'd highly recommend Shadowsocks, since it is the easiest proxy tool I've ever found, and it's FREE (of course iff you have your own server running).

First, ssh to your server, and install Shadowsocks using apt

$ sudo apt install shadowsocks

Create configuration file at /etc/shadowsocks/config.json, with the following content,

{
   "server":"::",
   "server_port":443,
   "local_port":0,
   "password":"password",
   "timeout":600,
   "method":"aes-256-cfb",
   "fast_open":true
}

server is set to :: to enable both ipv4 and ipv6 listening.

Don't forget to change the [password] in the block above.

Finally, we're ready to start the shadowsocks server that runs in the background by

$ sudo ssserver -c /etc/shadowsocks/config.json -d start

If you wish to stop the Shadowsocks server, do this

$ sudo ssserver -c /etc/shadowsocks/config.json -d stop

To install Shadowsocks client software on your local machine, follow the instruction in this repository on GitHub.

Cheers! Now you don't ever need to curse your school or company Internet administrator for blocking your favorite websites anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment