Installing tinyproxy on Ubuntu

By | September 18, 2018

Previously I played with squid proxy server, today I wanted to try with some alternatives and selected tinyproxy. This proxy also supports HTTP/HTTPS, it is light weight proxy. HTTP/HTTPS. The key features of tinyproxy include: Anonymous mode, Access control, Small footprint, Proxy chaining, remote monitoring and others. The tinyproxy is configurable by editing /etc/tinyproxy/tinyproxy.conf file similar as squid proxy. I chose Ubuntu 16 64-bit for tinyproxy installation and testing.


# sudo apt-get install tinyproxy

Check after installation if tinyproxy process is running:

# systemctl status tinyproxy
● tinyproxy.service – LSB: Tinyproxy HTTP proxy
Loaded: loaded (/etc/init.d/tinyproxy; bad; vendor preset: enabled)
Active: active (running) since Mon 2018-09-17 10:30:51 CDT; 24min ago
Docs: man:systemd-sysv-generator(8)
CGroup: /system.slice/tinyproxy.service
   ├─32284 /usr/sbin/tinyproxy
   ├─32287 /usr/sbin/tinyproxy
   ├─32288 /usr/sbin/tinyproxy
   ├─32289 /usr/sbin/tinyproxy
   ├─32290 /usr/sbin/tinyproxy:
   ├─32291 /usr/sbin/tinyproxy
   ├─32292 /usr/sbin/tinyproxy
   ├─32293 /usr/sbin/tinyproxy
   ├─32294 /usr/sbin/tinyproxy
   ├─32295 /usr/sbin/tinyproxy
   └─32296 /usr/sbin/tinyproxy

By default tinyproxy should work on port 8888. It is possible to change port editing /etc/tinyproxy/tinyproxy.conf. Now testing and receiving the following result:

# curl -I -x
HTTP/1.0 403 Access denied
Server: tinyproxy/1.8.3
Content-Type: text/html
Connection: close

The proxy blocks access because by default it works only with loopback address – Open /etc/tinyproxy/tinyproxy.conf in text editor and enable other IP address related to local network:


To allow all:


Restart tinyprocess service:

# systemctl restart tinyproxy

And test again:

# curl -I -x
HTTP/1.1 200 OK
Via: 1.1 tinyproxy (tinyproxy/1.8.3)
Accept-Ranges: bytes
Content-Type: text/html
Content-Length: 1799
Server: nginx/1.14.0
Date: Mon, 17 Sep 2018 16:10:31 GMT
Last-Modified: Wed, 29 Aug 2018 12:25:52 GMT

Leave a Reply

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