博客
关于我
3、使用Windows命令来实现端口转发
阅读量:195 次
发布时间:2019-02-28

本文共 1701 字,大约阅读时间需要 5 分钟。

0x00 ??

?Windows?????XP???????????????????????????????????TCP???IPv4?IPv6????????????????????????????????????????????????Windows??????????????????

?Linux??iptables?????Windows?????????????????????????????????Windows???


0x01 ????

???Windows?????????????Portproxy????Netsh??????????????????

netsh interface portproxy add v4tov4 listenaddress=localaddress listenport=localport connectaddress=destaddress connectport=destport

?????

  • listenaddress????????IP???
  • listenport???????TCP???
  • connectaddress??????????????IP???
  • connectport??????????
  • ?????????RDP??????3389??????3340????????????

    netsh interface portproxy add v4tov4 listenport=3340 listenaddress=10.1.1.110 connectport=3389 connectaddress=10.1.1.110

    0x02 ????

  • ???????????netstat????3340?????????
  • netstat -ano | findstr :3340
    1. ????????????????????3340???????????????????
    2. netsh advfirewall firewall add rule name="forwarded_RDPport_3340" protocol=TCP dir=in localip=10.1.1.110 localport=3340 action=allow
      1. ?????????netsh interface portproxy show all??????????????

      2. 0x03 ????

        ??TCP???????

        ????????3389??????????192.168.100.101??????????

        netsh interface portproxy add v4tov4 listenport=3389 listenaddress=0.0.0.0 connectport=3389 connectaddress=192.168.100.101

        ??????????????

        ??????????80???????????HTTP????????????

        netsh interface portproxy add v4tov4 listenport=80 connectport=80 connectaddress=157.166.226.25 protocol=tcp

        0x04 ????

      3. IP Helper?????iphlpsvc?????????????????????
      4. ????????????????????????????????
      5. ??IP?????????????????????IP?????IP??????????
      6. ????????????????????????????

      7. 0x05 ??

        ?Windows Server 2012 R2??????????????????????????????????IP???????????????????????


        0x06 ?????

        ????????Windows 2003/XP????Tcpip???IPEnableRouter???????1????????????

    转载地址:http://pmrc.baihongyu.com/

    你可能感兴趣的文章
    Python3+Requests+Unittest实战系列【二】
    查看>>
    python3----ASCII
    查看>>
    Python3-selenium自动化测试框架,结合HTMLTestRunner测试报告!
    查看>>
    Python3-如何自我更新作为服务运行的应用程序
    查看>>
    Python3.1-网格模拟概念性问题
    查看>>
    Python3.12 解决conda环境libstdc++版本过低问题
    查看>>
    python3.2批量查询IP地址区域
    查看>>
    Python3.5中协程和未来/任务之间的区别?
    查看>>
    python3.5实现socket通讯(TCP)
    查看>>
    python3.6 ubuntu部署nginx、 uwsgi、 django
    查看>>
    Python3.6.3中,functools似乎不能用
    查看>>
    python3.6.5+cuda9+cudnn7.1+win10+tensorflow-gpu1.9.0下载配置
    查看>>
    python3.6使用pickle序列化class
    查看>>
    python3.6入门到高阶(全栈) day027 网络通信协议 osi七层模型
    查看>>
    Python3.6属性错误:模块‘;异步没有属性‘;运行‘;
    查看>>
    python3.6版本中的python-weka-wrapper安装失败,错误代码为%1
    查看>>
    Python3.7安装cv2踩过的坑
    查看>>
    python写txt文件
    查看>>
    python关于sorted排序函数详细解析 附实战代码(全)
    查看>>
    python3.8调用m文件,调用matlab
    查看>>