Re: How deactivate a rule using nft cli?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux