1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00

netsh-interface-portproxy: add page (#10485)

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
This commit is contained in:
Aleksandr Kostikov 2023-07-13 15:06:51 -07:00 committed by GitHub
parent fe3154287e
commit c12e5d7884
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,20 @@
# netsh interface portproxy
> Configure and display the status of various network components.
> More information: <https://learn.microsoft.com/en-us/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`