MENU

Windows不借助第三方工具端口转发

September 5, 2014 • Security

将本机22到1.1.1.1的22:
netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=22 connectaddress=1.1.1.1 connectport=22
查看转发配置:
netsh interface portproxy show all
删除配置:
netsh interface portproxy delete v4tov4 listenaddress=0.0.0.0 listenport=22
添加防火墙规则,允许连接22:
netsh firewall set portopening protocol=tcp port=22 name=Forward mode=enable scope=all profile=all
Archives QR Code
QR Code for this page
Tipping QR Code