From owner-freebsd-pf@FreeBSD.ORG Fri Aug 25 15:15:30 2006 Return-Path: X-Original-To: freebsd-pf@freebsd.org Delivered-To: freebsd-pf@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA28216A4E8 for ; Fri, 25 Aug 2006 15:15:30 +0000 (UTC) (envelope-from wash@wananchi.com) Received: from ns2.wananchi.com (ns2.wananchi.com [62.8.64.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0D9443D46 for ; Fri, 25 Aug 2006 15:15:29 +0000 (GMT) (envelope-from wash@wananchi.com) Received: from wash by ns2.wananchi.com with local (Exim 4.63 #0 (FreeBSD 4.11-STABLE)) id 1GGdP4-000E06-22 by authid ; Fri, 25 Aug 2006 18:15:26 +0300 Date: Fri, 25 Aug 2006 18:15:26 +0300 From: Odhiambo Washington To: Bruno Bandeira Message-ID: <20060825151526.GA46160@ns2.wananchi.com> Mail-Followup-To: Odhiambo Washington , Bruno Bandeira , freebsd-pf@freebsd.org References: <130a355b0608250801n6762c91dk159f4880835f8bdd@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <130a355b0608250801n6762c91dk159f4880835f8bdd@mail.gmail.com> X-Disclaimer: Any views expressed in this message, where not explicitly attributed otherwise, are mine alone!. X-Mailer: Mutt 1.5.12 (2006-07-14) X-Designation: Systems Administrator, Wananchi Online Ltd. X-Location: Nairobi, KE, East Africa. User-Agent: Mutt/1.5.12-2006-07-14 Cc: freebsd-pf@freebsd.org Subject: Re: Newbie X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Aug 2006 15:15:30 -0000 * On 25/08/06 12:01 -0300, Bruno Bandeira wrote: | Hey Guys, | | I am newbie in pf world, so i need to put my network to access internet .... | | My gateway is a freebsd machine, and i have a few questions... PS: I have | read the manual =) | | I need to nat my network.How can i do this? I try this.. | | nat on $ext_if from $rede to any -> ($ext_if) | | My default policy is: | | block in all | | And the statefull spection | | pass out keep state | | So i need to known, how can i put it working .... from my workstation i | can't access the internet .....=( | | Thanks anyway | | Bruno Hi Bruno, Please try to read the PF FAQ - http://cvs.openbsd.org/faq/pf/ and you will finally land in http://cvs.openbsd.org/faq/pf/example1.html, which is what you are asking about ;) -Wash http://www.netmeister.org/news/learn2quote.html DISCLAIMER: See http://www.wananchi.com/bms/terms.php -- +======================================================================+ |\ _,,,---,,_ | Odhiambo Washington Zzz /,`.-'`' -. ;-;;,_ | Wananchi Online Ltd. www.wananchi.com |,4- ) )-,_. ,\ ( `'-'| Tel: +254 20 313985-9 +254 20 313922 '---''(_/--' `-'\_) | GSM: +254 722 743223 +254 733 744121 +======================================================================+ As the poet said, "Only God can make a tree" -- probably because it's so hard to figure out how to get the bark on. -- Woody Allen