diff options
author | Gaurav Sinha <gaurav.sinha@vyatta.com> | 2012-08-07 10:21:44 -0700 |
---|---|---|
committer | Gaurav Sinha <gaurav.sinha@vyatta.com> | 2012-08-07 10:21:44 -0700 |
commit | c5034d9090283e617193eb55c53427d4a773e4fa (patch) | |
tree | 341c1a21bef68714474bbb777873c10ff5d0c23d /lib/Vyatta | |
parent | 66971a32b157e1dfe4491843ab28857aa5495a4f (diff) | |
download | vyatta-conntrack-c5034d9090283e617193eb55c53427d4a773e4fa.tar.gz vyatta-conntrack-c5034d9090283e617193eb55c53427d4a773e4fa.zip |
fixing rule creation
Diffstat (limited to 'lib/Vyatta')
-rw-r--r-- | lib/Vyatta/Conntrack/RuleIgnore.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Vyatta/Conntrack/RuleIgnore.pm b/lib/Vyatta/Conntrack/RuleIgnore.pm index fd10e09..3ff0211 100644 --- a/lib/Vyatta/Conntrack/RuleIgnore.pm +++ b/lib/Vyatta/Conntrack/RuleIgnore.pm @@ -31,8 +31,11 @@ sub rule { my $tcp_and_udp = 0; # set CLI rule num as comment my @level_nodes = split (' ', $self->{_comment}); - print "level nodes is @level_nodes\n"; - $rule .= "-m comment --comment \"$level_nodes[2]-$level_nodes[5]\" "; + $rule .= " -m comment --comment \"$level_nodes[2]-$level_nodes[4]\" "; + + if (defined($self->{_interface})) { + $rule .= " -i $self->{_interface} "; + } ($srcrule, $err_str) = $src->rule(); if (defined($err_str)) { Vyatta::Config::outputError(["Conntrack"], "Conntrack config error: $err_str"); |