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 

How to use IPv6 with miniupnpc

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Compilation/Installation
View previous topic :: View next topic  
Author Message
codster



Joined: 01 Feb 2017
Posts: 1

PostPosted: Wed Feb 01, 2017 4:23 am    Post subject: How to use IPv6 with miniupnpc Reply with quote

Hello, I'm trying to add IPv6 support to open the firewall for an application. I'm using miniupnpc.

Code:
Usage : upnpc-static.exe [options] -a ip port external_port protocol [duration]
                Add port redirection
Options:
  -6 : use ip v6 instead of ip v4.
  -m address/interface : provide ip address (ip v4) or interface name (ip v4 or v6) to use for sending SSDP multicast packets.


Using the above with an IPv4 rule works just fine. But when I try with a "-6" it errors out, it seems to always get my external IP address as a IPv4 version, and gives " failed with code 402 (Invalid Args)" or " failed with code 718 (ConflictInMappingEntry)". Can this client be used to test IPv6?


IPv4 needs the NAT, so ext&int port can be separte. But since in IPv6 we have a Global IPv6 address on all the clients, we really just want to open a port in the firewall for that 1 global IPv6 address. can UPnP do that?

Ideally I want something where i give an ipv6 address (or interface) and a port to open in the firewall:
Code:
upnpc-static.exe -a (global ipv6 on client) (port) (protocol)



Code:
 upnpc-shared.exe -6 -a "IPv6 Address or interface name neither works" 9998 9998 UDP


Using "-6" or no "-6", and putting a full "IPv6 address" or "Interface name" is not working in either cases.
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1394

PostPosted: Tue Feb 21, 2017 4:51 pm    Post subject: Reply with quote

I think you misunderstand how IPv6 works with IGD.
There is no such thing as AddPortmapping() for IPv6.

So there is new services/new methods with IPv6
see http://upnp.org/specs/gw/UPnP-gw-WANIPv6FirewallControl-v1-Service.pdf

You will "punch holes" in the IPv6 firewall 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: 1394

PostPosted: Tue Feb 21, 2017 4:54 pm    Post subject: Reply with quote

Code:
        upnpc [options] -A remote_ip remote_port internal_ip internal_port protocol lease_time
                Add Pinhole (for IGD:2 only)

_________________
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 -> miniupnpc Compilation/Installation 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.