From owner-freebsd-questions Sun Jul 1 12:16:22 2001 Delivered-To: freebsd-questions@freebsd.org Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by hub.freebsd.org (Postfix) with ESMTP id 64D7B37B407 for ; Sun, 1 Jul 2001 12:16:09 -0700 (PDT) (envelope-from fgleiser@cactus.fi.uba.ar) Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by cactus.fi.uba.ar (8.11.3/8.9.3) with ESMTP id f61JDZf16478; Sun, 1 Jul 2001 16:13:40 -0300 (ART) (envelope-from fgleiser@cactus.fi.uba.ar) Date: Sun, 1 Jul 2001 16:13:35 -0300 (ART) From: Fernando Gleiser To: tyler spivey Cc: Subject: Re: how to setup natd under ipf? In-Reply-To: <200106302050.f5UKoRa00311@home.com> Message-ID: <20010701160723.J16304-100000@cactus.fi.uba.ar> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Sat, 30 Jun 2001, tyler spivey wrote: > place cc me sicne i am not on this list. > how do i get nat on ipf? You need to use ipnat. man ipnat for details. The ipf howto is available at http://www.obfuscation.org/ipf/ipf-howto.txt > it says unknown keyword map. Because you are using ipf to do nat. In IP Filter, you use ipf for filtering and ipnat for NAT. > map rl0 10.0.0.0/24 -> 0/32 put this rule in a file called /etc/ipnat.rules and then say "ipnat -f /etc/ipnat.rules". > it worked under ipfw. > and ihave natd_enable and all that in rc.conf. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message