Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Dec 1999 13:59:57 +1100
From:      Gregory Bond <gnb@itga.com.au>
Cc:        freebsd-ipfw@FreeBSD.ORG
Subject:   Re: NATD and IP Aliases 
Message-ID:  <199912030259.NAA19013@lightning.itga.com.au>
In-Reply-To: Your message of Wed, 24 Nov 1999 12:19:56 %2B1100.

next in thread | raw e-mail | index | archive | help
I wrote:

>If we are running natd on our external ethernet interface, and that ether 
>interface has 2 IP addresses bound to it (on two different Class C nets), 
>which IP will natd use for the outgoing packet?  

> For packets originated on the server, the system is (I think!) clever enough 
> to
> use as the local-address the IP that is on the same network as the first-hop
> gateway for that packet.
> 
> Is natd clever enough to do the same thing?

Answer (from experiment): No.  It will use the first IP on the named interface 
and brand all packets with that IP.  But the output packet will go via the 
appropriate gateway.  

If the two class Cs were on different interfaces, then presumably I could make 
this work by running two NATDs on two divert ports and having two divert 
rules.  I might investigate this for the meantime....

Greg.




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ipfw" in the body of the message




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