Rob Brown > Net-DNAT-0.13 > demo/simple.pl

Download:
Net-DNAT-0.13.tar.gz

Annotate this POD

View/Report Bugs
Source  

PORT REDIRECTION ^

Simple Port Redirecting Configuration

Forwards incoming connections on the privileged low port 80 to an unprivleged high port 8000.

SECURITY ^

This is great for security because

1) The process switches to nobody after binding to the privileged low port.

2) The entire web server can run and even start as an unprivileged user on a high port.

DEVELOPMENT ^

This is also helpful for development and testing because you don't have to be root to restart the web server, yet you still get to use "pretty" URLs, i.e.:

   http://box/cgi-bin/test.cgi

instead of the uglier:

   http://localhost:8000/cgi-bin/test.cgi

so development appears closer to what production would look like.

syntax highlighting: