I am trying to figure out how to use this command with mac os x
iptables -t nat -A POSTROUTING -o eth2 -j MASQUERADE
The only thing I have found that seems like it might work is
ipfw add m all from me to 0.0.0.0/0
but I get: ipfw: invalid action m\n'
Does anybody know how I could translate the iptable code to mac compatible code?