View previous topic :: View next topic |
Author |
Message |
fdupont
Joined: 09 Nov 2010 Posts: 3 Location: Rennes, France
|
Posted: Tue Nov 09, 2010 3:04 am Post subject: UPnP IGD 2.0 |
|
|
UPnP IGD 2.0 was adopted in September 2010.
I'd like to know the plan for its support. |
|
Back to top |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1585
|
Posted: Mon Nov 15, 2010 9:24 am Post subject: Re: UPnP IGD 2.0 |
|
|
fdupont wrote: | UPnP IGD 2.0 was adopted in September 2010.
I'd like to know the plan for its support. |
Well, no plan for it now.
I should begin by reading the new spec  _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1585
|
|
Back to top |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1585
|
Posted: Sun Jan 02, 2011 11:31 pm Post subject: |
|
|
I started the implementation work in MiniUPnPd 1.5.
Not working for now.
Do someone now some software implementing IGD v2, either Client or IGD ? _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
 |
shaidar
Joined: 05 Feb 2011 Posts: 5
|
Posted: Sun Feb 06, 2011 9:11 am Post subject: |
|
|
UPnP IGD v2 was updated on December 2010 with a new service (IPv6FirewallControl). |
|
Back to top |
|
 |
shaidar
Joined: 05 Feb 2011 Posts: 5
|
|
Back to top |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1585
|
Posted: Tue Feb 15, 2011 11:27 am Post subject: |
|
|
I've implemented GetListOfPortMappings() in miniupnpc :
miniupnpc-1.5.20110215.tar.gz
with the upnpc upnpc-static executable, use the -L option to test :
Code: | $ ./upnpc-static -L
upnpc : miniupnpc library test client. (c) 2006-2011 Thomas Bernard
Go to http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
for more information.
Found valid IGD : http://192.168.0.1:11604/ctl/IPConn
Local LAN ip address : 192.168.0.80
0 TCP 22407->:22407 'Azureus UPnP 22407 TCP' ''
1 TCP 8000->:8000 'libminiupnpc' ''
2 UDP 22407->:22407 'Azureus UPnP 22407 UDP' ''
|
In miniupnpd :
miniupnpd-1.5.20110214.tar.gz
I've implemented :
AddAnyPortMapping()
DeletePortMappingRange()
GetListOfPortMappings()
SetConnectionType()
RequestConnection()
ForceTermination()
I still need to change the xml descriptions and update the SSDP stuff... _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
 |
zmorris
Joined: 05 Aug 2011 Posts: 4
|
Posted: Fri Aug 05, 2011 1:48 pm Post subject: RemotePort in UPNP_GetListOfPortMappings()? |
|
|
miniupnp wrote: | I've implemented GetListOfPortMappings() in miniupnpc : |
Hi I was studying UPNP_GetListOfPortMappings() and noticed that there is no remotePort in struct PortMapping. From what I understand, we should be able to specify ExternalHost, ExternalPort, RemoteHost and RemotePort when we add a pinhole, so that we can filter which remote hosts can connect to us from which ports.
Unfortunately I don't have an IGD V2 device to test with. Does anyone know if RemotePort is supported by devices or if it tends to be ignored?
Also do you know where I can find a device that supports pinholes on something like eBay?
P.S. Here is the spec I'm talking about:
http://upnp.org/specs/gw/UPnP-gw-WANIPv6FirewallControl-v1-Service.pdf
P.P.S. I also just noticed that UPNP_GetListOfPortMappings() doesn't return a uniqueID for each entry. Is it possible to get a list of the uniqueID's or are they considered private to each user, kind of like a refNum of some kind?
Thanx! |
|
Back to top |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1585
|
Posted: Sun Aug 07, 2011 4:53 pm Post subject: |
|
|
GetListOfPortMappings() has nothing to do with WANIPv6FirewallControl, it is just a new method to enumerate IPv4 Port Mappings ! _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
 |
zmorris
Joined: 05 Aug 2011 Posts: 4
|
Posted: Sun Aug 07, 2011 5:41 pm Post subject: |
|
|
miniupnp wrote: | GetListOfPortMappings() has nothing to do with WANIPv6FirewallControl, it is just a new method to enumerate IPv4 Port Mappings ! |
Ya blah, I realized that after digging deeper. There seems to be no way to query the list of pinholes, probably due to security concerns. Also, they don't have any notion of external port. So when you set up a mapping from a local host/port to a remote host/port, they are then able to communicate through the router regardless of the gateway's port.
I just bring it up because I'm trying to write a kind of unified port mapping code and want to prioritize metaphors that are common to UPnP v1 and v2, and also NAT-PMP. It's not terribly difficult, but I wasn't seeing how the pinhole stuff fit in. Another thing I will add is the possibility of retry with IGD:2's AddAnyPortMapping() if a port is in use. I'm not sure if any of the IGD:2 stuff is in miniupnp yet since the spec is so new, but it would be cool to have down the road. For anyone curious, this is what I'm referring to:
http://www.upnp.org/specs/gw/UPnP-gw-WANIPConnection-v2-Service.pdf
Thanx for your reply, and great work on miniupnp by the way! |
|
Back to top |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1585
|
Posted: Mon Aug 08, 2011 9:18 pm Post subject: |
|
|
MiniUPnPd does includes some IGD v2 support, but for compatibilty reasons they are not compiled by default. _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
 |
yakovmotog
Joined: 18 Jul 2016 Posts: 13
|
Posted: Thu Aug 04, 2016 1:46 am Post subject: UPnP IGD 2.0 for Control Point |
|
|
miniupnp wrote: | MiniUPnPd does includes some IGD v2 support, but for compatibilty reasons they are not compiled by default. |
I see disabled search for IDG2
"urn:schemas-upnp-org:device:InternetGatewayDevice:2",
"urn:schemas-upnp-org:service:WANIPConnection:2",
Will it be sufficient to uncomment to use IDG2 device discovery, getting extrnal IP and AddAnyportMapping?
Thanks |
|
Back to top |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1585
|
Posted: Fri Aug 05, 2016 10:12 pm Post subject: Re: UPnP IGD 2.0 for Control Point |
|
|
yakovmotog wrote: | miniupnp wrote: | MiniUPnPd does includes some IGD v2 support, but for compatibilty reasons they are not compiled by default. |
I see disabled search for IDG2
"urn:schemas-upnp-org:device:InternetGatewayDevice:2",
"urn:schemas-upnp-org:service:WANIPConnection:2",
Will it be sufficient to uncomment to use IDG2 device discovery, getting extrnal IP and AddAnyportMapping?
Thanks |
is that miniupnpc you're writing about ?
miniupnpd needs to be configured with
Code: | ./genconfig.sh --igd2 |
before compilation to enable IGDv2 support. _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
 |
|