Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Aug 2004 23:35:51 +0200
From:      Nagilum <freebsd@nagilum.org>
To:        "Jorge Mario G." <murcielako@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: switching NAT: ipf to pf not working
Message-ID:  <412A6337.1060006@nagilum.org>
In-Reply-To: <20040814023511.38548.qmail@web50301.mail.yahoo.com>
References:  <20040814023511.38548.qmail@web50301.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

Try it with this:

ext_if="xl0"

nat on $ext_if inet from ! ($ext_if) to any -> ($ext_if)

Kind regards,
Alex.

Jorge Mario G. wrote:

>Hello there
>
>I'm trying to switch the nat from ipf to pf
>our lan is pretty simple
>
>INTERNET  (pf)--- 192.168.0.0/24 LAN1
>          |
>          |
>          |------- 192.168.1.0/24 Wireless LAN
>our ipf configuration was pretty much like this
>map xl0 192.168.0.0/24 -> 0/32
>map xl0 192.168.1.0/24 -> 0/32
>
>
>Now our pf configuration looks like this:
>nat on xl0 from 192.168.0.0/24 to any -> (xl0)
>nat on xl0 from 192.168.1.0/24 to any -> (xl0)
>
>
>192.168.1.254 is our Wireless access point
>
>
>I dont get it what are we doing wrong?
>
>
>
>Jorge
>
>
>
>
>
>=====
>
>
>_________________________________________________________
>Do You Yahoo!?
>Información de Estados Unidos y América Latina, en Yahoo! Noticias.
>Visítanos en http://noticias.espanol.yahoo.com
>_______________________________________________
>freebsd-questions@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>  
>



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