Open seanho00 opened 4 years ago
Uninstall iptables-persistent and create a systemd service that calls iptables-restore
on boot (or prior to network online?), and doesn't do iptables-save
on shutdown. Template the default rule set to somewhere in /etc.
Moved from https://github.com/ho-ansible/tinc/issues/20
Amend systemd unit file for a service by adding
ExecStart*
entries to/etc/systemd/system/mysvc.service.d/*.conf
, e.g.,Also, add managed rules to a dedicated iptables chain, which is then enabled with a single rule in the main INPUT chain, and can be separately flushed.