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

    Will we ever get upnp to work behind private network IP?

    NAT
    3
    42
    8.3k
    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.
    • G
      Gblenn @Bob.Dig
      last edited by

      @bob-dig And are you using STUN as well?

      Bob.DigB 2 Replies Last reply Reply Quote 0
      • Bob.DigB
        Bob.Dig LAYER 8 @Gblenn
        last edited by

        @gblenn I have to.

        Here is a screenshot that shows that UPnP is working for me:

        Capture.PNG

        1 Reply Last reply Reply Quote 0
        • Bob.DigB
          Bob.Dig LAYER 8 @Gblenn
          last edited by

          @gblenn And some more screenshots
          gateway.PNG

          Screenshot 2023-03-06 at 10-59-34 pfSense.home.arpa - Services UPnP & NAT-PMP.png

          G 1 Reply Last reply Reply Quote 0
          • G
            Gblenn @Bob.Dig
            last edited by

            @bob-dig Well it looks no different than it does on my side. UPnP appears to be working, as I stated in test #3. I see the list of ports normally being requested by the games, and the games behave as they would when they get confirmation of the port being opened, but nothing goes through.

            In the case of Torrenting, port forward isn't really a necessity at all. So the fact that Tixati thinks the port is open (it only sais listening and mapped), isn't proof that it's actually being used.

            Bob.DigB 1 Reply Last reply Reply Quote 0
            • Bob.DigB
              Bob.Dig LAYER 8 @Gblenn
              last edited by

              @gblenn the proof is directly Next to it, the port test from grc.

              G 1 Reply Last reply Reply Quote 0
              • G
                Gblenn
                last edited by

                Here's what it looks like in my case

                Port 3074 is what MW3 is asking for and 28960/61 are used by MW2
                99d41fe0-f7e7-4cd6-9503-8107dd0f4ba4-image.png
                A long time after trying to start gameplay, I get this message. Other games just sit there trying to log in...

                8b541fd1-301f-4dfb-8d1e-a3b4407fd399-image.png

                1 Reply Last reply Reply Quote 0
                • G
                  Gblenn @Bob.Dig
                  last edited by

                  @bob-dig said in Will we ever get upnp to work behind private network IP?:

                  @gblenn the proof is directly Next to it, the port test from grc.

                  Really weird stuff...

                  ada5a2d8-ca9a-4214-81d7-7cb0f20c819a-image.png
                  9d10d45e-96f4-4c5d-807d-e2d7ebbefcbb-image.png
                  And game just sits there...

                  Turning off STUN obviously gives me this
                  d8bba95b-db1e-4211-9cf9-77afcbe06515-image.png

                  And...

                  fd117e42-b3bb-45f3-9bec-fd60c3c973a4-image.png

                  But GRC is still reporting stealth?! In fact it does that regardless of what I do...

                  Bob.DigB 2 Replies Last reply Reply Quote 0
                  • Bob.DigB
                    Bob.Dig LAYER 8 @Gblenn
                    last edited by Bob.Dig

                    @gblenn Port-tests usually work only for TCP, so in your case, this is expected.

                    1 Reply Last reply Reply Quote 0
                    • Bob.DigB
                      Bob.Dig LAYER 8 @Gblenn
                      last edited by Bob.Dig

                      @gblenn So you got open? Can it be any better?

                      I did some quick (and dirty) test by enabling Teredo in the first router (Fritzbox).
                      I then got a "strict" NAT type by the xbox networking test in Windows.
                      I then disabled Teredo in the fritzbox and now it shows me "blocked" again.
                      But in both cases UPnP wasn't used according to pfSense.

                      So whatever they are doing, I don't get it. ๐Ÿ˜

                      G 1 Reply Last reply Reply Quote 0
                      • G
                        Gblenn @Bob.Dig
                        last edited by Gblenn

                        @bob-dig said in Will we ever get upnp to work behind private network IP?:

                        @gblenn So you got open? Can it be any better?

                        No no, that was when I turn OFF STUN and rely on regular port forwarding... Tests #1 and 2 above... But as I said, still stealth from GRC, and that is true also if I change the port forwarding to TCP/UDP. But I suppose nothing is listening to UDP on that port...

                        I did some quick (and dirty) test by enabling Teredo in the first router (Fritzbox).
                        I then got a "strict" NAT type by the xbox networking test in Windows.
                        I then disabled Teredo in the fritzbox and now it shows me "blocked" again.
                        But in both cases UPnP wasn't used according to pfSense.

                        So whatever they are doing, I don't get it. ๐Ÿ˜

                        I don't use IPv6 so Teredo shouldn't be relevant?? And I have not tested on an Xbox, never even used one... GRC simply needed a name for the port I guess - sounds better than the underlying application which is Activision Blizzards Demonware. There are a ton of games using that port, but often there are other ports used as well.

                        The whole point is that UPnP works perfectly fine IF I change the WAN IP to a fake public IP. Then all games get Open NAT, just like it does on my main WAN where I have fiber and a public IP on the WAN interface. I can even have STUN enabled for UPnP, as long as the WAN IP is a public one.

                        Can you change from that 172-IP to a fake public one to see what you get in your Xbox testing?

                        One thing to note... I do kill all states related to the PC I'm testing on, and do release/renew between any changes made...

                        Bob.DigB 1 Reply Last reply Reply Quote 0
                        • Bob.DigB
                          Bob.Dig LAYER 8 @Gblenn
                          last edited by

                          @gblenn said in Will we ever get upnp to work behind private network IP?:

                          Can you change from that 172-IP to a fake public one to see what you get in your Xbox testing?

                          That is an option in Windows, has nothing to do with a real xbox. I did some more testing and now I am always blocked. So I say, forget this one (xbox in Windows).

                          G 1 Reply Last reply Reply Quote 0
                          • G
                            Gblenn @Bob.Dig
                            last edited by Gblenn

                            @bob-dig said in Will we ever get upnp to work behind private network IP?:

                            @gblenn said in Will we ever get upnp to work behind private network IP?:

                            Can you change from that 172-IP to a fake public one to see what you get in your Xbox testing?

                            That is an option in Windows, has nothing to do with a real xbox. I did some more testing and now I am always blocked. So I say, forget this one (xbox in Windows).

                            Ok, any games you can test? Call of Duty series from MW2 (2009) and onward basically all use these ports. Quickest one to test with is MW2 or 3. No menu to check for connectivity, simply clicking play will reveal Strict, Moderate or Open NAT, or error as above.

                            1 Reply Last reply Reply Quote 0
                            • G
                              Gblenn
                              last edited by Gblenn

                              As a way to simplify things, here is a much more straight forward testing and comparison between the two main scenarios:

                              Scenario 1.

                              Upstream router gives pfsense a Private IP in DMZ on WAN.
                              UPnP settings in pfsense GUI under Services > UPnP & NAT-PMP: Enable, Allow UPnP Port mapping, Allow NAT-PMP Port mapping, External interface WAN, Internal interface LAN, and I activate STUN (using google server) or Override WAN address using the actual Public IP.

                              Result : in pfsense Status / UPnP & NAT-PMP rules list, the requested port no 3074 UDP is listed together with correct internal IP.
                              WAN udp any 3074 192.168.1.91 3074 DemonwarePortMapping
                              None of the games are able to connect at all = worse than Strict NAT

                              Scenario 2.

                              Upstream router gives pfsense a fake public IP in DMZ on WAN.
                              All other settings as in scenario 1: Enable, Allow UPnP Port mapping, Allow NAT-PMP Port mapping, External interface WAN, Internal interface LAN.
                              However, I do not have to use STUN in order to inform UPnP about the correct external IP. I can use either STUN (google server) OR Override WAN address using the actual Public IP, but doing so makes no difference to the result in this scenario.

                              Result : in pfsense Status / UPnP & NAT-PMP rules list, the requested port no 3074 UDP is listed together with correct internal IP.
                              WAN udp any 3074 192.168.1.91 3074 DemonwarePortMapping
                              All games report Open NAT

                              Bob.DigB 1 Reply Last reply Reply Quote 0
                              • Bob.DigB
                                Bob.Dig LAYER 8 @Gblenn
                                last edited by Bob.Dig

                                @gblenn So could it be a problem of your first router then?

                                I did a packet capture to check if UDP comes through to my LAN and it does. Still the torrent client was used on my part to initiate the UPnP portforwarding.

                                G 1 Reply Last reply Reply Quote 0
                                • G
                                  Gblenn @Bob.Dig
                                  last edited by

                                  @bob-dig said in Will we ever get upnp to work behind private network IP?:

                                  @gblenn So could it be a problem of your first router then?

                                  I did a packet capture to check if UDP comes through to my LAN and it does. Still the torrent client was used on my part to initiate the UPnP portforwarding.

                                  Why would you think it is my upstream router? Isn't it clear that things work perfectly fine as long as it is not a Private IP. I have done tests in the past using another LTE router which I recently swapped between my sites... Also, replacing pfsense with anything like a DDWRT router, Ubiquiti Edgerouter or Netgear with stock fw will work perfectly fine using UPnP.
                                  I find that it is ONLY miniupnp in combination with a private IP that simply does not work...
                                  It should be an easy fix as well, just add a selector where the user can force it to accept a private IP.

                                  I don't think torrenting is a good check, as it will work without any ports being open at all... Are you seeing traffic coming through the specific port listed by UPnP in the Status page?
                                  You need to test with games... Do you have anything from the CoD series?

                                  BTW, is there a config file for miniupnp that I can go in and edit, and where do I find it?

                                  Bob.DigB 1 Reply Last reply Reply Quote 0
                                  • Bob.DigB
                                    Bob.Dig LAYER 8 @Gblenn
                                    last edited by Bob.Dig

                                    @gblenn said in Will we ever get upnp to work behind private network IP?:

                                    You need to test with games... Do you have anything from the CoD series?

                                    It is working with a private IP fine here with my torrent client, that is a fact and has already been proven by me. So there must be something different if your game is doing it, then if my torrent client is doing it.

                                    I play COD WZII but that doesn't need any open port or tell you about NAT-status.

                                    G 1 Reply Last reply Reply Quote 0
                                    • G
                                      Gblenn @Bob.Dig
                                      last edited by Gblenn

                                      @bob-dig Here's my result in trying to start WZ2.0 when STUN is activated.

                                      f1cf53b5-67f0-4534-a936-abf1e5715445-image.png

                                      And it actually does report NAT type, although this error means there is no "NAT" at all to report about.

                                      When in the game Lobby, click Settings > Account and Network and scroll down to Network Info. You will get a screen showing a summary page where it will say Nat type: Open, Moderate or Strict.

                                      I got NAT type Open when testing just now and only forwarding port 3074 in the firewall (no UPnP active at all).

                                      If you get a different result there clearly must be something different in our setups?!

                                      First of all, when making any changes I make sure the game is NOT started. Then go to Diagnostics, States, filter on my PC IP and clear all! Then I do ipconfig /reload and /renew from the PC before starting up the game again.

                                      How can I be sure that UPnP actually has the right external IP using STUN? Alternatively, is it 100% certain that if I enter my public IP in the Override WAN address field, UPnP is definitely using that?

                                      Oh, and like I said, Torrenting is very different. And you don't need UPnP or any ports forwarding for that to work...

                                      1 Reply Last reply Reply Quote 0
                                      • G
                                        Gblenn
                                        last edited by Gblenn

                                        This is what it looks like in WZ 2.0 if I don't have any port forward or UPnP active at all.

                                        d53a00fa-654e-4446-a15a-304ab0e74166-image.png

                                        But I can still connect to servers and play. Normally this would also mean that I can only play with friends who have Open NAT. In WZ you hook up in teams anyway so I'm not sure what this would actually mean in that case.
                                        BUT, if you were to try to set up a Private match in MWII (which WZ is based on), you would however run into trouble having Strict NAT. Only those with Open NAT could connect to you if you were hosting, and anyone with Moderate or Strict NAT will be left out.

                                        The issue here though is that when UPnP is enabled with STUN, I can't connect at all, as the picture in the previous post. This happens in the first startup phase before updating stats and getting all your player info from the servers.

                                        Bob.DigB 1 Reply Last reply Reply Quote 0
                                        • Bob.DigB
                                          Bob.Dig LAYER 8 @Gblenn
                                          last edited by

                                          @gblenn Sry, I only play DMZ and I don't have to deal with NAT there. I am not even sure what the actual name of that title is. ๐Ÿ˜€ But it is fun.

                                          G 1 Reply Last reply Reply Quote 0
                                          • G
                                            Gblenn @Bob.Dig
                                            last edited by

                                            @bob-dig said in Will we ever get upnp to work behind private network IP?:

                                            @gblenn Sry, I only play DMZ and I don't have to deal with NAT there. I am not even sure what the actual name of that title is. ๐Ÿ˜€ But it is fun.

                                            It sure is..
                                            Question... What is your setup exactly, wrt port forward and use of UPnP?

                                            In Firewall > NAT? Inbound and Outbound?
                                            Services > UPnP & NAT-PMP?

                                            And would you mind checking in DMZ (cogwheel up right) under Account and Network and scroll down to Network info. What does it say?

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