From f9c89b30f7598e769837ff33dd9dfb2847e5053f Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Mon, 17 Dec 2018 22:47:54 +0100 Subject: T1111: use unique recent packet list names in rules. --- lib/Vyatta/IpTables/Rule.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/Vyatta/IpTables/Rule.pm b/lib/Vyatta/IpTables/Rule.pm index 5172011..5f1e0a4 100755 --- a/lib/Vyatta/IpTables/Rule.pm +++ b/lib/Vyatta/IpTables/Rule.pm @@ -574,6 +574,9 @@ first character capitalized eg. Mon,Thu,Sat For negation, add ! in front eg. !Mo $recent_rule1 .= " --hitcount $self->{_recent_cnt} "; } + $recent_rule1 .= " --name $self->{_name}-$self->{_rule_number} "; + $recent_rule2 .= " --name $self->{_name}-$self->{_rule_number} "; + $recent_rule = $rule; if ($rule =~ m/\-m\s+set\s+\-\-match\-set/) { -- cgit v1.2.3