View previous topic :: View next topic |
Author |
Message |
billig
Joined: 21 Mar 2023 Posts: 1 Location: In
|
Posted: Tue Mar 21, 2023 5:43 am Post subject: List ports opened by UPnP only without ones by NAT port fwd? |
|
|
My router has UPnP(using miniupnpd) and Port forwarding support.
When I do upnpc -l, I get the ports opened by UPnP as well as those opened by port forwarding. Both are seen in the same list.
Is there any way I can differentiate between the ones opened by miniupnpd and those opened by port forwarding? The port forwarding feature has this range option which opens multiple ports in one port forwarding rule which makes it difficult to remove them from this upnpc -l list?
Also how is upnpc -L <capital L> different from upnpc -l <small l> ?
Is there any way I can get it from the miniupnpd itself? I tried to get it from the leases file but it is disabled in the config file and turning it on causes the miniupnpd service to error out. |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1592
|
Posted: Sat Mar 25, 2023 10:13 pm Post subject: |
|
|
you don't give enough information : It all depends on the way miniupnpd is integrated within your router.
normally, miniupnpd is configured to use its own chains (netfilter) or anchor (pf) and so does not have access to port forwarding configured by other ways on the router.
regarding upnpc, -l uses IGD v1 commands (GetGenericPortMappingEntry) to enumerate port mappings, -L uses the IGD v2 specific GetListOfPortMappings. _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
|