Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

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

    Scheduled Pinned Locked Moved webGUI
    2 Posts 2 Posters 1.1k 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.
        Edit : and where are the logs ??

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.