PF POSTROUTING and NAT

Hello All

Could someone translate this iptables rule to pf rule
Code:
iptables -t nat -A POSTROUTING -j MASQUERADE
interface name: em0

Thanks
 
Probably something like this:
Code:
nat on em0 from any to any -> (em0)
 
You must have made a typo because there's nothing wrong with the syntax:
Code:
root@armitage:~ # cat pf.test
nat on em0 from any to any -> (em0)
root@armitage:~ # pfctl -nf pf.test
root@armitage:~ #
 
Back
Top