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

    UPnP support

    Scheduled Pinned Locked Moved Expired/Withdrawn Bounties
    363 Posts 28 Posters 415.8k 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
      KiaN
      last edited by

      I did upload the latest miniupnpd file to /usr/local/sbin, the service is running, but Windows Live Messenger still says I am using a "symetrical NAT non-UPNP network".

      1 Reply Last reply Reply Quote 0
      • N
        nsumner
        last edited by

        For me, Windows live messenger (installed for 5 minutes then uninstalled) says I am connected through a UPnP symetric NAT.

        1 Reply Last reply Reply Quote 0
        • O
          ollopa
          last edited by

          MSN messenger 7.5 says symmetric UPnP NAT for me.

          MSN Live Messenger also say UPnP symmetric NAT.

          Download this UPnP tester here http://noeld.com/programs.asp?cat=dstools#upnptest and look for root devices.
          The latest version should show up as miniupnp daemon.  If not, then you have a problem with your firewall settings or your miniupnpd installation.

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

            @hshh:

            Will upnp break traffic shape?

            Depending on where the anchor for miniupnp is placed you'll probably see all traffic that matches your upnp rule(s) fall into the default queue.

            –Bill

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

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

              If there are 2 router with UPNP, will clients get wrong gateway upnp ip? Not all client are using same gateway.

              1 Reply Last reply Reply Quote 0
              • O
                ollopa
                last edited by

                It will likely depend upon your client's implementation.

                It's up to your client to determine which UPnP device to use.

                1 Reply Last reply Reply Quote 0
                • J
                  Jonb
                  last edited by

                  Just out of interest what is happening in regards to the UPNP support.  Will it be in the next release as a switch on function???  I have tested wail databeestje was programing and it did work with some apps.  ollopa seems to of done some good updates to make the Upnp function more.

                  Hosted desktops and servers with support without complication.
                  www.blueskysystems.co.uk

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

                    It will remain a package.

                    We ar waiting on ollopa to finish up and we will merge his changes back into the package.

                    1 Reply Last reply Reply Quote 0
                    • K
                      KiaN
                      last edited by

                      @ollopa:

                      Download this UPnP tester here http://noeld.com/programs.asp?cat=dstools#upnptest and look for root devices.
                      The latest version should show up as miniupnp daemon.  If not, then you have a problem with your firewall settings or your miniupnpd installation.

                      It says :

                      Microsoft Windows XP Professional Service Pack 2
                      Version: 5.01.2600
                      
                      UPnPTest V2.06 (Build 35.5)
                      
                      ERROR: Universal Plug and Play Device Host service not running
                      
                      20:34:22 - Filter: .All Root Devices
                      20:34:22 - Monitoring started
                      20:34:22 - Device added: MiniUPnP daemon [uuid:00000000-0000-0000-0000-000000000000]
                      20:34:22 - Device external IP address: 82.xxx.xxx.179
                      20:34:22 - Device external IP address: 82.xxx.xxx.179
                      20:34:31 - Search complete
                      

                      In my Network Connections, I have Internet Connection which means that it at least works a bit, but when I want to see it's status, it show for a second, saying what's on the following screenshot and then disapears.

                      1 Reply Last reply Reply Quote 0
                      • O
                        ollopa
                        last edited by

                        @sullrich:

                        It will remain a package.

                        We ar waiting on ollopa to finish up and we will merge his changes back into the package.

                        I've stopped working on it for the moment.  The author of miniupnpd is merging my changes into the official release and making some changes to make sure it works on OpenBSD as well as FBSD.  After that, I will probably snag his latest release and work on the final updates.

                        I have a problem where miniupnpd sometimes goes into a race condition and uses 100% cpu.  Has anyone else seen this behavior?

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

                          Yep, I have seen it go into 100% myself as well.  Not sure what causes it.  Only has happened once however.

                          1 Reply Last reply Reply Quote 0
                          • O
                            ollopa
                            last edited by

                            @KiaN:

                            In my Network Connections, I have Internet Connection which means that it at least works a bit, but when I want to see it's status, it show for a second, saying what's on the following screenshot and then disapears.

                            Here's a thought:  How many network cards are in your computer?  Do you have any VPN tunnels or any other interfaces with an IP address on your windows workstation?

                            It is possible that it's telling miniupnpd to map to the wrong address.

                            Fire up MSN messenger, go on the router, and execute this command:
                            pfctl -a miniupnpd -sn

                            Look for a rule similar to this:
                            rdr on xl0 inet proto udp from any to any port = 32977 label "msnmsgr (192.168.10.114:7002) 32977 UDP" -> 192.168.10.114 port 7002

                            You want to make sure the part that says "xl0" for my example matches your WAN interface.  If you're using PPPoE, this should be ng0.

                            Make sure the ip address (192.168.10.114 in my example) matches your workstation's IP address.

                            1 Reply Last reply Reply Quote 0
                            • O
                              ollopa
                              last edited by

                              @sullrich:

                              Yep, I have seen it go into 100% myself as well.  Not sure what causes it.  Only has happened once however.

                              Well some shortcuts were taken with the code I wrote.  I'll take a closer look in the next version and take more care.  Hopefully I'll get to the root of that problem.

                              I've seen it more than once on my wrap box.

                              Anybody know of a good technique to narrow down the section of code that's causing the high CPU usage?

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

                                I am not running your version.  So the race condition is not in your code…

                                1 Reply Last reply Reply Quote 0
                                • O
                                  ollopa
                                  last edited by

                                  @sullrich:

                                  I am not running your version.  So the race condition is not in your code…

                                  Actually that helps, thanks for the tip.  I'll go through it and see if I can find what the problem is.
                                  It might be in the SOAP/HTTP server code.  I had some problems with undersized buffers with the author's original SSDP code.  Perhaps there's a similar condition in the SOAP code.

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

                                    @ollopa:

                                    Actually that helps, thanks for the tip.  I'll go through it and see if I can find what the problem is.
                                    It might be in the SOAP/HTTP server code.  I had some problems with undersized buffers with the author's original SSDP code.  Perhaps there's a similar condition in the SOAP code.

                                    No problem, just didn't want you to waste your time ;)

                                    1 Reply Last reply Reply Quote 0
                                    • O
                                      ollopa
                                      last edited by

                                      @sullrich:

                                      No problem, just didn't want you to waste your time ;)

                                      I might try profiling the code.  Never done profiling before.  Do you think it's appropriate for this situation?

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

                                        Yeah, I don't see why not.  Its a gigantic state machine?

                                        1 Reply Last reply Reply Quote 0
                                        • O
                                          ollopa
                                          last edited by

                                          I don't think so…
                                          I haven't looked closely at all the code but I don't think it keeps track of any particular states at all.
                                          It's pretty much just query-and-answer.

                                          1 Reply Last reply Reply Quote 0
                                          • J
                                            Jonb
                                            last edited by

                                            I have had the CPU lock at 100% a few times when no traffic has been going through and that was without the Upnp being installed.

                                            Hosted desktops and servers with support without complication.
                                            www.blueskysystems.co.uk

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