diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2004-11-21 21:00:42 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2004-11-21 21:00:42 +0000 |
commit | ce45de77f0d51365a2efb4889cffc01e1b9b970b (patch) | |
tree | 0da6ff922b834f042a34147ce492a45efa2e9f5a /etc | |
parent | 4cc0d94c0d527126c5375c2c8dfec173725834be (diff) | |
download | pfsense-ce45de77f0d51365a2efb4889cffc01e1b9b970b.zip pfsense-ce45de77f0d51365a2efb4889cffc01e1b9b970b.tar.gz |
Forgot a closing brace.
Pointy-hat-to-me-award.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 2e87350..ea2e4e4 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -67,7 +67,7 @@ function filter_configure() { /* generate altq queues */ $altq_queues = filter_generate_altq_queues(); - if(!isset($config['system']['disablefilter']) { + if( !isset( $config['system']['disablefilter'] ) ) { mwexec("/sbin/pfctl -e"); mwexec("/sbin/pfctl -F nat"); mwexec("/sbin/pfctl -F rules"); @@ -938,16 +938,20 @@ EOD; } if ($type == "pass") { + + if( isset($rule['source-track']) or isset($rule['max-src-nodes']) or isset($rule['max-src-states'] ) { + $line .= "flags S/SA "; + $line .= "keep state "; - - if(isset($rule['source-track']) or isset($rule['max-src-nodes']) or isset($rule['max-src-states']) { + + if( isset($rule['source-track']) or isset($rule['max-src-nodes']) or isset($rule['max-src-states'] ) { $line .= "( "; - if(isset($rule['source-track']) - $line .= " source-track"; - if(isset($rule['max-src-nodes']) - $line .= " max-src-nodes " . $rule['max-src-nodes']; - if(isset($rule['max-src-states']) - $line .= " max-src-states" . $rule['max-src-states']; + if(isset($rule['source-track'])) + $line .= "source-track rule "; + if(isset($rule['max-src-nodes'])) + $line .= "max-src-nodes " . $rule['max-src-nodes'] . " "; + if(isset($rule['max-src-states'])) + $line .= "max-src-states" . $rule['max-src-states'] . " "; $line .= " ) "; } |