[ale] Within-Box Port Forwarding
Jeff Hubbs
hbbs at comcast.net
Mon Feb 25 08:39:19 EST 2008
I think I got it...
iptables -t nat -a PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 80
iptables -t nat -a PREROUTING -p tcp -j ACCEPT -m state --state NEW
--dport 80
Jeff Hubbs wrote:
> All the docs I'm finding about port forwarding using iptables assumes
> configuring a firewall. What would the iptables command(s) look like to
> forward inbound port 80 such that Tomcat on the same machine, running on
> port 8080, sees and responds to the traffic? Would there be two
> commands, one for each direction?
>
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
>
>
More information about the Ale
mailing list