博客
关于我
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/

    你可能感兴趣的文章
    python实现非参数统计的Cochran检验 (附完整源码)
    查看>>
    Python 手写数字识别-3-sklearn中的几种算法
    查看>>
    Python 打开文件注意事项
    查看>>
    python 批量修改文件名_python windows下批量修改文件名
    查看>>
    Python 抓取网页乱码问题 以及EXCEL乱码
    查看>>
    python 抓取网页内容
    查看>>
    python 按照当前日期创建文件
    查看>>
    Python 接口并发测试详解
    查看>>
    Python 接口自动化 —— requests框架
    查看>>
    python 接口自动化数据结构(如列表、字典、元组)
    查看>>
    Python 接口自动化测试中的深拷贝与浅拷贝~
    查看>>
    Python 接口自动化测试中的高阶函数
    查看>>
    python 控制 cmd 命令行颜色
    查看>>
    Python 操作 Azure Blob Storage
    查看>>
    Python 操作 Excel 全攻略 | 包括读取、写入、表格操作、图像输出和字体设置
    查看>>
    Python 操作 JMeter 探索:pymeter 实操指南
    查看>>
    Python 操作 Redis
    查看>>
    Python 操作Mysql(PyMysql)
    查看>>
    Python 操作Redis
    查看>>
    Python 操作sqlite数据库及保存查询numpy类型数据(一)
    查看>>