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

    UPnP borken in latest snaps? [SOLVED]

    Scheduled Pinned Locked Moved 1.2.3-PRERELEASE-TESTING snapshots - RETIRED
    10 Posts 3 Posters 3.9k 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.
    • iorxI
      iorx
      last edited by

      Hello!

      I can't activate UPnP any longer. Get this message when I try:

      "Warning: Invalid argument supplied for foreach() in /usr/local/pkg/miniupnpd.inc on line 36 Warning: Cannot modify header information - headers already sent by (output started at /usr/local/pkg/miniupnpd.inc:36) in /usr/local/www/pkg_edit.php on line 35 "

      Any solution on this one on the horizon?

      1 Reply Last reply
      Reply Quote 0
      • C
        ColdFusion
        last edited by

        What snapshot are you using…Full update 1.2.3-RC2
        built on Thu Jul 23 17:25:52 EDT 2009 works fine for me.

        1 Reply Last reply
        Reply Quote 0
        • iorxI
          iorx
          last edited by

          Sorry missed that, was on my way to put the children to sleep when I posted… :-) Now they are sleeping, all 3.

          Strange same version as you are running.
          "1.2.3-RC2 built on Thu Jul 23 17:25:52 EDT 2009."

          It is a new install. Started from pfSense-1.2.3-20090719-2304.iso.gz.

          1 Reply Last reply
          Reply Quote 0
          • iorxI
            iorx
            last edited by

            Here is a cut out from the config:

            
            	 <installedpackages><miniupnpd><config><enable><iface_array>lan</iface_array>
            				 <download><upload><overridewanip><upnpqueue><logpackets><sysuptime><permdefault><permuser1>allow 1024-65535 10.23.1.0/24 1024-65535</permuser1></permdefault></sysuptime></logpackets></upnpqueue></overridewanip></upload></download></enable></config></miniupnpd></installedpackages> 
            

            Getting the same error if I leave the <permuser1>field empty.</permuser1>

            1 Reply Last reply
            Reply Quote 0
            • C
              ColdFusion
              last edited by

              Did the iso version work ok then you updated and stopped working???? Maybe try updating again.

              1 Reply Last reply
              Reply Quote 0
              • iorxI
                iorx
                last edited by

                No, it was broken when I tired it the first time after the installation from the iso. Needed UPnP for my PS3… but time haven't permitted me to look into it until now. So, today, I tried to upgrade to see if that could solve the problem, but no.

                Does the error give any clue what could be wrong?

                1 Reply Last reply
                Reply Quote 0
                • iorxI
                  iorx
                  last edited by

                  Looked at the code:

                  	function upnp_validate_queue($qname) {
                  		global $config;
                  		$qlist = array();
                  		foreach ($config['shaper']['queue'] as $q) {
                  			$qlist[] = $q['name'];
                  		}
                  		return in_array($qname, $qlist);
                  	}
                  

                  Hmmm…. And that part look like it is looking for a Queue. I didn't have any shaper setup in my config. So, I tried going through the shaper wizard and the tried to enable UPnP. That works!

                  Disabling the shaper makes UPnP-config give me the same error as before.

                  Do you have to have the shaper configured for UPnP? I don't remember having that in previous installations of pf.

                  1 Reply Last reply
                  Reply Quote 0
                  • C
                    ColdFusion
                    last edited by

                    With the traffic shaper enabled or disabled…..it still works for me either way.

                    1 Reply Last reply
                    Reply Quote 0
                    • iorxI
                      iorx
                      last edited by

                      Did you erase the shaper rules after you disabled it? I did.

                      That seems to be the problem with UPnP, it doesn't work if there isn't any rules available. I just run the wizard again, disabled the shaper and didn't erase the rules. Now I can enable and disable UPnP without errors.

                      A bug I presume my dear Watson (or is it a feature maybe…)?  ;)

                      Brgs,
                      /iorx

                      1 Reply Last reply
                      Reply Quote 0
                      • jimpJ
                        jimp Rebel Alliance Developer Netgate
                        last edited by

                        It's probably a bug, I just added the code for traffic shaping queues recently, and I probably missed a check for that case.

                        I'll try to have a look at it tomorrow.

                        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                        Need help fast? Netgate Global Support!

                        Do not Chat/PM for help!

                        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