From owner-freebsd-stable Sun Jan 28 4:34:32 2001 Delivered-To: freebsd-stable@freebsd.org Received: from www.golsyd.net.au (ftp.golsyd.net.au [203.57.20.1]) by hub.freebsd.org (Postfix) with ESMTP id 11E0A37B698 for ; Sun, 28 Jan 2001 04:34:09 -0800 (PST) Received: from [203.164.12.28] by www.quake.com.au (NTMail 4.30.0012/AH9370.63.d1acf55c) with ESMTP id kswsaaaa for ; Sun, 28 Jan 2001 23:42:43 +1100 Message-ID: <3A7411CF.816DA573@quake.com.au> Date: Sun, 28 Jan 2001 23:34:23 +1100 From: Kal Torak X-Mailer: Mozilla 4.73 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: cjclark@alum.mit.edu Cc: FreeBSD-stable Subject: Re: ipfw forwarding (more info) References: <3A72CB47.7A5DD83@quake.com.au> <20010127220257.B28504@nevermind.kiev.ua> <3A732BE9.F559820D@quake.com.au> <3A732EFB.E7E743BA@quake.com.au> <20010127170621.M10761@rfx-216-196-73-168.users.reflex> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > After some more fiddling around, I have noticed that the ipfw rule is > > hit, but nothing seems to happen... The data just continues on to the > > local port instead of being forwarded to the remote one... > > Are you sure? Please try, > > # tcpdump -i -en port 27015 > > On each interface that would be involved. > > > Maybe I am missing something that needs to be loaded for this to work? > > No, forwarding is all in the kernel (or KLD module). > > But I suspect you really don't want to forward packets, but actually > want to do NAT. Yeah using the redirect_port option in natd works, but I dont understand why it doesnt work with ipfw... I thought natd might be stopping, but even having the fwd rule before the divert to natd rule doesnt change anything.. Dose ipfw fwd even work to remote machines? It would be better to do this with ipfw, since you can add rules on the fly, but with natd you need to kill it to change those settings... Would ipf be better maybe? Thanks for the info, I have it working, but not how I want it to :P Kal. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message