diff options
author | Gaurav Sinha <gaurav.sinha@vyatta.com> | 2012-08-07 11:39:33 -0700 |
---|---|---|
committer | Gaurav Sinha <gaurav.sinha@vyatta.com> | 2012-08-07 11:39:33 -0700 |
commit | 058c232c602003198ff8f01439c349985ddf0fe5 (patch) | |
tree | 299f3330153aff6e15b7642040175fb07faed834 /lib | |
parent | c5034d9090283e617193eb55c53427d4a773e4fa (diff) | |
download | vyatta-conntrack-058c232c602003198ff8f01439c349985ddf0fe5.tar.gz vyatta-conntrack-058c232c602003198ff8f01439c349985ddf0fe5.zip |
fix rule deletion and modification
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Vyatta/Conntrack/RuleIgnore.pm | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/Vyatta/Conntrack/RuleIgnore.pm b/lib/Vyatta/Conntrack/RuleIgnore.pm index 3ff0211..fcb1c6b 100644 --- a/lib/Vyatta/Conntrack/RuleIgnore.pm +++ b/lib/Vyatta/Conntrack/RuleIgnore.pm @@ -1,8 +1,3 @@ -# -# The timeouts are implemented using nfct-timeout policies that are -# later applied to the corresponding iptables rules. The rules and -# policies are distinguished based on the rule number. - package Vyatta::Conntrack::RuleIgnore; use strict; @@ -50,7 +45,6 @@ sub rule { $rule .= " -p $self->{_protocol}"; } $rule .= " $srcrule $dstrule "; - print "rule is $rule\n"; return $rule; } @@ -72,6 +66,7 @@ sub setup_base { $config->setLevel("$level"); $self->{_comment} = $level; $self->{_rule_number} = $config->returnParent(".."); + $self->{_interface} = $config->$val_func("inbound-interface"); $src->$addr_setup("$level source"); $src->{_protocol} = $self->{_protocol};#needed to use address filter |