mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-18 15:50:02 +00:00
Update cheatsheets
This commit is contained in:
25
tldr/linux/upnpc
Normal file
25
tldr/linux/upnpc
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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`
|
||||
Reference in New Issue
Block a user