You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Made code improvements to parse correctly the following use cases of WebGUI access rules:
1) Using CIDR notation for a single IP address (e.g. 192.168.100.1/32)
2) Using CIDR notation for a block of IP addresses (e.g. 192.168.100.0/28)
This should take care of 99% of the valid use cases.
if [ -z"$ruleMatch" ] ||echo"$restrictRuleList"| grep -qE "${routerIP}>2";then
2612
-
printf"${REDct}WARNING: Access Restrictions are enabled!${NOct}\n"
2613
-
printf"${REDct}Please add the routers IP with 'Web UI' access under 'Administration -> System -> Access restriction list' to permit login to the WebUI.${NOct}\n"
2614
-
printf"${REDct}The alternative option is to disable 'Access restrictions' if unrequired.${NOct}\n"
2615
-
_WaitForEnterKey_
2616
-
return 1
2617
-
fi
2631
+
# Check if WebGUI access is NOT restricted #
2632
+
if! _CheckWebGUILoginAccessOK_
2633
+
then
2634
+
_WaitForEnterKey_ "$mainMenuReturnPromptStr"
2635
+
return 1
2618
2636
fi
2619
2637
2620
2638
# Get the Username from NVRAM #
@@ -6099,7 +6117,7 @@ Please manually update to version $MinSupportedFirmwareVers or higher to use thi
6099
6117
Say "${REDct}**ERROR**${NOct}: Router Login failed."
0 commit comments