From owner-freebsd-hackers Tue May 27 15:50:41 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id PAA08547 for hackers-outgoing; Tue, 27 May 1997 15:50:41 -0700 (PDT) Received: from dg-rtp.dg.com (dg-rtp.rtp.dg.com [128.222.1.2]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id PAA08541 for ; Tue, 27 May 1997 15:50:37 -0700 (PDT) Received: by dg-rtp.dg.com (5.4R3.10/dg-rtp-v02) id AA12001; Tue, 27 May 1997 18:50:03 -0400 Received: from ponds by dg-rtp.dg.com.rtp.dg.com; Tue, 27 May 1997 18:50 EDT Received: from lakes.water.net (lakes [10.0.0.3]) by ponds.water.net (8.8.5/8.7.3) with ESMTP id QAA25816; Tue, 27 May 1997 16:38:59 -0400 (EDT) Received: (from rivers@localhost) by lakes.water.net (8.8.5/8.6.9) id QAA03010; Tue, 27 May 1997 16:46:18 -0400 (EDT) Date: Tue, 27 May 1997 16:46:18 -0400 (EDT) From: Thomas David Rivers Message-Id: <199705272046.QAA03010@lakes.water.net> To: ponds!enteract.com!mrfoine, ponds!lakes.water.net!rivers Subject: Re: natd & multiple sl0 ifconfigs... Cc: ponds!freefall.cdrom.com!freebsd-hackers Content-Type: text Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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. -