Will we ever get upnp to work behind private network IP?
-
@gblenn I changed my outbound NAT to use static ports, now it says "Moderate". Still it doesn't do any port forwarding via UPnP according to pfSense.
Also it says relay connected. Most probably the first time too.
-
@bob-dig Strict is ok as long as you are not playing private matches with friends. And then it can still be ok if they have Open NAT...
Sounds like you are seeing the same thing as me then...
Try adding a port forward of 3074 and see if you can get Open NAT.
Do you have STUN active in UPnP??
-
@gblenn said in Will we ever get upnp to work behind private network IP?:
Try adding a port forward of 3074 and see if you can get Open NAT.
Do you have STUN active in UPnP??
Yes and yes.
-
-
-
-
-
-
-
-
-
-
-
@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?:
Try adding a port forward of 3074 and see if you can get Open NAT.
Do you have STUN active in UPnP??
Yes and yes.
Ok so this is interesting, you now have Open NAT from manually forwarding port 3074.
But you have UPnP enabled, with STUN. What settings do you have in UPnP?
Any ACL's?? And what server are you using for STUN? -
@gblenn I already had posted my settings here.
-
@bob-dig Ah, yes sorry about that!
It's the exact same settings I have...And 192.168.1.10 is the gaming PC I assume?
What other settings can possibly play a role in this??
-
@gblenn I don't know. Now it gives me strict again, although the port forward is still active... Maybe I will try plugging in my machine to the first router and see what happens but not today.
@gblenn said in Will we ever get upnp to work behind private network IP?:
And 192.168.1.10 is the gaming PC I assume?
Sure.
-
@bob-dig Ah, yes this is frustrating.
I do believe that killing states and doing release reload on the PC is key to consistent results. But sometimes it seems it's the order you do things that matter...
-
@gblenn I reenabled static port Outbound NAT and now it is "working" again...Good for me that this game doesn't need it.
-
@bob-dig Seems it's you manual port forward that's actually doing the trick, not UPnP.
I found the miniupnpd.config file and I can see that it is picking up any changes I make, including entering the actual external IP. But no connection at all for any of the games when I have that (or STUN) active...
-
@bob-dig said in Will we ever get upnp to work behind private network IP?:
... Maybe I will try plugging in my machine to the first router and see what happens but not today.
Today I plugged in my main machine directly into the first router, which is a good router for a consumer device, and NAT type was "Moderate" for COD DMZ.
It was not using UPnP although it was allowed to do so.
I then started my torrent client and it was again able to use UPnP and the router shows it.
So my conclusion is this, it is the fault of that game, it is not using UPnP.
Also that screenshot of that torrent program shows some errors, it showed less errors with pfSense.
The reason for being "Moderate" instead of "Strict" most probably comes from the port randomization pfSense does and you can disable this in the Outbound-NAT options, so I see no real advantage of my first router against pfSense. -
@bob-dig Well, there is no question about games "using" UPnP, they definitely are, all of them! That part has bee thoroughly hammered out in e.g. this and other threads: https://forum.netgate.com/topic/169837/upnp-fix-for-multiple-clients-consoles-playing-the-same-game/109
And the patch that was developed and subsequently added to the later releases (22.05 and on), solve most to all issues, except Private IP.UPnP does report all used ports in Status > UPnP... where e.g. 3074 gets listed the instant you start a game. Of course when behind private IP nothing happens there since UPnP just refuses to work and points out that private IP is not suited for external IP. Unless you activate STUN or Override WAN address which makes UPnP engage, and list the ports when a game starts, but no luck connecting...
Another example is MW2 which asks for 29060 and 29061 and they also show up in that list. But with that game I have only been able to get Open NAT when using UPnP.
Testing using multiple computers trying to run the same game, the next one uses a higher port number like 3075 for example. Also showing up in UPnP listings.
In my production environment, where I do have a public IP on WAN (but not on my failover WAN), all this works perfectly fine using only UPnP and outbound NAT set to Automatic. I have no ports forwarded for any games at all, and I get Open NAT every single time.
I have no idea why you don't see that with your router? All I can say is make sure to kill states and release IP on PC, only then start the game.
I have tested with several other routers behind the current upstream router, like Edgerouter X and DDWRT-based routers. Everything works perfectly fine with them, (as many others state in the threads I linked to) regardless of upstream IP being private or not. They also show the same listing of ports under UPnP status. So no question that games "use" UPnP. How could they even choose not to? I mean, they need the ports, they try to use them, and if UPnP is available it will provide the port unless it's already taken...
What happens if you change your IP on the upstream router to a random public IP? Then try changing Outbound NAT to Automatic, closing the port forwards you added (3074) and disabling STUN in UPnP...
BTW, what version pfsense are you running? -
@gblenn said in Will we ever get upnp to work behind private network IP?:
BTW, what version pfsense are you running?
I am on 23.01-RELEASE. And I am out for now, having the luck that DMZ doesn't care. But I'll be back sometime.
-
Hi, I had upnp working behind a private ip using CE 2.6.0. All I had to do was to add an outbound NAT mapping with static port. Now it's not working in 23.01.