Home | About Me | Photos | My Blog | Movies | Academic | Ideas | Computers | Online Magazines | Clubs & Organizations | Bookmarks
 
  webportfwd - HTTP Request Redirecting Daemon

webportfwd

webportfwd is a deamon that listens for HTTP requests on ports specified in a configuration file. When an HTTP request arrives on any of the ports it listens on it replies with a "302 Found" and the URL of the page the port is specified to forward to. The URLs are also specified in the configuration file. Each port can be forwarded to one URL.

The effect is that a browser will be redirected to load the page at the URL provided by the port redirector. I wrote this because I have a bad memory. At one place I worked at, they had plenty of systems running various web servers on various ports. All these were accessible outside of their network using one hostname. Basically their firewall forwarded the incoming connections to certain ports to the various internal web servers. Now they wanted this type of effect locally within their LAN. They want to be able to go to http://central_web_host:port and be redirected to the corresponding server. Their firewall also blocked internal hosts from connecting to systems via the external network.

I could have used multiple instances of apache running on the different ports to do this, but that was overkill and a waste of resources. I couldn't install a router to do port forwarding between the servers and clients because they were all on the same network. So I wrote this program.

If you find this tool useful, please send me an email to let me know. My email address is edsel at adap dot org

Download here


 
 
Send me feedback about my website at edsel at adap dot org.