diff --git a/states/nftables/config.sls b/states/nftables/config.sls index 88eff81..44d04d8 100644 --- a/states/nftables/config.sls +++ b/states/nftables/config.sls @@ -25,3 +25,8 @@ nftables-main-config: - require: - file: nftables-rules-config - pkg: nftables-pkg + +nftables-config-check: + cmd.run: + - name: nftables -c -f /etc/nftables.conf + - stateful: True diff --git a/states/nftables/service.sls b/states/nftables/service.sls index c0b3633..792319f 100644 --- a/states/nftables/service.sls +++ b/states/nftables/service.sls @@ -6,3 +6,4 @@ nftables-service: - enable: true - require: - pkg: nftables-pkg + - cmd: nftables-config-check