From owner-freebsd-ipfw Tue Nov 23 9:23:55 1999 Delivered-To: freebsd-ipfw@freebsd.org Received: from usui.sc.newnet.co.uk (usui.sc.newnet.co.uk [212.87.80.10]) by hub.freebsd.org (Postfix) with ESMTP id F302E150FE for ; Tue, 23 Nov 1999 09:23:37 -0800 (PST) (envelope-from peter@newnet.co.uk) Received: from newnet.co.uk (muktananda.sys.newnet.co.uk [212.87.87.37]) by usui.sc.newnet.co.uk (8.9.3/8.9.3) with ESMTP id RAA23412; Tue, 23 Nov 1999 17:22:30 GMT Message-ID: <383ACD4E.67453D76@newnet.co.uk> Date: Tue, 23 Nov 1999 17:22:22 +0000 From: Peter Coates X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: Robin Gruyters Cc: Nick Rogness , freebsd-ipfw@FreeBSD.ORG Subject: Re: IPFW and forward References: <19991123171119.N49519@bofh.wish.net> <19991123181751.R49519@bofh.wish.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ipfw@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sound like you just need to enable packet forwarding if you wish to enable routing. Try this: sysctl -w net.inet.ip.forwarding=1 Peter, NewNet Limited Robin Gruyters wrote: > > On Tue, Nov 23, 1999 at 10:11:56AM -0700, Nick Rogness wrote: > > On Tue, 23 Nov 1999, Robin Gruyters wrote: > > > > > ipfw add fwd : tcp from any to > > address> > > > > > > Something like that?!?! Please, help me. > > > > > > > You might want to use divert for this. Something like this: > > > > ipfw add divert natd ip from any to any via outside_interface > > > > Then run natd: > > > > /sbin/natd -port 8668 -redirect_port tcp external:port internal:port > > > > There is some other information that nat will need but you can add that > > from the natd man page. > > > > Well what I want to do is, contact an external address trough the firewall and > forward it to an internal address. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-ipfw" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message