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

    UPnP support

    Scheduled Pinned Locked Moved Expired/Withdrawn Bounties
    363 Posts 28 Posters 395.5k 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.
    • R
      rsw686
      last edited by

      Thanks for figuring that out. I have verified this behavior and will try and fix it. It only happens on my box if log packets is checked. This is what you found right?

      EDIT: I found the issue. I wll commit this in a few and you can either reinstall the package again or in the web gui goto diagnostics -> edit file.

      Open /usr/local/www/status_upnp.php

      Find the following line

      if (preg_match("/rdr on (.) inet proto (.) from any to any port = (.) label "(.)" -> (.) port (.)/", $rdr_entry, $matches))

      and remove "rdr ". It should look like the below

      if (preg_match("/on (.) inet proto (.) from any to any port = (.) label "(.)" -> (.) port (.)/", $rdr_entry, $matches))

      1 Reply Last reply Reply Quote 0
      • T
        tmetz
        last edited by

        @rsw686:

        Thanks for figuring that out. I have verified this behavior and will try and fix it. It only happens on my box if log packets is checked. This is what you found right?

        EDIT: I found the issue. I wll commit this in a few and you can either reinstall the package again or in the web gui goto diagnostics -> edit file.

        Open /usr/local/www/status_upnp.php

        Find the following line

        if (preg_match("/rdr on (.) inet proto (.) from any to any port = (.) label "(.)" -> (.) port (.)/", $rdr_entry, $matches))

        and remove "rdr ". It should look like the below

        if (preg_match("/on (.) inet proto (.) from any to any port = (.) label "(.)" -> (.) port (.)/", $rdr_entry, $matches))

        Great, thx! Yes, I just retested and the problem was only with log packets and not the time option.

        Tim

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

          Just want to say thanks to all who made this package work so well.  I was able to remove the forwarded port mappings for uTorrent and eMule and both are opening and closing the needed ports perfectly.  I tested this with Windows SSDP and UPnP services disabled and both still work.  uTorrent has UPnP built into it, but you have to use the eMule MorphXT version of eMule to get UPnP built in.

          1 Reply Last reply Reply Quote 0
          • M
            mbedyn
            last edited by

            hello
            Great work.. but seams to  MiniUpnpd service is attached to BASE system and additionally, still exist in packages available to install.
            Now, I have two the same entries in menu  ;D

            regards
            Michael

            1 Reply Last reply Reply Quote 0
            • B
              billm
              last edited by

              @mbedyn:

              hello
              Great work.. but seams to  MiniUpnpd service is attached to BASE system and additionally, still exist in packages available to install.
              Now, I have two the same entries in menu  ;D

              regards
              Michael

              De-install the package, then reapply the update.  We'll pull it from the packages list once we have an actual release that contains this in base :)

              –Bill

              pfSense core developer
              blog - http://www.ucsecurity.com/
              twitter - billmarquette

              1 Reply Last reply Reply Quote 0
              • T
                trendchiller
                last edited by

                BTW:
                uPNP is not too important for me, but nice that it works, but:

                cosmetically it would look much better when called uPNP in the GUI, not miniupnpd i think…

                and would it be possible to have a checkbox to activate or deactivate, since it's built in to pfsense by now ?

                as in the RIP package, there is a way to enable or disable... would be some kind of essential i think...

                regards,

                Martin

                1 Reply Last reply Reply Quote 0
                • R
                  rsw686
                  last edited by

                  @trendchiller:

                  BTW:
                  uPNP is not too important for me, but nice that it works, but:

                  cosmetically it would look much better when called uPNP in the GUI, not miniupnpd i think…

                  and would it be possible to have a checkbox to activate or deactivate, since it's built in to pfsense by now ?

                  as in the RIP package, there is a way to enable or disable... would be some kind of essential i think...

                  regards,

                  Martin

                  Don't select any interfaces and its not enabled. If you've selected an interface and want to deselect it hold the ctrl key and click the selected interface. Save the settings. Look in the log it will say something like

                  miniupnpd: syncing package
                  miniupnpd: no interfaces found stopping service

                  1 Reply Last reply Reply Quote 0
                  • H
                    hoba
                    last edited by

                    Can you add this as description somewhere in the gui? I think this will become a faq if it's not noted there.

                    1 Reply Last reply Reply Quote 0
                    • R
                      rsw686
                      last edited by

                      @hoba:

                      Can you add this as description somewhere in the gui? I think this will become a faq if it's not noted there.

                      I'll do that as well as removing the the syslog messages unless the service is active. That way there is no confusion whether its active or not.

                      1 Reply Last reply Reply Quote 0
                      • H
                        hoba
                        last edited by

                        Great  :)

                        1 Reply Last reply Reply Quote 0
                        • S
                          Skud
                          last edited by

                          If it's just as easy, why not put an "Enable UPnP" checkbox? That way there is no confusion and if it's unchecked you KNOW that it's not running..

                          Again, if it's just as easy..

                          Thanks!!
                          Riley

                          1 Reply Last reply Reply Quote 0
                          • T
                            trendchiller
                            last edited by

                            I'd find it better, too… with a checkbox...

                            else, why is the miniupnpd listed in the packages tab when it's included in the pfsense itself ?

                            1 Reply Last reply Reply Quote 0
                            • R
                              rsw686
                              last edited by

                              @trendchiller:

                              I'd find it better, too… with a checkbox...

                              else, why is the miniupnpd listed in the packages tab when it's included in the pfsense itself ?

                              Its listed in the packages tab because its not included in an official release yet. Once it is, it will be removed from the packages list.

                              Yes its easy to add a checkbox, but I really don't understand why. Its redundant to the interfaces box. A check is just as easy to spot as a highlighted interface.  ;) ;)

                              The thing is then if you select the checkbox miniupnpd might not be running because no interfaces are selected.

                              Let me discuss this and I'll get back to you two on it.

                              1 Reply Last reply Reply Quote 0
                              • B
                                billm
                                last edited by

                                @trendchiller:

                                I'd find it better, too… with a checkbox...

                                else, why is the miniupnpd listed in the packages tab when it's included in the pfsense itself ?

                                I answered that something like 5 posts back.

                                –Bill

                                pfSense core developer
                                blog - http://www.ucsecurity.com/
                                twitter - billmarquette

                                1 Reply Last reply Reply Quote 0
                                • R
                                  rsw686
                                  last edited by

                                  I updated miniupnpd to version 20061214. I added the checkbox to enable it, and changed the format of miniupnpd to MiniUPnPd on the menu. Let me know if theres anything else you see that should be changed.

                                  1 Reply Last reply Reply Quote 0
                                  • valnarV
                                    valnar
                                    last edited by

                                    Sorry I haven't read through this whole thread, but I have a question.

                                    I'm coming as a m0n0wall user that needs UPnP support.  Do any of the later builds have this already installed in pfsense?  Or is it still a manual process to get it added?  I need this functionality to make an H.323 video application work.  http://www.polycom.com/products_services/0,,pw-4367,00.html

                                    I'll be using the embedded (WRAP) image.

                                    Thanks!
                                    Robert

                                    1 Reply Last reply Reply Quote 0
                                    • D
                                      databeestje
                                      last edited by

                                      if this is a embedded or livecd install. fetch yourself a snapshot from http://pfsense.com/~sullrich/

                                      If this is a HD install. Download 1.0.1 and install the package through the package menu.

                                      1 Reply Last reply Reply Quote 0
                                      • valnarV
                                        valnar
                                        last edited by

                                        Got the latest one there. Thanks!

                                        Robert

                                        Edit: UPnP seems to be working, but there is nothing ever listed in the UPNP Status page.
                                        Also, once you've entered some information in the miniupnpd Settings tab, is there ever a way to stop or clear the firewall from using UPnP short of resetting back to factory defaults?  How do you stop or restart the service?

                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          databeestje
                                          last edited by

                                          let's see, there is a enable disable checkbox.
                                          Status -> Services displays the current status.
                                          And the upnp status does display created port mapping. If there is nothing mapped, there is nothing to see. The rest goes into the system log.

                                          1 Reply Last reply Reply Quote 0
                                          • valnarV
                                            valnar
                                            last edited by

                                            Where is the enable/disable checkbox?  Not on the 12-23-2006 build I'm using.

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