UPnP ports stay open

Post new topic   Reply to topic    DD-WRT Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.)
Author Message
Nightbridge
DD-WRT User


Joined: 09 Jan 2017
Posts: 76
Location: Dublin

PostPosted: Wed Dec 15, 2021 16:47    Post subject: UPnP ports stay open Reply with quote
Hi everybody, I hope this is the right section for this topic.
I own a wrt1900acs v2 with build 44715. I have several gaming console at home and for this reason I am taking advantage of the UPnP features. It works fine, but I have noticed that some ports are not closed once the console is off, others instead are.
For example, I have two Xbox and when I boot them, the "base" port entry shows up in the UPnP list, to then disappear as soon as the console is off. This doesn't happen for COD DemonwarePortMapping port, which stay open and every time I boot the game, the UPnP service open a new 3075 port with a random wan port.
The Demonware port is not the only one to staying open, even the Playstation 4 9308 UDP stay open.
I thought that UPnP was keeping ports open only when in use, is this a bug or it is the intended behaviour for some kind of ports?

Thanks to whoever will reply.
Sponsor
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5700

PostPosted: Wed Dec 15, 2021 17:39    Post subject: Reply with quote
New Build - 12/09/2021 - r47822 --> wrt1900acsv2 or wait for the next build.
Nightbridge
DD-WRT User


Joined: 09 Jan 2017
Posts: 76
Location: Dublin

PostPosted: Wed Dec 15, 2021 17:51    Post subject: Reply with quote
Thanks for your reply, so this is a known issue addressed from r47822 on?
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14221
Location: Texas, USA

PostPosted: Wed Dec 15, 2021 18:05    Post subject: Reply with quote
See this screenshot. Is it the same as the UI on 44715? The answer is pretty obvious. The fact remains that uPnP is a huge security hole and risk.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Nightbridge
DD-WRT User


Joined: 09 Jan 2017
Posts: 76
Location: Dublin

PostPosted: Wed Dec 15, 2021 18:12    Post subject: Reply with quote
kernel-panic69 wrote:
See this screenshot. Is it the same as the UI on 44715? The answer is pretty obvious. The fact remains that uPnP is a huge security hole and risk.


Sorry, but this doesn't help here. UPnP is the only solution to get network translation working fine for several devices. I am not running a bank here, not concerned about top level security.
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5700

PostPosted: Wed Dec 15, 2021 18:22    Post subject: Reply with quote
Just not worth troubleshooting an old build, so either flash newest or wait for fresh out of the oven.

If problems, hardware reset button 10 seconds or nvram erase && reboot from Telnet/SSH as root.
Nightbridge
DD-WRT User


Joined: 09 Jan 2017
Posts: 76
Location: Dublin

PostPosted: Wed Dec 15, 2021 18:26    Post subject: Reply with quote
blkt wrote:
Just not worth troubleshooting an old build, so either flash newest or wait for fresh out of the oven.

If problems, hardware reset button 10 seconds or nvram erase && reboot from Telnet/SSH as root.


Hi, I was running 43516 until yesterday, I have upgraded to latest suggested for my router hoping to get rid of this issue.

30-30-30 reset done.

I'll try with latest build too. Thanks.
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5700

PostPosted: Wed Dec 15, 2021 18:31    Post subject: Reply with quote
Nightbridge wrote:
30-30-30 reset done.
Argh. No, that is only for ancient MIPS like WRT54GL. Your router model is ARM based so never do 30-30-30.

https://wikidevi.wi-cat.ru/Linksys_WRT1900ACS

https://www.linksys.com/us/support-article?articleNum=178015#T1
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14221
Location: Texas, USA

PostPosted: Wed Dec 15, 2021 18:39    Post subject: Reply with quote
So, deleting all port forwards button doesn't work, is that what you're saying? Clearing all port forwards on startup, either? Might help to be a little more precise in your answers...
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Nightbridge
DD-WRT User


Joined: 09 Jan 2017
Posts: 76
Location: Dublin

PostPosted: Wed Dec 15, 2021 18:42    Post subject: Reply with quote
blkt wrote:
Nightbridge wrote:
30-30-30 reset done.
Argh. No, that is only for ancient MIPS like WRT54GL. Your router model is ARM based so never do 30-30-30.

https://wikidevi.wi-cat.ru/Linksys_WRT1900ACS

https://www.linksys.com/us/support-article?articleNum=178015#T1


Damn, yeah was doing that with my first Linksys WRT54G indeed. Thanks a lot for correcting me.
Nightbridge
DD-WRT User


Joined: 09 Jan 2017
Posts: 76
Location: Dublin

PostPosted: Wed Dec 15, 2021 18:44    Post subject: Reply with quote
kernel-panic69 wrote:
So, deleting all port forwards button doesn't work, is that what you're saying? Clearing all port forwards on startup, either? Might help to be a little more precise in your answers...


That button works, but would be a manual process to do every time I switch device. And clearing on startup I guess it refers to router startup, so every reboot?

Would be good to see those ports disappear as the device gets disconnected, as it happens for some of them.
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14221
Location: Texas, USA

PostPosted: Wed Dec 15, 2021 18:56    Post subject: Reply with quote
I guess someone needs to write a patch to automatically do this... I don't recall if this is the same situation in most all stock firmware implementations of uPnP or not.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Nightbridge
DD-WRT User


Joined: 09 Jan 2017
Posts: 76
Location: Dublin

PostPosted: Wed Dec 15, 2021 23:37    Post subject: Reply with quote
For what I read, apparently other stock firmwares have some kind of lease time likeDHCP. But I have noticed something strange here: As I said I have more than one Xbox and the problem is with Demonware service. So, when I cleared up the ports the first Xbox I booted up with COD, asked UPnP to open port 3075, for LAN and WAN. NAT was open, everything OK here.
When I started the second Xbox, the 3075 was still reserved in the UPnP entries by the first Xbox (even though it was switched off hours earlier), then UPnP open a 3075 LAN port with a random WAN port (see pics above). This made for the same game getting moderate NAT.
So far nothing really new, but the interesting thing is that, when I start COD on the first Xbox, the old entry in the list (3075->3075) gets replaced and put at the bottom of the list as newest entry, but still with 3075->3075, resulting in Open NAT again.
This, as you can see from the pics, doesn't happen when the forward is towards a WAN port which differs from the 3075, UPnP in this case add a new port forwarding, with another WAN port, polluting with stuck entries the UPnP list.
If this is not intended, then a new patch should make the UPnP overwrite the port forward based on device IP and LAN port. As for now I think it replaces entries if and only if they are exactly the same (WAN port && LAN port).
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.) All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum