Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ziomangrovia

macrumors member
Original poster
Jun 8, 2015
79
0
I'm trying to configure NAT rule into pf.

pf.conf file:
load anchor "nat.rules" from "/etc/nat.rules"

nat.rules file:
nat log on en0 from any to 100.12.5.0/29 -> 192.168.31.254

This rule says every packet to this subnet 100.12.5.0/29, the source address is translated to 192.168.31.254
I run:
sysctl net.inet.ip.forwarding=1
pfctl -e -f /etc/pf.conf

How can I verify the rule is applied?
Is there log file ?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.