Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 May 1997 19:37:02 +0100
From:      Brian Somers <brian@awfulhak.org>
To:        Thomas David Rivers <ponds!rivers@dg-rtp.dg.com>
Cc:        freebsd-hackers@freebsd.org, ari.suutari@ps.carel.fi
Subject:   Re: natd & multiple sl0 ifconfigs... 
Message-ID:  <199705211837.TAA17350@awfulhak.demon.co.uk>
In-Reply-To: Your message of "Mon, 19 May 1997 20:56:53 EDT." <199705200056.UAA24171@lakes.water.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 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 <brian@awfulhak.org>, <brian@freebsd.org>
      <http://www.awfulhak.org>;
Don't _EVER_ lose your sense of humour....





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