From owner-freebsd-hackers Mon May 19 18:50:48 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id SAA02506 for hackers-outgoing; Mon, 19 May 1997 18:50:48 -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 SAA02496 for ; Mon, 19 May 1997 18:50:41 -0700 (PDT) Received: by dg-rtp.dg.com (5.4R3.10/dg-rtp-v02) id AA01425; Mon, 19 May 1997 21:50:05 -0400 Received: from ponds by dg-rtp.dg.com.rtp.dg.com; Mon, 19 May 1997 21: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 UAA14408 for ; Mon, 19 May 1997 20:49:44 -0400 (EDT) Received: (from rivers@localhost) by lakes.water.net (8.8.5/8.6.9) id UAA24171 for freebsd-hackers@freefall.cdrom.com; Mon, 19 May 1997 20:56:53 -0400 (EDT) Date: Mon, 19 May 1997 20:56:53 -0400 (EDT) From: Thomas David Rivers Message-Id: <199705200056.UAA24171@lakes.water.net> To: ponds!freefall.cdrom.com!freebsd-hackers Subject: natd & multiple sl0 ifconfigs... Content-Type: text 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? - Thanks - - Dave Rivers -