Create an HTTP & HTTPS proxy with tinyproxy

I run a proxy inside a KVM machine that has access to the network I need. The KVM gateway IP is 192.168.122.1, so inside the VM, I write the following ~/.tinyproxy.conf:

Port 8899
Timeout 600
Allow 127.0.0.1
Allow 192.168.122.1

The proxy is available in most repos, on Debian, I wrote the following to install it:

# apt-get install tinyproxy

Then, I start it with (the -d puts it in the foreground, in debug mode):

$ tinyproxy -c .tinyproxy.conf -d

That's it. From my main machine, I can now use proxy:8899 as my HTTPS proxy, e.g.:

$ curl -x proxy:8899 https://some.network.com/ice.cream

~ /home 🏠 ~ talks 💬 ~ bash ~ craftsmanship ~ db ~ dongxi ~ emacs ~ escenic ~ iam ~ java ~ js ~ language ~ latex ~ ldap ~ life ~ linux ~ llm ~ mac-os-x ~ mt-foo ~ network ~ norsk ~ python ~ quotes ~ running ~ security ~ travel ~ unix ~ various ~ vcs ~ webdesign ~ windows ~ discoveries ~ cv 🧙 ~

Licensed under CC BY Creative Commons License ~ 📡 RSS feed ~ ✉ torstein.k.johansen @ gmail ~ 🐘 @skybert@hachyderm.io ~ 🎥 youtube.com/@skybert