Исходный код вики TCP Proxy (netsh portproxy)
Версия 4.1 от Alexandr Fokin на 2021/11/12 19:24
Последние авторы
| author | version | line-number | content |
|---|---|---|---|
| 1 | |||
| 2 | netsh portproxy | ||
| 3 | |||
| 4 | Настройка проброса сетевых портов (порт форвардинга) в Windows | ||
| 5 | https://winitpro.ru/index.php/2014/12/23/nastrojka-port-forvardinga-v-windows/ | ||
| 6 | |||
| 7 | |||
| 8 | {{code language="cmd"}} | ||
| 9 | |||
| 10 | rem PowerShell | Проверить свободен ли порт | ||
| 11 | Test-NetConnection -ComputerName localhost -Port 3340 | ||
| 12 | |||
| 13 | rem CMD | Создать правило перенаправления | ||
| 14 | netsh interface portproxy add v4tov4 listenport=<source port> listenaddress=<source ip/domain> connectport=<destination port> connectaddress=<destination ip/domain> | ||
| 15 | |||
| 16 | rem CMD | Удалить правило | ||
| 17 | netsh interface portproxy delete v4tov4 listenaddress=<source ip/domain> listenport=<source port> | ||
| 18 | |||
| 19 | {{/code}} |