Hi!
How to apply command to several rules using comment?
Exampl:
0 ;;; a
chain=dstnat action=accept protocol=tcp
1 ;;; b
chain=srcnat action=accept protocol=rdp
set a,b action=drop
Don`t work in 3.11
, in version 2,9,x worked.
Thanks!
Hi!
How to apply command to several rules using comment?
Exampl:
0 ;;; a
chain=dstnat action=accept protocol=tcp
1 ;;; b
chain=srcnat action=accept protocol=rdp
set a,b action=drop
Don`t work in 3.11
, in version 2,9,x worked.
Thanks!
set [find (comment=“a” || comment=“b”)] action=drop
Thanks!!
But it`s very different way, because I have 40-50 rules to apply, do you have simplest command?
Well it depends on …
For example you can find all rules with comments
set [find comment!=“”] action=drop
Thanks!
I need use different comment. Don’t need use all rules in NAT.
I understand your solution, but he has very big command line.
In version 2.9 command line s very short, for example:
set (comment, comment…) disable=yes