diff options
Diffstat (limited to 'lib/Vyatta/Conntrack/RuleIgnore.pm')
-rw-r--r-- | lib/Vyatta/Conntrack/RuleIgnore.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Vyatta/Conntrack/RuleIgnore.pm b/lib/Vyatta/Conntrack/RuleIgnore.pm index 55a2315..0bef8c2 100644 --- a/lib/Vyatta/Conntrack/RuleIgnore.pm +++ b/lib/Vyatta/Conntrack/RuleIgnore.pm @@ -26,8 +26,7 @@ sub rule { my $tcp_and_udp = 0; # set CLI rule num as comment my @level_nodes = split (' ', $self->{_comment}); - $rule .= " -m comment --comment \"$level_nodes[2]-$level_nodes[4]\" "; - + if (defined($self->{_interface})) { $rule .= " -i $self->{_interface} "; } @@ -58,6 +57,7 @@ sub rule { } else { $rule .= " $srcrule $dstrule "; } + $rule .= " -m comment --comment \"$level_nodes[2]-$level_nodes[4]\" "; return $rule; } |