[H-GEN] IPTables port forwarding

Sandra Milne silne at optusnet.com.au
Sat Apr 19 07:09:26 EDT 2003


[ Humbug *General* list - semi-serious discussions about Humbug and     ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]

At 18:11 19/04/2003 +1000, you wrote:
>[ Humbug *General* list - semi-serious discussions about Humbug and     ]
>[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
>
>You don't specify the outgoing interface because the system should already
>have a route available for that destination. So:-
>
>$IPTABLES -t nat -A PREROUTING -i $EXTIF -p tcp --dport <port> -j DNAT --to
>$INTBOX

Thanks Brad and Kris. It's all working great now. I'll have to remember 
that it's "PREROUTING" and not "FORWARD" that does what I want.

Sandra.

--
silne at optusnet.com.au
"There are 10 types of people in the world -- those that understand binary, 
and those that don't." 


--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.  See http://www.humbug.org.au/



More information about the General mailing list