Browse Source

apply fwrules on reboot

master
Sean Johnson 1 year ago
parent
commit
60dac38e8c
  1. 5
      fwrules/init.sls

5
fwrules/init.sls

@ -51,9 +51,12 @@ nftables firewall table: @@ -51,9 +51,12 @@ nftables firewall table:
- backup: minion
- check_cmd: /usr/sbin/nft -c -f
nft -e -f /etc/firewall/firewall.nft:
{{ "nft"|which }} -f /etc/firewall/firewall.nft:
cmd.run:
- onchanges:
- file: /etc/firewall/firewall.nft
- file: /etc/firewall/chains.nft
- file: /etc/firewall/sets.nft
cron.present:
- user: root
- special: "@reboot"

Loading…
Cancel
Save