Enkel gateway med NAT (forts.)

Sjekk status med

ifconfig -a

/etc/pf.conf

ext_if = "xl0" # makro for eksternt grensesnitt - tun0 for PPPoE
int_if = "xl1"  # makro for internt grensesnitt
nat on $ext_if from $localnet to any -> ($ext_if) # ext_if kan ha dynamisk IP-adresse
block all
pass from { lo0, $int_if:network } to any keep state