How to configure a proxy server in ubuntu - step by step

Sometimes people wants to get access to their favorite websites while they are travelling. As some websites are blocked in some countries. Here is the step by step tutorial on how to configure a proxy server on ubuntu.

Get a VPS server

First you need to get a VPS server up and running. I recommend Vultr’s $5 plan.

Install server software

1
2
3
4
sudo apt-get install python-gevent python
sudo apt-get install python-pip
sudo pip install setuptools
sudo pip install shadowsocks

Then create the configuration file:

1
2
3
cd ~
mkdir proxy
nano proxy/config.json

The content is:

1
2
3
4
5
6
7
8
{
"server":"YOUR_VPS_IP",
"server_port":8888,
"local_port":1080,
"password":"YOUR_PROXY_SERVER_PASSWORD",
"timeout":600,
"method":"aes-256-cfb"
}

Run server:

1
nohup ssserver -c proxy/config.json

You may need to add a new firewall rule if you use ufw:

1
sudo ufw allow 8888

Configure client software

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

Configure proxy client as showing in the following screen dump:

Then right client the proxy client application icon in the task bar and tick ‘Enable system Proxy’

Enjoy free browsing now!

Share