Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Mar 2003 09:14:42 +0100
From:      Clement Laforet <sheepkiller@cultdeadsheep.org>
To:        denb <denb@front.ru>
Cc:        freebsd-questions@freebsd.org, hackers@freebsd.org
Subject:   Re: Why natd don't divert packets?
Message-ID:  <20030307091442.1cad7ae6.sheepkiller@cultdeadsheep.org>
In-Reply-To: <200303070802.h27826Mn058500@www6.mailru.com>
References:  <200303070802.h27826Mn058500@www6.mailru.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 7 Mar 2003 11:02:06 +0300 (MSK)
denb <denb@front.ru> wrote:

> Why natd don't divert packets?
> 
> *********screenshot***********************
> 
> #ipfw add divert 1111 tcp from any to any 7
> #ipfw add divert 1111 tcp from any 7 to any
> #natd  -v -p 1111 -a 172.16.0.102 -redirect_port tcp 172.16.0.253:7 7
> 
> In  [TCP]  [TCP] 172.16.0.104:49169 -> 172.16.0.102:7 aliased to
>            [TCP] 172.16.0.104:49169 -> 172.16.0.253:7
> 
> In  [TCP]  [TCP] 172.16.0.104:49169 -> 172.16.0.102:7 aliased to
>            [TCP] 172.16.0.104:49169 -> 172.16.0.253:7
> 
> ^C
> *********screenshot***********************
> 
> Where is Out[TCP]?
> 
Your boxes seems to be on the same subnet, "out" packets are directly
sent to 172.16.0.104, not 172.16.0.102
nat'ing implies routing, so natd is inefficient in your case

clem

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




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