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

UPnP Fix for multiple clients/consoles playing the same game

Gaming
22
109
41.5k
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.
  • J
    jimp Rebel Alliance Developer Netgate @Bob.Dig
    last edited by Apr 4, 2022, 1:38 PM

    @bob-dig said in UPnP Fix for multiple clients/consoles playing the same game:

    I had this fix enabled and later added another interface to pfSense (ah yes, the wonders of virtualization) and that interface was not shown in the upnp webui.
    I then disabled this patch, rebooted pfSense and now it is shown.
    Just to let you know (22.01-RELEASE)

    That is completely unrelated to this patch. It only touches the NAT rules and there is no way it could interfere with anything like that.

    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!

    B 1 Reply Last reply Apr 4, 2022, 1:57 PM Reply Quote 1
    • B
      Bob.Dig LAYER 8 @jimp
      last edited by Apr 4, 2022, 1:57 PM

      @jimp Your right, had no success now in recreating this problem.

      1 Reply Last reply Reply Quote 0
      • J
        Jon8RFC
        last edited by Apr 5, 2022, 10:18 AM

        @encrypt1d @Saber
        I can't find any official channel to report a PS5 bug. The only thing I found is their bounty program. However, if it's worded properly (which I couldn't do or understand), they may pass it along to whoever needs to fix the problem. I even looked on linkedin to find someone specific that I could contact directly, and found nobody useful.

        I couldn't find the appropriate RFC to reference, so I couldn't mention that when I attempted making a report and reference the post of the logs, which I decided against.

        You both seem to know what's going on with hands-on experience with the UPnP problem in general, and with Sony devices, so I hope you'll consider sending a report and mention that there's no appropriate venue to report this issue:
        https://hackerone.com/playstation/reports/new?type=team&report_type=vulnerability

        E 1 Reply Last reply Apr 9, 2022, 1:33 PM Reply Quote 0
        • A
          aniel
          last edited by Apr 9, 2022, 4:44 AM

          how can i implement this network wise. it has been so long that i don't remember how?

          1 Reply Last reply Reply Quote 0
          • E
            encrypt1d @Jon8RFC
            last edited by Apr 9, 2022, 1:33 PM

            @jon8rfc

            I believe this is the RFC, and I have linked the relevant section. I am not a UPNP expert :)

            https://datatracker.ietf.org/doc/html/rfc6970#section-5.6.2

            It shows that when the UPNP client asks for a port that is already taken, the protocol dictates that it should respond with error 718 / ConflictInMappingEntry and then proceed to try another port.

            The evidence @Saber collected showed it continuing to try the same port every time, which is where their problem likely is.

            I don't have any playstations, so I would not be able to help further.

            A 1 Reply Last reply Apr 14, 2022, 6:47 PM Reply Quote 1
            • A
              Argon 0 @encrypt1d
              last edited by Argon 0 Apr 14, 2022, 6:48 PM Apr 14, 2022, 6:47 PM

              @encrypt1d I have tested the patch with two PlayStation 3's (OS also based on FreeBSD) and see the same behaviour as @Saber i.e. the first booted PS gets NAT type 2 and shows up in the UPnP & NAT-PMP status section, but the second PS does not and gets NAT type 3 assigned.

              Is there any other way to setup both PlayStations with NAT type 2 i.e. "open"?

              S 1 Reply Last reply Apr 18, 2022, 2:13 PM Reply Quote 0
              • S
                Saber @Argon 0
                last edited by Saber Apr 18, 2022, 2:14 PM Apr 18, 2022, 2:13 PM

                @argon-0 Yeah, just configure the normal gaming setup for PFSense which is to setup an Outbound static port rule:

                https://docs.netgate.com/pfsense/en/latest/nat/outbound.html#nat-staticport

                I configured that to get both my playstations on at the same time with NAT type 2. Network wise the behavior remains the exact same with second powered up playstation requesting the same damn port, but for whatever reason gets a Type 2 NAT with the outbound static port configuration.

                1 Reply Last reply Reply Quote 1
                • S stephenw10 referenced this topic on Apr 22, 2022, 4:44 PM
                • S stephenw10 referenced this topic on Apr 22, 2022, 4:44 PM
                • E
                  encrypt1d
                  last edited by May 4, 2022, 5:49 PM

                  I had some friends over to really test this out last weekend and below are my results:

                  Verdict: Success

                  6 Windows PCs total, Five Windows 10 / One Windows 11.

                  Games tested: Call of Duty Black OPS III and WWII

                  All five of the windows 10 machines got OPEN NAT in game straight away. The Windows 11 machine would NOT play ball. No matter what we tried, the Win 11 game client just refused to send any UPnP requests to the pfSense. To be clear - that is not a pfSense issue. I have reproduced it since, and will continue to debug that. Manually adding the ports via the Windows 11 gui worked to get open NAT (Windows File Explorer -> Network -> Right click on FreeBSD router -> Properties -> General -> Settings -> Add). So Windows 11 can talk to the miniupnpd server, just CoD doesn't seem to even try.

                  Has anyone else gotten a CoD game on Windows 11 to talk UPnP? Would like to know if there is a magic secret. This is totally unrelated to pfSense as far as I know. Of course I had all software firewalls disabled for the test, and file & printer sharing on, network discovery on.

                  S 1 Reply Last reply May 5, 2022, 3:07 PM Reply Quote 0
                  • S
                    Saber @encrypt1d
                    last edited by May 5, 2022, 3:07 PM

                    @encrypt1d

                    Did you confirm that the network is Private and not Public? This document discusses some steps for network discovery for Windows 11 which appears to be a little different than previous versions of Windows.

                    https://www.minitool.com/news/windows-11-workgroup-not-showing-all-network-computers.html

                    E 1 Reply Last reply May 5, 2022, 3:14 PM Reply Quote 0
                    • E
                      encrypt1d @Saber
                      last edited by May 5, 2022, 3:14 PM

                      @saber
                      Yes indeed it, is set to Private.

                      S 1 Reply Last reply May 5, 2022, 3:23 PM Reply Quote 1
                      • S
                        Saber @encrypt1d
                        last edited by May 5, 2022, 3:23 PM

                        @encrypt1d

                        Win 11 is so new, it honestly wouldn't surprise me if its a bug.

                        E 1 Reply Last reply May 5, 2022, 3:52 PM Reply Quote 0
                        • E
                          encrypt1d @Saber
                          last edited by May 5, 2022, 3:52 PM

                          @saber
                          Could very well be. I plan to test CoD Warzone soon, as it works fine on Windows 10 with UPnP, and is updated regularly at this point.

                          E 1 Reply Last reply May 5, 2022, 4:55 PM Reply Quote 0
                          • E
                            encrypt1d @encrypt1d
                            last edited by May 5, 2022, 4:55 PM

                            Tested at lunch today. Interesting results.

                            I installed CoD Warzone (which is free, relatively new, and constantly updated). I fired it up and immediately got UPnP requests/OPEN NAT.

                            Weird thing is, that ALSO fixed BO3 and WWII. They both instantly worked afterwards.

                            I can only guess, but they may all use some shared net code to access UPnP via the OS, which was updated by Warzone? Dunno.

                            Mystery somewhat solved. All 3 games working fine on Win 11 and behind a pfSense with this patch.

                            1 Reply Last reply Reply Quote 0
                            • K
                              kevin.ruffus
                              last edited by May 23, 2022, 1:39 PM

                              Can confirm that the patch is at least part of resolving the issue, and that both the firewall and any system that will be using UPNP need to be rebooted in order for the fixes to take effect. I made multiple attempts reloading the filters and resetting the state tables with only rebooting the PC, resetting the NIC, etc, and only full reboots to both the PC and firewall worked.

                              I don't know if it's possible, but one thing that might help lessen the potential security issue with using UPNP would be to clear generated forwards after a certain amount of time of non-use. Just a thought.

                              1 Reply Last reply Reply Quote 0
                              • F
                                Frisbee3713
                                last edited by Frisbee3713 May 25, 2022, 9:45 PM May 25, 2022, 9:42 PM

                                Finally UPnP seems to work as expected upon applying the system patch. No additional configuration required: static port, 1:1, hairpin, etc need not be enabled.

                                Unfortunately UPnP is still very broken in dual stack situations where clients presumably send UPnP requests from the IPv6 link local address. I suspect users who could not get it to work in this thread are probably using dual stack deployments. Disabling IPv6 on client will make UPnP work as it should. Apps that only support IPv4 work regardless in my testing.

                                If only there was a way for miniupnpd to consider v6 GUA + v6 LL + v4 addresses as one entity and apply needed port forward and pinholes accordingly then all UPnP problems would be addressed for good?!

                                Thank you devs for this patch.

                                EDIT: There appears to be an issue where UPnP leases never expire: If not click ‘clear all session’ in web GUI port forward exist idefinitely. Should they not expire at some point?

                                1 Reply Last reply Reply Quote 2
                                • J jimp locked this topic on May 26, 2022, 4:12 PM
                                • J
                                  jimp Rebel Alliance Developer Netgate
                                  last edited by May 26, 2022, 4:13 PM

                                  Locking this as the core problem here is solved.

                                  If you have an issue with UPnP in your specific environment with the fix in place, please start a new thread with the details.

                                  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 2
                                  • J jax7778 referenced this topic on May 29, 2022, 3:37 PM
                                  • M mr_pokemans referenced this topic on Aug 4, 2022, 11:17 PM
                                  • S SteveITS referenced this topic on Jan 18, 2023, 4:33 PM
                                  • G Gblenn referenced this topic on Mar 11, 2023, 3:20 PM
                                  • G Gblenn referenced this topic on Mar 11, 2023, 3:20 PM
                                  • G Gblenn referenced this topic on Mar 11, 2023, 3:21 PM
                                  • G Gblenn referenced this topic on Mar 11, 2023, 3:21 PM
                                  • G Gblenn referenced this topic on Mar 11, 2023, 3:34 PM
                                  • G Gblenn referenced this topic on Mar 11, 2023, 3:34 PM
                                  • S solarizde referenced this topic on Mar 27, 2023, 3:07 PM
                                  • S solarizde referenced this topic on Mar 27, 2023, 3:09 PM
                                  • S solarizde referenced this topic on Mar 27, 2023, 3:12 PM
                                  • S solarizde referenced this topic on Mar 28, 2023, 6:16 AM
                                  • G Gblenn referenced this topic on Mar 22, 2024, 10:28 PM
                                  • R reborndata referenced this topic on Jun 28, 2024, 4:45 PM
                                  • First post
                                    Last post
                                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.