iptables to pf conversion

All,

I've been having some problems converting some commands from iptables to pf.

Can someone help me with this conversion.

Code:
iptables -A FORWARD -o $tundev -j ACCEPT
iptables -A FORWARD -i $tundev -j ACCEPT
iptables -t nat -A POSTROUTING -o $tundev -j MASQUERADE
$tundev will be the tunnel created, which usually is tun0.

Thanks a lot!

David Cabrejos
 
Something like this perhaps?

Code:
nat on $tundev from any to any -> ($tundev)
 
Back
Top