HTTP Proxy via INETD and Netcat
From NJH-Wiki
- Languages
- english - deutsch
- Author
- Volker Grabsch
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
- installed INETD
- installed Netcat
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!

