Thanks! I will add this on the wiki.
> --
> You received this message because you are subscribed to the Google Groups "USB armory" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to usbarmory+...@googlegroups.com.
> To post to this group, send email to usba...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/usbarmory/b8cd27b2-b528-4226-8941-b856e0ee3dff%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Sure!!Suppose that the external interface is en0 (that one that routes to Internet) and the USBarmory is active on en5 then it is sufficient to do the following steps:STEP 1 (enable ipforwarding):sudo sysctl -w net.inet.ip.forwarding=1STEP 2: (enable pf firewall):sudo pfctl -eSTEP 3: (add NAT rule)(echo "nat on en0 int from en5:network to any -> (en0) | sudo pftcl -f -STEP 3 command will work only if en5 is already up, if you want to apply the rule before the USBArmory is plugged into the host you will have to specify the netwok with(echo "nat on en0 int from 10.0.0.0/8 to any -> (en0) | sudo pftcl -f -assuming the standard configuration (with 10.0.0.1 the usbarmory and 10.0.0.2 the network interface).hope this helps!!
I'm adding "nat on $en int from 192.168.2.0/24 to any -> (en5)" to my pf.conf, but on enabling the rules, pf returns a syntax error. Macro's are correctly mapped. I'm on OSX.Any clue what is going wrong?