OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: sclawrenc on March 17, 2022, 12:03:48 am

Title: UPnP with multiple clients playing the same game at the same time
Post by: sclawrenc on March 17, 2022, 12:03:48 am
I noticed a patch on the pfsense side that allows multiple UPnP clients to play the same game at the same time.  You can see more information at https://forum.netgate.com/topic/169837/upnp-fix-for-multiple-clients-consoles-playing-the-same-game

Is this already present in the latest release of OPNsense?  I tried it briefly the other day and just ended up doing manual port forwards and rules, but would prefer to use UPnP to make it easier for all of our gaming devices here at home.

I realize there a security risks with UPnP, and I will restrict via ACL.

Thanks in advance!
Title: Re: UPnP with multiple clients playing the same game at the same time
Post by: sclawrenc on March 18, 2022, 02:50:55 pm
Anyone have any updates on my question?  I'm just curious if this UPnP update will be applied to OPNsense or has already been applied.

Thanks in advance.  :)
Title: Re: UPnP with multiple clients playing the same game at the same time
Post by: xpendable on March 19, 2022, 08:26:17 pm
I would like to see this feature included in OPNsense as well :)
Title: Re: UPnP with multiple clients playing the same game at the same time
Post by: rand0nmtask on March 19, 2022, 09:51:16 pm
I am curious about this as well.
Title: Re: UPnP with multiple clients playing the same game at the same time
Post by: fingaz on July 28, 2022, 11:10:35 am
I've been following this issue also for a while now; currently a pfSense user (with now-working UPnP, wahoo!), but looking to switch to new hardware and OPNsense instead, but this is the only thing putting me off, as a home user with multiple consoles/PCs.

I did some looking/digging, and it seems that this patch is not yet present in OPNsense 22.1 or the upcoming 22.7 versions.

Playing in a VM; I have hot-patched 22.7 with:
```
--- /tmp/filter.inc.orig        2022-07-28 08:59:22.662254000 +0000
+++ /usr/local/etc/inc/filter.inc       2022-07-28 08:58:56.378226000 +0000
@@ -346,6 +346,8 @@
     $natrules = "\n# NAT Redirects\n";
     $natrules .= "no nat proto carp all\n";
     $natrules .= "no rdr proto carp all\n";
+    $natrules .= "binat-anchor \"miniupnpd\"\n";
+    $natrules .= "nat-anchor \"miniupnpd\"\n";
     $natrules .= $fw->outputNatRules();

     if ($verbose) {
```
and it didn't explode/stop working at least. I'm unable to test if it actually fixes the issues though until the new hardware arrives...
Those curious enough to try could try editing the file at: "/usr/local/etc/inc/filters.inc" with the two additional lines mentioned above; reboot, and see if multiple consoles is working?

If we can prove the fix works here too, hopefully that's sufficient ground to get a PR merged for it.
Title: Re: UPnP with multiple clients playing the same game at the same time
Post by: Francher on August 08, 2022, 02:25:07 pm
Hello, sclawrenc! I would like this feature to be included in OPNsense as well. Definitely! By the way, are you making patches just for this? Do you have the opportunity and interest to make some new patches for FIFA 22? It's just that relatively recently I bought FIFA 22 (https://www.cdkeysforgames.com/games/steam-games/fifa-22/) using a special service that sells activation keys. So, based on this, I would like to find some high-quality patch with updated translations. Is there any information? I'll be glad to hear it.
Title: Re: UPnP with multiple clients playing the same game at the same time
Post by: Zarrembus on October 04, 2022, 03:35:40 pm
Hello, sclawrenc! I would like this feature to be included in OPNsense as well. Definitely! By the way, are you making patches just for this? Do you have the opportunity and interest to make some new patches for FIFA 22? It's just that relatively recently I fair go no deposit bonus codes (https://fairgocasinovip.com/no-deposit-bonuses) using a special service that sells activation keys. So, based on this, I would like to find some high-quality patch with updated translations. Is there any information? I'll be glad to hear it.
I know this place because I used to hang out there a lot in past years. After all, it's cool. But now, there are several types of bonuses during online gambling: simple no-deposit bonuses and temporary bonuses. The former includes regular bonuses. They can be obtained after registration at the casino. They represent real money, which can later be spent in the casino. Before receiving them, read the site's rules and sign the user agreement. Rules for using the bonus account are clearly written. They must be respected. For example, they need to win back several times to withdraw the money received with bonuses. It is for these reasons I have smoothly switched to online casinos. And the site because there is no such a problem.
Title: Re: UPnP with multiple clients playing the same game at the same time
Post by: VolksDude on October 12, 2022, 12:47:07 am
Any news on this? Did we try the fix?
Title: Re: UPnP with multiple clients playing the same game at the same time
Post by: Serzyfritz on December 10, 2022, 03:44:18 am
Bump?
Title: Re: UPnP with multiple clients playing the same game at the same time
Post by: guest28834 on December 10, 2022, 03:53:54 pm
This is indeed being worked on over at GitHub:

https://github.com/opnsense/plugins/pull/3096 and https://github.com/opnsense/ports/pull/163