Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Oct 1997 21:24:56 +0100
From:      Brian Somers <brian@awfulhak.org>
To:        Thomas David Rivers <rivers@dignus.com>
Cc:        freebsd-hackers@freefall.FreeBSD.org
Subject:   Re: two natd's running? 
Message-ID:  <199710132024.VAA24345@awfulhak.demon.co.uk>
In-Reply-To: Your message of "Mon, 13 Oct 1997 11:23:57 EDT." <199710131523.LAA01999@lakes.dignus.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> This is a rather old question I'm just now getting around to...
> 
> What I have is a situation where I'd like to two SL/IP connections
> going with multiple natd's running.
> 
> Several people had suggested simply having two divert rules in 
> rc.firewall and running the two natd's that way.
> 
> Here's what I've got the gateway (a 2.2-970510-RELENG machine) at
> 10.0.0.1:
> 
>         ipfw -f flush
>         ipfw -f add 10 divert 32001 ip from any to 192.42.243.0/24 via sl1

You can't masquerade in just one direction.... add
 
          ipfw -f add 10 divert 32001 ip from 192.42.243.0/24 to any via sl1

>         ipfw -f add 20 divert 32000 ip from any to any via sl0
>         ipfw -f add pass ip from any to any
[.....]
> 	- Thanks -	
> 	- Dave Rivers -
>  

-- 
Brian <brian@Awfulhak.org>, <brian@FreeBSD.org>, <bri@OpenBSD.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?199710132024.VAA24345>