How to Setup TinyProxy Server on Azure/AWS/GCP

Setup TinyProxy Server on any of the cloud platforms (Azure, AWS, GCP) on Ubuntu.  TinyProxy is a light-weight HTTP/HTTPS proxy daemon, great for cloud environments in supporting both cloud and hybrid networks.  Tiny Proxy is an Efficient HTTP/SSL proxy.  One of the key features of Tinyproxy is the buffering connection concept. In effect, Tinyproxy will buffer a high speed response from a server, and then relay it to a client at the highest speed the client will accept.

Cloud TinyProxy

TinyProxy Features

Tiny proxy allows forwarding of HTTPS connections without modifying traffic in any way through the CONNECT method. Tinyproxy supports being configured as a transparent proxy, so that a proxy can be used without requiring any client-side configuration. You can also use it as a reverse proxy front-end to your websites.  Great alternative to a Squid Proxy, Træfik Proxy, Nginx Proxy & Varnish. If you’re looking to build a custom web proxy, Tinyproxy is easy to modify to your custom needs. The source is straightforward, adhering to the KISS principle. As such, it can be used as a foundation for anything you may need a web proxy to do.
 
  • Light weight proxy. Runs on small VM
  • Allows forwarding of HTTPS connections
  • Transparent proxy
  • Reverse proxy
  • Add/insert HTTP headers to outgoing traffic
  • Easy to modify
  • Privacy features
  • Remote monitoring facility
  • Access control
  • One of the key features of Tinyproxy is the buffering connection concept
  • Anonymous mode
  • Very secure
  • URL based filtering
  • Proxy chaining

Getting Started with TinyProxy

Once your TinyProxy server has been deployed, the following links explain how to connect to a Linux VM:

 

 

Once connected and logged in, the following section explains how to start using Tiny Proxy.

Using TinyProxy

Tinyproxy uses a configuration file stored in the following location:

 

/etc/tinyproxy/tinyproxy.conf

 

To open the tinyproxy config file, run the following command:

				
					sudo nano /etc/tinyproxy/tinyproxy.conf
				
			

The Tinyproxy configuration file contains key-value pairs, one per line. Lines starting with `#` and empty lines are comments and are ignored. Keywords are case-insensitive, whereas values are case-sensitive. Values may be enclosed in double-quotes (“) if they contain spaces.

 

The possible keywords, their descriptions and proxy configuration options can be found on Tinyproxy documentation.

To check the status of Tinyproxy service run the following command:

				
					sudo systemctl status tinyproxy
				
			

To restart the service run:

				
					sudo systemctl restart tinyproxy
				
			

TinyProxy Support

For any issues on deploying Tiny Proxy, please contact us directly. Refer to Tinyproxy documentation on any configuration steps you require.

 

Alternatively you can contact the developer directly via their Gitrepo

TinyProxy Firewall Ports

You can configure any port to use on Tinyproxy.  Remember to open any ports if you are using any firewalls or cloud security groups.

 

If you are using any of the cloud security groups and need to change / add ports refer to the following guides:

 

To setup AWS firewall rules refer to – AWS Security Groups

To setup Azure firewall rules refer to – Azure Network Security Groups

To setup Google GCP firewall rules refer to – Creating GCP Firewalls

Disclaimer: Tinyproxy is made available under an GNU GPL V2.0 license. No warrantee of any kind, express or implied, is included with this software. Use at your risk, responsibility for damages (if any) to anyone resulting from the use of this software rest entirely with the user. The author is not responsible for any damage that its use could cause.

Avatar for Andrew Fitzgerald
Andrew Fitzgerald

Cloud Solution Architect. Helping customers transform their business to the cloud. 20 years experience working in complex infrastructure environments and a Microsoft Certified Solutions Expert on everything Cloud.

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x