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

常用的国内外延迟测速链接(generate_204)

mihomo各平台客户端下载(windows, android, macos)

随身WiFi折腾指南: 解锁、刷机与DIY

Win10和Win11家庭版开启远程桌面功能RDP

坚持跑步到底有哪些改变?

优化PC端B站(Bilibili)免登录观看体验

十二国记 (2002)

Bing API PHP Library - 简单Bing API的PHP库

eXtplorer - 一个基于PHP和JavaScript的在线文件管理器

ungoogled-chromium浏览器各平台版本下载(windows, android, macos, linux)