Problem with pf, which is not doing NAT

Jason Garrett kingedgar at gmail.com
Sat Jul 5 20:20:49 UTC 2008


On Fri, Jul 4, 2008 at 4:34 AM, assetburned <freebsd at assetburned.de> wrote:

> Hi
>
> On 04.07.2008, at 08:32, Michael Lednev wrote:
>
>  assetburned пишет:
>>
>>>
>>> So any ideas?
>>>
>>
>> do you have gateway_enable="YES" in /etc/rc.conf?
>>
>
> Yes I have that line active.
>
> I also have natd_enable="NO" because I was told I don't need it anymore for
> pf (I'm a switcher from IPFW).
>
> cu assetburned
>

My relevant lines from pf.conf. Only one lan and one wan. Currently working
great.

ext_if = "fxp0"
int_if = "fxp1"
localnet = $int_if:network
nat on $ext_if from $localnet to any -> ($ext_if)
pass from { lo0, $localnet } to any keep state


More information about the freebsd-questions mailing list