miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

List ports opened by UPnP only without ones by NAT port fwd?

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Feature Request
View previous topic :: View next topic  
Author Message
billig



Joined: 21 Mar 2023
Posts: 1
Location: In

PostPosted: Tue Mar 21, 2023 5:43 am    Post subject: List ports opened by UPnP only without ones by NAT port fwd? Reply with quote

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
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1591

PostPosted: Sat Mar 25, 2023 10:13 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Feature Request All times are GMT
Page 1 of 1

 
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


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.