[lug] quick iptables rule question

Dan Ferris dan at ferrises.com
Wed Nov 19 10:57:48 MST 2003


No..

iptables -t nat -A PREROUTING -p tcp --dport 9090 -j DNAT --to 
192.168.0.0:80

Anything destined to port 9090 on the firewall will go to port 80 of 
192.168.0.0

Dan

Ryan Wheaton wrote:

> before i commit to it, wanted to make sure i was thinking right...
> 
> will:
> 
> iptables -A PREROUTING -t nat -p tcp --sport 9090 --dport 80 -j DNAT 
> --to-destination 192.168.0.0
> 
> forward port 9090 to port 80 on the internal box?
> 
> sorry, i know this seems lazy, but there is almost TOO much info out 
> there on iptables....
> 
> 
> thanks,
> 
> ryan
> 
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug
> 




More information about the LUG mailing list