NATing with Iptables


Subject: NATing with Iptables
From: Jamie Hushower (hushower@ak.net)
Date: Tue Sep 23 2003 - 14:27:57 AKDT


I am just starting to replace my ipchains routers with iptables and haven't
found a good source for NAT information. The man page and examples I have
found list something like the following simple NAT example:

iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth1 -j SNAT -to 1.2.3.4

This will map the IPs going from my internal network to 1.2.3.4 as they pass
through the router. Can anyone explain what to do if your external IP is
dynamic? Does iptables need the "-j SNAT -to 1.2.3.4" option or can it pick
up the correct (external) IP address from the "-o eth1" switch? Perhaps
there is a different switch for NATing to an external IP address that is
dynamic. Thanks.

-Jamie
_____________________________________
Jamie Hushower
Computer Consultant
Rent-A-Geek
223-9136

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Tue Sep 23 2003 - 14:25:39 AKDT