From owner-freebsd-questions Fri Mar 7 0:52:22 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E1E337B401; Fri, 7 Mar 2003 00:52:20 -0800 (PST) Received: from www2.mailru.com (www2.mailru.com [80.68.244.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id B2ADD43F75; Fri, 7 Mar 2003 00:52:18 -0800 (PST) (envelope-from denb@front.ru) Received: by HotBOX.Ru WebMail v2.1 id h278pjqq022194 for ; Date: Fri, 7 Mar 2003 11:51:45 +0300 (MSK) Message-Id: <200303070851.h278pjqq022194@www2.mailru.com> From: denb To: Clement Laforet Cc: denb , freebsd-questions@freebsd.org, hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 8bit X-Mailer: Free WebMail HotBOX.ru X-Proxy-IP: [212.1.229.5] X-Originating-IP: [172.16.0.103] Subject: Re: Why natd don't divert packets? Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Clement Laforet : > On Fri, 7 Mar 2003 11:02:06 +0300 (MSK) > denb 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 > > This working in FreeBSD4.7(ipfw1), but broken in FreeBSD 5.0(ipfw2). Why? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message