The NAT part of my /etc/sysconfig/iptables file currently looks like this:
# Generated by iptables-save v1.2.5 on Sat Jul 6 21:48:37 2002 *nat :PREROUTING ACCEPT [180:25435] :POSTROUTING ACCEPT [21:1455] :OUTPUT ACCEPT [21:1455] -A POSTROUTING -s 10.1.2.0/255.255.255.0 -d ! 10.1.2.0/255.255.255.0 \ -j SNAT --to-source xxx.xxx.xxx.xxx COMMIT # Completed on Sat Jul 6 21:48:37 2002 xxx.xxx.xxx.xxx is my cable modem's IP address, however because it's on a DHCP network, that IP changes occasionally. How can I make iptables automatically figure out what the IP is without me hardcoding it into that file? -- H | "Life is the art of drawing without an eraser." - John Gardner +-------------------------------------------------------------------- Ashley M. Kirchner <mailto:[EMAIL PROTECTED]> . 303.442.6410 x130 Director of Internet Operations / SysAdmin . 800.441.3873 x130 Photo Craft Laboratories, Inc. . 3550 Arapahoe Ave, #6 http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A. -- redhat-list mailing list Unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list