I can't get UPnP port forwarding to work properly with Windows 10 or Xbox and OpenWrt 19.07.6 on x86.
Torrenting apps and basic UPnP test programs such as UPnP Wizard work fine, as does Demonware (e.g. for Call of Duty on the Xbox), but UPnP is not working for Xbox live in Windows 10 and on the Xbox - the port forwards never appear in the list of leases.
I've only become aware of this recently, so I'm not sure exactly when it broke, but it was definitely working with miniupnpd 2.1 in 18.0.6 before I upgraded to 19.0.7 (miniupnpd 2.2) a couple of months ago.
I've tried looking at the detailed UPnP logs and packet captures, but I don't really know what I'm looking at
Does anyone have any ideas about what might be happening, or how I would debug further?
My upnpd config file looks like this:
config upnpd 'config' option external_iface 'wan' option internal_iface 'lan' option port '5000' option upnp_lease_file '/var/run/miniupnpd.leases' option ext_ip_reserved_ignore '1' option enabled '1' option uuid 'd5a0cc33-1455-4e1e-ab05-1dc0fd725649' option download '1024' option upload '512' option ipv6_disable '1' option serial_number '12345678' option model_number 'Q350G4' option igdv1 '1' option log_output '1' config perm_rule option action 'allow' option ext_ports '1024-65535' option int_addr '0.0.0.0/0' option int_ports '1024-65535' option comment 'Allow high ports' config perm_rule option action 'deny' option ext_ports '0-65535' option int_addr '0.0.0.0/0' option int_ports '0-65535' option comment 'Default deny'
When I run
netsh interface Teredo show state on the Windows machine it reports that UPnP is not available under "NAT Special Behaviour":
Teredo Parameters --------------------------------------------- Type : natawareclient Server Name : win1910.ipv6.microsoft.com. Client Refresh Interval : 20 seconds Client Port : unspecified State : qualified Client Type : teredo client Network : unmanaged NAT : restricted (port) NAT Special Behaviour : UPNP: No, PortPreserving: Yes Local Mapping : 192.168.111.229:60416 External NAT Mapping : [My WAN IP]:60416