advanced-policy-firewall icon indicating copy to clipboard operation
advanced-policy-firewall copied to clipboard

How add a NAT rule

Open xavatar opened this issue 3 years ago • 2 comments

Hello,

Sorry for my english, i m French. How add in APF a rule like that => iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE

I dont know if it's possible... thanks for the answer.

xavatar avatar Feb 12 '22 00:02 xavatar

hi , you can add the rule to /etc/apf/preroute.rules and then do a apf restart.

jasonwee avatar Feb 12 '22 01:02 jasonwee

Thank you !

xavatar avatar Feb 12 '22 08:02 xavatar