[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NAT with cable modems - dynamic IP
john Buxton <email@example.com> writes:
> I am wondering how OpenBSD works with a cable modem installation running
> dynamic IP.
> Will I have to reload ipnat or reboot the computer if the address
> changes, or can it detect the changed address and continue working?
> At the moment, it doesn't. You need to reload your ipf and ipnat
> rules (manually) if your IP address changes. Ideally, dhcp should be
> scriptable to perform these actions for you whenever a new lease is
dhclient *is* currently already scriptable. Just make your own version
of the /sbin/dhclient-script and point the /etc/dhclient.conf file at
it. I think an "ipf -y" at a strategic place in the script, should
do. In the ADSL NAT gateway I've set up at work, it seems fine,
although the IP rarely (if ever) actually changes.