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 

UPnP IGD 2.0

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



Joined: 09 Nov 2010
Posts: 3
Location: Rennes, France

PostPosted: Tue Nov 09, 2010 3:04 am    Post subject: UPnP IGD 2.0 Reply with quote

UPnP IGD 2.0 was adopted in September 2010.
I'd like to know the plan for its support.
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1388

PostPosted: Mon Nov 15, 2010 9:24 am    Post subject: Re: UPnP IGD 2.0 Reply with quote

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 Smile
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1388

PostPosted: Mon Nov 22, 2010 11:19 am    Post subject: Reply with quote

http://upnp.org/specs/gw/igd2/

http://upnp.org/specs/gw/UPnP-gw-InternetGatewayDevice-v2-Device.pdf

http://upnp.org/specs/gw/UPnP-gw-WANConnectionDevice-v2-Device.pdf

http://upnp.org/specs/gw/UPnP-gw-WANDevice-v2-Device.pdf

http://upnp.org/specs/gw/UPnP-gw-WANIPConnection-v2-Service.pdf

http://upnp.org/specs/gw/UPnP-gw-IGD-Testfiles-20091029.zip

http://upnp.org/schemas/gw/UPnP-gw-SchemaFiles-20091103.zip
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1388

PostPosted: Sun Jan 02, 2011 11:31 pm    Post subject: Reply with quote

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.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
shaidar



Joined: 05 Feb 2011
Posts: 5

PostPosted: Sun Feb 06, 2011 9:11 am    Post subject: Reply with quote

UPnP IGD v2 was updated on December 2010 with a new service (IPv6FirewallControl).
Back to top
View user's profile Send private message
shaidar



Joined: 05 Feb 2011
Posts: 5

PostPosted: Sun Feb 06, 2011 9:12 am    Post subject: Reply with quote

http://upnp.org/specs/gw/UPnP-gw-WANIPv6FirewallControl-v1-Service.pdf

There is an implementation of IGD v2 (device part only) here: http://gitorious.org/igd2-for-linux.
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1388

PostPosted: Tue Feb 15, 2011 11:27 am    Post subject: Reply with quote

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.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
zmorris



Joined: 05 Aug 2011
Posts: 4

PostPosted: Fri Aug 05, 2011 1:48 pm    Post subject: RemotePort in UPNP_GetListOfPortMappings()? Reply with quote

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


Joined: 14 Apr 2007
Posts: 1388

PostPosted: Sun Aug 07, 2011 4:53 pm    Post subject: Reply with quote

GetListOfPortMappings() has nothing to do with WANIPv6FirewallControl, it is just a new method to enumerate IPv4 Port Mappings !
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
zmorris



Joined: 05 Aug 2011
Posts: 4

PostPosted: Sun Aug 07, 2011 5:41 pm    Post subject: Reply with quote

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


Joined: 14 Apr 2007
Posts: 1388

PostPosted: Mon Aug 08, 2011 9:18 pm    Post subject: Reply with quote

MiniUPnPd does includes some IGD v2 support, but for compatibilty reasons they are not compiled by default.
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
yakovmotog



Joined: 18 Jul 2016
Posts: 13

PostPosted: Thu Aug 04, 2016 1:46 am    Post subject: UPnP IGD 2.0 for Control Point Reply with quote

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


Joined: 14 Apr 2007
Posts: 1388

PostPosted: Fri Aug 05, 2016 10:12 pm    Post subject: Re: UPnP IGD 2.0 for Control Point Reply with quote

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.
http://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.