UPNPC(1)

πŸ“¦
version 2.3.3 Β· 3 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– UPNPC β€” the miniupnpc library test client, bestie πŸ’–

okay so like. this is upnpc, from the User Commands corner of the manual-verse. she's a test client for the miniupnpc library and she is, genuinely, so much. let's get into it 🫢


✨ NAME ✨

upnpc β€” miniupnpc library test client. that's it, that's her. iconic. πŸ’…


🌸 SYNOPSIS 🌸

okay bestie, there are so many ways to run her. let's go one by one, no skips, no cap.

πŸ’– 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

πŸ¦‹ DESCRIPTION πŸ¦‹

upnpc is a sample program for the miniupnpc library. like, a lil demo bestie that also happens to be useful. both things can be true. ✨


πŸ’… OPTIONS πŸ’…

okay these are the lil extras you can sprinkle on top of whatever mode you picked. main character energy only.

  • -e description β€” sets the description for the port mapping. give your mapping a lil name tag πŸŽ€
  • -6 β€” use ip v6 instead of ip v4. glow up to the sixth version, fr fr 🌈
  • -u url β€” bypass the discovery process entirely by providing the XML root description url. skipping the line, no waiting πŸ’¨
  • -m address/interface β€” provides the ip address (ip v4) or the interface name (ip v4 or v6) to use for sending SSDP multicast packets. tell her where to shout from πŸ“£
  • -z localport β€” the SSDP packets' local (source) port. range is 1024-65535. pick your lane πŸ”’
  • -p path β€” use this path for the MiniSSDPd socket. custom socket address, we love to see it πŸ›€οΈ
  • -t ttl β€” set the multicast TTL. the default value is 2. don't touch it if you don't need to, bestie 😌

πŸ‘€ SEE ALSO πŸ‘€

go check out her friends, they're all slaying too:


⚠️ real talk though: lots of these flags are marked for IGD:2 only β€” the pinhole ones, -L, -n, -N, -S, -G, -K, -U, -C, -D β€” so if your router is on an older IGD vibe, they simply will not hit the same. no cap. πŸ™ˆ

miniupnpc Β· January 2018 β€” that's the source and the date, bestie, and that's the whole page πŸ’œ stay hydrated, read your manpages, and remember: port redirection is self care 🫢✨

πŸ“¦ where this page comes from