Question
How to temporarily disable the nftables firewall?
Answer
To save the current rule set and disable all rules using nftables, you can follow these steps:
Save the current rule set to a file:
# nft list ruleset > /path/to/your/backup/file.nft
This will save the current rule set to a file in the NFT syntax format.
Flush all rules:
# nft flush ruleset
This will remove all rules from the rule set.
Verify that there are no rules:
# nft list ruleset
This should return an empty rule set.
To restore the previously saved rule set, you can use the nft -f command, like this:
# nft -f /path/to/your/backup/file.nft
Comments
0 comments
Article is closed for comments.