diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-09-18 18:06:40 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-09-18 18:06:40 +0000 |
commit | 85d73b995e83f090f6ad705d7216fba183502578 (patch) | |
tree | 937d22c64747e1a17af26c82e8875fd5a4fd6920 /etc/inc | |
parent | ac1bd04fd5e96271dd793e16e24b12a25c19f9fa (diff) | |
download | pfsense-85d73b995e83f090f6ad705d7216fba183502578.zip pfsense-85d73b995e83f090f6ad705d7216fba183502578.tar.gz |
Correctly set reflection timeout for all protocols.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/filter.inc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 3c1ace3..898ec0d 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -1232,6 +1232,11 @@ function filter_nat_rules_generate() { $ifname_real = convert_friendly_interface_to_friendly_descr(strtolower($ifname)); + if($config['system']['reflectiontimeout']) + $reflectiontimeout = $config['system']['reflectiontimeout']; + else + $reflectiontimeout = "2000"; + switch($rule['protocol']) { case "tcp/udp": @@ -1250,11 +1255,7 @@ function filter_nat_rules_generate() { } else { $loc_pt_translated = $loc_pt; $toadd_array[] = $loc_pt_translated; - } - if($config['system']['reflectiontimeout']) - $reflectiontimeout = $config['system']['reflectiontimeout']; - else - $reflectiontimeout = "2000"; + } foreach($toadd_array as $tda){ fwrite($inetd_fd, "{$starting_localhost_port}\tstream\ttcp/udp\tnowait/0\tnobody\t/usr/bin/nc nc -u -w {$reflectiontimeout} {$target} {$tda}\n"); if($ifname_real) @@ -3389,4 +3390,4 @@ function return_vpn_subnet($adr) { } -?> +?>
\ No newline at end of file |