(filter) skip anti lockout wan rule when only lan is connected

This commit is contained in:
Ad Schellevis 2016-04-23 15:30:31 +02:00
parent aa0bee2f09
commit e19f628518

View File

@ -3181,7 +3181,7 @@ EOD;
pass in {$log['pass']} quick on {$lanif} proto tcp from any to ({$lanif}) port { {$alports} } keep state label "anti-lockout rule"
EOD;
} else if (count($config['interfaces']) == 1) {
} elseif (count($config['interfaces']) == 1 && !empty($FilterIflist['wan']['if'])) {
/* single-interface deployment, add to WAN */
$wanif = $FilterIflist["wan"]['if'];
$ipfrules .= <<<EOD