[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Within-Box Port Forwarding
- Subject: [ale] Within-Box Port Forwarding
- From: hbbs at comcast.net (Jeff Hubbs)
- Date: Mon, 25 Feb 2008 08:39:19 -0500
- In-reply-to: <[email protected]>
- References: <[email protected]>
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
>
>