On 26/08/2020 18:42, Luis Mario Niedas Hernández wrote:
Hello. I want to deactivate a rule in my nftables.conf. I just want that a especific rule it is not considered by netfilter, but I don't want erased. It is possible to do it? I am a Spanish speaker, so, sorry if I made a mistake with the grammar.
Make the line a comment with the # symbol. Alternatively, you could alter the rule so that it effectively does nothing. For example, this:
tcp dport 22 accept … could be changed to: tcp dport 22 comment "disabled" -- Kerin Millar