Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Aug 2006 18:15:26 +0300
From:      Odhiambo Washington <wash@wananchi.com>
To:        Bruno Bandeira <bbandeira@gmail.com>
Cc:        freebsd-pf@freebsd.org
Subject:   Re: Newbie
Message-ID:  <20060825151526.GA46160@ns2.wananchi.com>
In-Reply-To: <130a355b0608250801n6762c91dk159f4880835f8bdd@mail.gmail.com>
References:  <130a355b0608250801n6762c91dk159f4880835f8bdd@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
* 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    <wash@wananchi.com>
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060825151526.GA46160>