Wednesday, May 4, 2011

Redirecting port 80

Solution had been found on how to re-direct port 80 to any custom port:


You can redirect connections on port 80 to some other port you can open as normal user.

Run as root:

# iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080 


From source: http://serverfault.com/questions/112795/how-can-i-run-a-server-on-linux-on-port-80-as-a-normal-user