View previous topic :: View next topic |
Author |
Message |
codster
Joined: 01 Feb 2017 Posts: 1
|
Posted: Wed Feb 01, 2017 4:23 am Post subject: How to use IPv6 with miniupnpc |
|
|
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 |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1594
|
|
Back to top |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1594
|
Posted: Tue Feb 21, 2017 4:54 pm Post subject: |
|
|
Code: | upnpc [options] -A remote_ip remote_port internal_ip internal_port protocol lease_time
Add Pinhole (for IGD:2 only)
|
_________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
 |
|