summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-10-29 16:43:32 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-10-29 16:43:32 +0000
commit2bda651ba7ce9c3c0e8505bdbe9370c8bcc2d2dc (patch)
tree61ffd80ed20c5a0dec397d992313d81558f376cd /etc/inc
parent7cc7e84db4a545c1a0a9d0f84e871763376156f9 (diff)
downloadpfsense-2bda651ba7ce9c3c0e8505bdbe9370c8bcc2d2dc.zip
pfsense-2bda651ba7ce9c3c0e8505bdbe9370c8bcc2d2dc.tar.gz
Do not install anti lockout rule unless both the lan ip is set and a subnet mask
Ticket #655
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/filter.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 4cb26d0..1526948 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -1485,13 +1485,16 @@ EOD;
if (!isset($config['system']['webgui']['noantilockout'])) {
- $ipfrules .= <<<EOD
+ if($lansa and $lansn) {
+
+ $ipfrules .= <<<EOD
# make sure the user cannot lock himself out of the webGUI or SSH
anchor "anti-lockout"
pass in quick from {$lansa}/{$lansn} to $lanip keep state label "anti-lockout web rule"
EOD;
+ }
}
/* PPTPd enabled? */
OpenPOWER on IntegriCloud