switching NAT: ipf to pf not working

Nagilum freebsd at nagilum.org
Mon Aug 23 14:36:09 PDT 2004


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 at freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>  
>



More information about the freebsd-questions mailing list