Friday, January 2, 2015

HOWTO: Install Tinyproxy in your Ubuntu Server VPS

Tiny proxy is a simple light-weight proxy server which allows me to browse the Internet is a more secured way.
The installation is very simple:
# apt-get update
# apt-get install tinyproxy

The configuration would take a few minutes, you need to edit the configuration file:
vi /etc/tinyproxy.conf
...
Port 8888 # Either keep this default value or modify to any port number (usually 80, 8080, 8088)
...
LogLevel Error # Reduce the log level to improve system performance on entry-level VPS
...
#Allow 127.0.0.1 # Comment this line to allow any network (the Internet) to use this proxy server

Some suggested that tinyproxy will eat up your memory, and we can clear the issue by restarting the service every day. Simply run the command (the system may prompt for preferred text editor, feel free to choose):
# crontab -e
Add the below line at the bottom of the file (the character after "22" and the last "*" are a "Tab" character, do NOT copy the command directly). The below settings tell the system to restart tinyproxy at 22:00 everyday, you may change the time by modifying the second value (22 in this case):
0 22    * * *   root    /etc/init.d/tinyproxy restart

Restart the service:
# service tinyproxy restart
You can refer to http://support.microsoft.com/kb/135982 for how to configure a proxy server to used in Internet Explorer. The address should be the IP / DNS Name of your VPS and the port is the value we set earlier (8888 in our case).

No comments:

Post a Comment