From owner-freebsd-net Thu Mar 6 23:57:27 2003 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2EF8D37B401; Thu, 6 Mar 2003 23:57:25 -0800 (PST) Received: from www6.mailru.com (www6.mailru.com [80.68.244.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78DAB43FCB; Thu, 6 Mar 2003 23:57:24 -0800 (PST) (envelope-from denb@front.ru) Received: by HotBOX.Ru WebMail v2.1 id h2780hWF058395 for ; Date: Fri, 7 Mar 2003 11:00:43 +0300 (MSK) Message-Id: <200303070800.h2780hWF058395@www6.mailru.com> From: denb To: freebsd-net@FreeBSD.ORG Cc: ipfw@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: Why natd don't divert packets? Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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]? Rules after natd running (why second rule has 0 in packets number?): *********screenshot*********************** #ipfw show 0001 6 180 divert 1111 tcp from any to any dst-port 7 0002 0 0 divert 1111 tcp from any 7 to any *********screenshot*********************** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message