Исходный код вики TCP Proxy (netsh portproxy)
Версия 3.1 от Alexandr Fokin на 2021/07/20 17:14
Последние авторы
| 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 | {{/code}} |