[ale] Within-Box Port Forwarding

Christopher Fowler cfowler at outpostsentinel.com
Mon Feb 25 14:51:10 EST 2008


On Mon, 2008-02-25 at 14:10 -0500, ale-request at ale.org wrote:
> Would require running Tomcat as root - a Bad Thing.

Are you sure.  Technically tomcat is not bound to port 80.  It is on
8080 which is above the 1024 rule.  He just needs a rule that will
direct 80 -> 8080

Try this:


 iptables -t nat -A PREROUTING -p tcp -s 0.0.0.0/0  --dport 80 -j
REDIRECT --to-ports 8080




More information about the Ale mailing list