upnpc1
Miniupnpc library test client.
Usage
Add port
redirection:
upnpc [options]
-a
ip
port
external_port
protocol
[duration]
Delete port
redirection:
upnpc [options]
-d
external_port
protocol
<remote
host>
Get Connection
status:
upnpc [options]
-s
List redirections:
upnpc [options]
-l
List redirections
(using
GetListOfPortMappings
(for
IGD:2
only):
upnpc [options]
-L
Add (any)
port
redirection
allowing
IGD
to
use
alternative
external_port
(for
IGD:2
only):
upnpc [options]
-n
ip
port
external_port
protocol
[duration]
Delete range
of
port
redirections
(for
IGD:2
only):
upnpc [options]
-N
external_port_start
external_port_end
protocol
[manage]
Add all
redirections
to
the
current
host:
upnpc [options]
-r
port1
[external_port1]
protocol1
[port2
[external_port2]
protocol2]
[]
Add Pinhole
(for
IGD:2
only):
upnpc [options]
-A
remote_ip
remote_port
internal_ip
internal_port
protocol
lease_time
Update Pinhole
(for
IGD:2
only):
upnpc [options]
-U
uniqueID
new_lease_time
Check if
Pinhole
is
Working
(for
IGD:2
only):
upnpc [options]
-C
uniqueID
Get Number
of
packets
going
through
the
rule
(for
IGD:2
only):
upnpc [options]
-K
uniqueID
Delete Pinhole
(for
IGD:2
only):
upnpc [options]
-D
uniqueID
Get Firewall
status
(for
IGD:2
only):
upnpc [options]
-S
Get Outbound
Pinhole
Timeout
(for
IGD:2
only):
upnpc [options]
-G
remote_ip
remote_port
internal_ip
internal_port
protocol
Get Presentation
url
upnpc [options]
-P
Overview
upnpc is a sample program for miniupnpc library.
Options
-edescription-
set description for port mapping.
-
-6 -
use ip v6 instead of ip v4.
-uurl-
bypass discovery process by providing the XML root description url.
-maddress/interface-
provide ip address (ip v4) or interface name (ip v4 or v6) to use for sending SSDP multicast packets.
-zlocalport-
SSDP packets local (source) port (1024-65535).
-ppath-
use this path for MiniSSDPd socket.
-tttl-
set multicast TTL. Default value is 2.
Releases
7 releases since Debian 7 (Wheezy); the text changed 2 times.
-6 since Debian 10 (Buster).