diff options
author | Gaurav <gaurav.sinha@vyatta.com> | 2012-03-20 20:39:02 -0700 |
---|---|---|
committer | Gaurav <gaurav.sinha@vyatta.com> | 2012-03-20 20:39:02 -0700 |
commit | 544fd5facd786cd2a0eca1f46399c62e2d8ab667 (patch) | |
tree | 0839b56f058c27ae5a4ac653a0c2a69db3aaf634 /lib/Vyatta/Conntrack/RuleCT.pm | |
parent | 1cf46da939878377ef6e1195af4eb4b68ca672fa (diff) | |
parent | 9e6dec7e0fbf269074a15b0fcfa0aee2e4cc43fb (diff) | |
download | vyatta-conntrack-544fd5facd786cd2a0eca1f46399c62e2d8ab667.tar.gz vyatta-conntrack-544fd5facd786cd2a0eca1f46399c62e2d8ab667.zip |
ct timeouts changes
Diffstat (limited to 'lib/Vyatta/Conntrack/RuleCT.pm')
-rw-r--r-- | lib/Vyatta/Conntrack/RuleCT.pm | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/Vyatta/Conntrack/RuleCT.pm b/lib/Vyatta/Conntrack/RuleCT.pm index bab941e..319edb4 100644 --- a/lib/Vyatta/Conntrack/RuleCT.pm +++ b/lib/Vyatta/Conntrack/RuleCT.pm @@ -81,7 +81,7 @@ sub rule { } elsif ($self->{_protocol} eq "icmp") { $rule .= " -p icmp"; } elsif ($self->{_protocol} eq "other") { - $rule .= " -p 255"; + $rule .= " -p all"; } $rule .= " $srcrule $dstrule "; return $rule; @@ -199,22 +199,22 @@ sub get_policy_command { $command .= " close $self->{_tcp}->{_close}"; } if ($self->{_tcp}->{_close_wait}) { - $command .= " close-wait $self->{_tcp}->{_close_wait}"; + $command .= " close_wait $self->{_tcp}->{_close_wait}"; } if ($self->{_tcp}->{_time_wait}) { - $command .= " time-wait $self->{_tcp}->{_time_wait}"; + $command .= " time_wait $self->{_tcp}->{_time_wait}"; } if ($self->{_tcp}->{_syn_recv}) { - $command .= " syn-recv $self->{_tcp}->{_syn_recv}"; + $command .= " syn_recv $self->{_tcp}->{_syn_recv}"; } if ($self->{_tcp}->{_syn_sent}) { - $command .= " syn-sent $self->{_tcp}->{_syn_sent}"; + $command .= " syn_sent $self->{_tcp}->{_syn_sent}"; } if ($self->{_tcp}->{_last_ack}) { - $command .= " last-ack $self->{_tcp}->{_last_ack}"; + $command .= " last_ack $self->{_tcp}->{_last_ack}"; } if ($self->{_tcp}->{_fin_wait}) { - $command .= " fin-wait $self->{_tcp}->{_fin_wait}"; + $command .= " fin_wait $self->{_tcp}->{_fin_wait}"; } if ($self->{_tcp}->{_established}) { $command .= " established $self->{_tcp}->{_established}"; @@ -228,7 +228,7 @@ sub get_policy_command { $command .= " replied $self->{_udp}->{_stream}"; } } elsif ($self->{_protocol} eq 'icmp') { - $command .= " icmp $self->{_icmp}"; + $command .= " icmp timeout $self->{_icmp}"; } elsif ($self->{_protocol} eq 'other') { $command .= " generic timeout $self->{_other}"; } |