[H-GEN] IPTables port forwarding
Bradley Marshall
brad at humbug.org.au
Sat Apr 19 03:49:58 EDT 2003
[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
On Sat, Apr 19, 2003 at 04:41:07PM +1000, Sandra Milne wrote:
> >$IPTABLES -t nat -A PREROUTING -i $EXTIF -o $INTIF -p tcp --dport 5206 -j
> >DNAT --to $INTBOX
> >$IPTABLES -t nat -A PREROUTING -i $EXTIF -o $INTIF -p udp --dport 5206 -j
> >DNAT --to $INTBOX
> >
> >where $INTBOX is the IP of your internal box. I've used rules like this
> >successful to let people connect into internal game servers, forward for
> >webservers etc.
>
> I'm sure you probably have used rules like those, but not that exact one.
Ah, yes - you're right, I never have used the -o, I just added it to make it
as close to your rules as possible. Remove the -o and you've got pretty
much what I've used.
Thanks,
Brad
--
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
| Bradley Marshall | http://www.humbug.org.au/~brad |
| System/Network Admin| brad at humbug.org.au |
| Plugged In Software | bmarshal at pisoftware.com |
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
``I'm not ashamed. Its the computer age. Nerds are in.'' - Willow (BtVS)
--
* 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