Simple Port Redirecting Configuration
Forwards incoming connections on the privileged low port 80 to an unprivleged high port 8000.
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.
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.
To install Net::DNAT, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::DNAT
CPAN shell
perl -MCPAN -e shell install Net::DNAT
For more information on module installation, please visit the detailed CPAN module installation guide.