Date: Sun, 9 Mar 2003 15:46:08 -0800 From: "Crist J. Clark" <crist.clark@attbi.com> To: denb <denb@front.ru> Cc: freebsd-net@FreeBSD.ORG, ipfw@FreeBSD.ORG Subject: Re: Why natd don't divert packets? Message-ID: <20030309234608.GA88267@blossom.cjclark.org> In-Reply-To: <200303070800.h2780hWF058395@www6.mailru.com> References: <200303070800.h2780hWF058395@www6.mailru.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Mar 07, 2003 at 11:00:43AM +0300, 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*********************** Looks like its working perfectly. > Where is Out[TCP]? Dunno. > 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*********************** Are you sure 172.16.253 is responding? # ipfw add divert 1111 tcp from any to any 7 # ipfw add count tcp from any 7 to any # ipfw add divert 1111 tcp from any 7 to any -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org 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?20030309234608.GA88267>