Subject: Re: dhcp client configuration
To: Philip Brodd <pbrodd@blue.weeg.uiowa.edu>
From: Todd Vierling <tv@wasabisystems.com>
List: netbsd-help
Date: 06/15/2001 13:26:45
On Thu, 14 Jun 2001, Philip Brodd wrote:

: Is there a reliable way to update the IP in ipnat.conf automatically if
: an interface gets a new address via dhcp?

Use "0/32" as the address.  For example, my ipnat.conf reads:

map tlp1 10.0.0.0/8 -> 0/32 proxy port ftp ftp/tcp
map tlp1 10.0.0.0/8 -> 0/32 portmap tcp/udp 1024:65535
map tlp1 10.0.0.0/8 -> 0/32

where "tlp1" is the interface plugged into the cable modem, and internal
addresses match the "10.0.0.0/8" subnet.

-- 
-- Todd Vierling <tv@wasabisystems.com>  *  Wasabi NetBSD:  Run with it.
-- NetBSD 1.5 now available on CD-ROM  --  http://www.wasabisystems.com/