1
22.1 Legacy Series / Re: UPnP with multiple clients playing the same game at the same time
« 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.
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.