Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Webgui random no response (Have to restart webconfigurator via SSH) 2.2.6

    Scheduled Pinned Locked Moved webGUI
    2 Posts 2 Posters 1.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kapara
      last edited by

      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'''

      Skype ID:  Marinhd

      1 Reply Last reply
      Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        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.

        No "help me" PM's please. Use the forum, the community will thank you.

        1 Reply Last reply
        Reply Quote 0

        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 Login
        • First post
          Last post
        Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
        Privacy Policy · Cookie Policy