Webgui random no response (Have to restart webconfigurator via SSH) 2.2.6
-
Having some really strange issues with 1 system that I have to continually restart the webconfigurator due to it not being accessible. I am syslogging all output to a server so I can query any suggestions anyone might have.
Possible issues?
Apr 16 21:28:09 x.x.x.x php-fpm: /services_captiveportal.php: The command '/sbin/ipfw zone 2 mdel ' returned exit code '64', the output was 'ipfw: bad arguments, for usage summary ``ipfw'''
php-fpm: /services_captiveportal.php: The command '/sbin/ipfw zone 2 mdel ' returned exit code '64', the output was 'ipfw: bad arguments, for usage summary ``ipfw'''
-
I'm not using 2.2.6 anymore (its 2.3 show time now for me) , but I guess the code is still the same;
/usr/local/www/services_captiveportal.php :/* Clear up unselected interfaces */ $newifaces = explode(",", $newcp['interface']); $toremove = array_diff($oldifaces, $newifaces); if (!empty($toremove)) { foreach ($toremove as $removeif) { $removeif = get_real_interface($removeif); mwexec("/sbin/ipfw zone {$cpzoneid} mdel {$removeif}"); } }Your error indicates me that $removeif contains nothing : ipfw will bail out.
This means that $removeif = get_real_interface($removeif); will return nothing ….. because it's is "non-real" interface.Have a look at the interfaces you selected for your captive portal : all are ok and do exist ? You swapped NIC's recently ?
Use https://doc.pfsense.org/index.php/Captive_Portal_Troubleshooting to check of the $cpzoneid ("2" in your case) is correct.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginPrivacy Policy · Cookie Policy