diff --git a/Makefile b/Makefile index e810a36..50f8348 100644 --- a/Makefile +++ b/Makefile @@ -14,9 +14,11 @@ test: makeconf $(info checking configuration for errors and possible optimizations) nft -c -o -f $(SRC)$(NFT) -install: test +backup: $(info backing up current nftables rules) cp /etc/nftables.conf $(SRC)backup.conf || nft list ruleset > $(SRC)backup.conf + +install: test backup $(info installing new nftables rules) cp $(SRC)$(NFT) /etc/nftables.conf $(info reloading nftables rules)