Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 May 1997 16:46:18 -0400 (EDT)
From:      Thomas David Rivers <ponds!rivers@dg-rtp.dg.com>
To:        ponds!enteract.com!mrfoine, ponds!lakes.water.net!rivers
Cc:        ponds!freefall.cdrom.com!freebsd-hackers
Subject:   Re: natd & multiple sl0 ifconfigs...
Message-ID:  <199705272046.QAA03010@lakes.water.net>

next in thread | raw e-mail | index | archive | help
Wayne Baety  writes:
> > 
> >    #
> >    # Do 'natd' style diversion..
> >    #
> >         ipfw -f flush
> >         ipfw -f add divert 32000 ip from any to any via sl0
> >         ipfw -f add pass ip from any to any
> > 
> > 
> > 
> > As I understood the man page for natd - the -dynamic flag will cause
> > natd to "watch" the interface, and make appropriate adjustments should
> > the IP change, etc...  but - it doesn't seem to be doing so.
> > 
> > Does anyone have any experience/thoughts on this?
> Yeah I had a similar problem...natd would use the old IP address even when
> i changed the ifs address....so what i did was turned dynamic off and used
> pppd's ip-up and ip-down scripts to kill and restart natd... (this
> unfortunately causes a short delay between invocations, but i guess i can
> live with this for now)
> 
> 
> Wayne
> 
> PS. Scripts attached.
> 

 That's a really good idea - I hadn't thought of it.

 Unfortunately, I'm not using PPP; I'm using SL/IP (which is what
makes natd so nice...)   However, I think I can use the same idea
in the SL/IP-connecting scripts I have (kill natd and restart it.)

	- Thanks -
	- Dave R. -



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705272046.QAA03010>