HTTP Proxy via INETD and Netcat

by Volker Diels-Grabsch

How to create a small, primive HTTP Proxy using just INETD and Netcat

Created 2007-11-21, Last updated 2007-11-21
Articles

Introduction

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.

Preconditions

Steps

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!

Alternative Approaches