How to create a small, primive HTTP Proxy using just INETD and Netcat
Sometimes you just need a small, primive HTTP proxy. An extra Apache installation would be overkill, the more so as all you need are some tools you have installed anyway.
Just add to your /etc/inetd.conf
the following lines:
# HTTP proxy 80 stream tcp nowait nobody /bin/nc nc DESTINATION-IP 80
Then just restart the INETD:
/etc/init.d/inetd restart
If that doesn't work, try:
/etc/init.d/openbsd-inetd restart
Done!