zio_mangrovia
Registered
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 ?
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 ?