Windows下端口转发访问内网服务

查询

netsh interface portproxy show all

netsh interface portproxy show v4tov4 | find "[IP]"

新增

netsh interface portproxy add v4tov4 listenaddress=[外网IP] listenport=[外网端口] connectaddress=[内网IP] connectport=[内网端口]

新增或修改(本机)

netsh interface portproxy set v4tov4 listenport=[外网端口] connectaddress=[内网IP] connectport=[内网端口]

删除(本机)

netsh interface portproxy delete v4tov4 listenport=[外网端口]

xp或2003系统需先安装ipv6

netsh interface ipv6 install

开放防火墙端口

netsh advfirewall firewall add rule name="[规则名]" protocol=TCP dir=in localip=[外网IP]  localport=[外网端口] action=allow

评论

Popular Posts

《小狗钱钱》[德] 博多·舍费尔

高硼硅玻璃水杯

《怦然心动的人生整理魔法》近藤麻理惠

新概念英语PDF扫描版

CuteHttpFileServer/chfs 文件服务器,支持http,webdav,多平台

5个免费的在线笔记本服务

New Balance 各型号特点

长方形带把手Tritan随手杯