mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
upnpc: add page (#14125)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> Co-authored-by: Wiktor Perskawiec <git@spageektti.cc> Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
This commit is contained in:
parent
7e04e9c344
commit
b3f174268e
1 changed files with 20 additions and 0 deletions
20
pages/linux/upnpc.md
Normal file
20
pages/linux/upnpc.md
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# upnpc
|
||||||
|
|
||||||
|
> Configure port forwarding rules on your router via the UPnP protocol.
|
||||||
|
> More information: <https://manned.org/upnpc>.
|
||||||
|
|
||||||
|
- Forward the external TCP port 80 to port 8080 on a local machine:
|
||||||
|
|
||||||
|
`upnpc -a {{192.168.0.1}} 8080 80 tcp`
|
||||||
|
|
||||||
|
- Delete any port redirection for external TCP port 80:
|
||||||
|
|
||||||
|
`upnpc -d 80 tcp`
|
||||||
|
|
||||||
|
- Get information about UPnP devices on your network:
|
||||||
|
|
||||||
|
`upnpc -s`
|
||||||
|
|
||||||
|
- List existing redirections:
|
||||||
|
|
||||||
|
`upnpc -l`
|
Loading…
Add table
Reference in a new issue