Make your own proxy with shadowsocks

Hello Everyone! Welcome back to ITS Tech Time. Today, we will cover setting up your own proxy with shadowsocks.

What is a proxy?

A proxy server is a server that acts as an intermediary between your machine and the server online you are connecting to. It can improve your privacy and security by hiding your IP address and shielding you from malicious activity on the remote server.

What is shadowsocks?

Shadowsocks is a secure split proxy; the Shadowsocks local component acts like a traditional SOCKS5 server and provides proxy service to clients. It encrypts and forwards data streams and packets from the client to the Shadowsocks remote component, which decrypts and forwards to the target. Replies from the target are similarly encrypted and relayed back, which decrypts and eventually returns to the original client.


Host Setup

Our first task is establishing a host machine where your shadowsocks proxy will operate

The beauty here is the flexibility. You can utilize your current machine, that extra laptop sitting idly in the corner, or opt for a cloud-hosted solution.

I’ll demonstrate the process using Digital Ocean by creating a droplet for this demonstration. As a new user, you can take advantage of this referral link and receive $200 in credit over 60 days:

Once on Digital Ocean, I’ll click ‘Create a Droplet.’ The default region usually suffices, and my preference leans towards the latest LTS version of Ubuntu. Opting for the basic shared CPU and regular SSD will typically cost around $6 per month.

Install Docker

For Ubuntu 22.04, you first need to update your existing list of packages.

sudo apt update

Next, install prerequisite packages that will let apt use packages over HTTPS.

sudo apt install apt-transport-https ca-certificates curl software-properties-common

Then, add the GPG key for the official Docker repository to your system.

curl -fsSL | sudo apt-key add -

Add the Docker repository to APT sources.

sudo add-apt-repository "deb [arch=amd64] focal stable"

Now, install Docker.

sudo apt install docker-ce

Optional: Add yourself to the docker group.

sudo usermod -aG docker <user>

Now install docker-compose as well.

apt install docker-compose

Install Shadowsocks

It is highly recommended that you setup a directory tree to make things easy to manage.

$ mkdir -p ~/fig/shadowsocks/
$ cd ~/fig/shadowsocks/
$ curl -sSLO
$ docker-compose up -d
$ docker-compose ps

This is a sample docker-compose.yml file. You can edit the port numbers and password to fit your needs.

  image: shadowsocks/shadowsocks-libev
    - "8388:8388"
    - METHOD=aes-256-gcm
  restart: always


At last, download shadowsocks client here.

If you have any questions or comments, you can reach out through our contact page: Contact Us

If you found this video helpful, give it a thumbs up, and don’t forget to share it with anyone who might benefit from learning about online privacy.

Thanks for watching, and as always, stay curious and stay secure. See you in the next video!

Scroll to Top