Phil Dibowitz wrote:
> Roger Fischer wrote:
> > I had thought of that.  It might work.  The only problem might be... if
> > the address changed, I'd have to wait until my ddclient updated my
> > dynamic dns before I bring up my ipf rules.  And, when ipfilter looks up
> > my.domain.com, it might get a cached copy instead of the newly changed
> > one.  At the worst, I'd have to wait a few minutes and then refresh my
> > rules again and hopefully get a good address in there. It's probably
> > still easier than going in and editing by hand though.
> >
> > I've heard some say that 0/32 and 0.0.0.0/32 works and some have said it
> > won't.  All I can do is try.
> 
> IIIFFF that works, you'll need to be using a dhcp client that can execute
> commands upon getting a new addy. pump doesn't support this last I checked but
> dhcpcd does. Use this function to run ipf -y.

Another solution on systems that support a routing socket (e.g. Solaris) is to
write a program that opens the routing socket and runs a command whenever an
interface address change message comes across.

-- 
Jefferson Ogata <[EMAIL PROTECTED]>
NOAA Computer Incident Response Team (N-CIRT) <[EMAIL PROTECTED]>

Reply via email to