mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-27 01:53:16 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
25
tldr/windows/netsh-interface-portproxy
Normal file
25
tldr/windows/netsh-interface-portproxy
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, windows]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# netsh interface portproxy
|
||||
|
||||
> Configure and display the status of various network components.
|
||||
> More information: <https://learn.microsoft.com/windows-server/networking/technologies/netsh/netsh-interface-portproxy>.
|
||||
|
||||
- Display the current port forwarding setup:
|
||||
|
||||
`netsh interface portproxy show all`
|
||||
|
||||
- Set up IPv4 port forwarding (run in elevated console):
|
||||
|
||||
`netsh interface portproxy add v4tov4 listenaddress={{192.168.0.1}} listenport={{8080}} connectaddress={{10.0.0.1}} connectport={{80}}`
|
||||
|
||||
- Remove IPv4 port forwarding (run in elevated console):
|
||||
|
||||
`netsh interface portproxy delete v4tov4 listenaddress={{192.168.0.1}} listenport={{8080}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`netsh interface portproxy`
|
||||
Reference in New Issue
Block a user