diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-02-20 00:07:24 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-02-20 00:07:24 +0000 |
commit | 968cfa56dabd8f8d6d0774576b1890b168bc7f30 (patch) | |
tree | 5d4f4553c63184a31b81e1c6346cefdd802d9019 | |
parent | 754b5daff5ba70dba76d6a9279f95fa5f55320a9 (diff) | |
download | pfsense-968cfa56dabd8f8d6d0774576b1890b168bc7f30.zip pfsense-968cfa56dabd8f8d6d0774576b1890b168bc7f30.tar.gz |
Really assign keep state to the rules if no other method is chosen.
-rw-r--r-- | etc/inc/filter.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 850fac6..ae7428f 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -1440,9 +1440,7 @@ EOD; do not use state mechanisms to keep track. this is only useful if your doing advanced queueing in certain situations. please check the faq. */ - if(!isset($rule['statetype']) && $rule['statetype'] != "") { - $line .= "keep state "; - } else { + if(isset($rule['statetype']) && $rule['statetype'] != "") { if($rule['statetype'] == "modulate state" or $rule['statetype'] == "synproxy state") { if($rule['protocol'] == "tcp") $line .= $rule['statetype'] ; @@ -1450,6 +1448,8 @@ EOD; if(!$rule['statetype'] == "none") $line .= $rule['statetype'] ; } + } else { + $line .= "keep state "; } if( isset($rule['source-track']) and $rule['source-track'] <> "" or |