From owner-freebsd-hackers Wed May 21 12:20:33 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id MAA29800 for hackers-outgoing; Wed, 21 May 1997 12:20:33 -0700 (PDT) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id MAA29789 for ; Wed, 21 May 1997 12:20:23 -0700 (PDT) Received: from awfulhak.demon.co.uk (localhost [127.0.0.1]) by awfulhak.demon.co.uk (8.8.5/8.8.5) with ESMTP id TAA17350; Wed, 21 May 1997 19:37:02 +0100 (BST) Message-Id: <199705211837.TAA17350@awfulhak.demon.co.uk> X-Mailer: exmh version 1.6.9 8/22/96 To: Thomas David Rivers cc: freebsd-hackers@freebsd.org, ari.suutari@ps.carel.fi Subject: Re: natd & multiple sl0 ifconfigs... In-reply-to: Your message of "Mon, 19 May 1997 20:56:53 EDT." <199705200056.UAA24171@lakes.water.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 21 May 1997 19:37:02 +0100 From: Brian Somers Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > I've successfully gotten natd to work - it's exactly what > the doctor ordered. > > However, when I want to get to work; I use SL/IP, and have > a particular IP address associated with sl0. > > But - when I want to contact my ISP, I also use SL/IP, with > a different IP address. > > I start natd with (from rc.local): > > if [ -f /usr/local/bin/natd ]; then > echo -n " natd"; /usr/local/bin/natd -port 32000 -interface sl0 -m -u -d > ynamic > > fi > > and in /etc/rc.firewall, I have: > > # > # 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? That's certainly the intention of the -dynamic bit. Your best bet is probably to ask the author (cc'd). The -dynamic switch is pretty new in natd. > - Thanks - > - Dave Rivers - -- Brian , Don't _EVER_ lose your sense of humour....