netfilter-persistent to manage a firewall.
But if I try to update firewall rules stored in
/etc/iptables/rules.v4 adding such a line:
-t nat -A POSTROUTING -o wlan0 -j MASQUERADE
Lines starting with
netfilter-persistent fail to run and the firewall is not updated:
Nov 16 11:51:32 helena systemd: netfilter-persistent.service: Main process exited, code=exited, status=1/FAILURE Nov 16 11:51:32 helena systemd: Failed to start netfilter persistent configuration.
So I am wondering if it is possible to store this kind of rules with
- Is it a known limitation?
- Is there a good reason why it cannot work?
- Is there a hack to make it work?