美文网首页
windows使用netsh做端口代理,端口转发

windows使用netsh做端口代理,端口转发

作者: 王义杰 | 来源:发表于2020-02-20 22:32 被阅读0次

    example

    netsh interface portproxy add v4tov4 listenaddress=172.20.0.2 listenport=1521 connectaddress=172.16.100.74 connectport=1521
    netsh interface portproxy add v4tov4 listenaddress=172.20.0.2 listenport=1433 connectaddress=172.16.100.73 connectport=1433
    

    删除

    netsh interface portproxy delete v4tov4 listenport=3340 listenaddress=10.1.1.110
    netsh.exe interface portproxy delete v4tov4 listenport=1521 listenaddress=172.20.0.2

    清除所有当前的端口转发规则:

    netsh interface portproxy reset

    相关文章

      网友评论

          本文标题:windows使用netsh做端口代理,端口转发

          本文链接:https://www.haomeiwen.com/subject/rwofqhtx.html