Windows网络服务

in 路由交换 with 0 comment

查看监听端口
netstat -aon|findstr "9050"

windows下端口转发,可以实现内网端口转发,自动的完成NAT

netsh interface ipv6 install //如果已经安装IPV6,则可以不执行

如果windows开启了防火墙,需要设置放行TCP 13800的入站规则。

netsh interface portproxy add v4tov4 listenaddress=192.168.1.192 listenport=13800 connectaddress=192.168.56.137 connectport=22

netsh interface portproxy add v4tov4 listenport=13800 connectaddress=192.168.56.137 connectport=22

如果要取消上面配置的端口转发,可以键入下面命令:

netsh interface portproxy delete v4tov4 listenaddress=192.168.1.192 listenport=13800

如果想查看已经配置了哪些端口转发,可以键入下面命令:

netsh interface portproxy show v4tov4 // all

Responses