Commit 46c96891 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

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

(cherry picked from commit e19f6285)
parent 0c92d69c
......@@ -3191,7 +3191,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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment