rfxn / advanced-policy-firewall

Advanced Policy Firewall (APF)
GNU General Public License v2.0
93 stars 46 forks source link

How add a NAT rule #47

Open xavatar opened 2 years ago

xavatar commented 2 years ago

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.

jasonwee commented 2 years ago

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

xavatar commented 2 years ago

Thank you !