标签:netsh 端口映射
1、首先安装IPV6(xp下IPV6必须安装,否则端口转发不可用!)
netsh interface ipv6 install
2、添加一个IPV4到IPV4的端口映射
例:netsh interface portproxy add v4tov4 listenport=16688 listenaddress=192.168.2.112 connectport=16688 connectaddress=xxxxxxxxxxx
3、指定监听ip和端口可以删除
netsh interface portproxy delete v4tov4 listenport=16688 listenaddress=192.168.2.112
4、可以查看存在的转发
netsh interface portproxy show all
Tis:防火墙
netsh firewall set portopening TCP 16688 ENABLE
netsh firewall delete portopening protocol=TCP port=16688
本文出自 “广州linux运维” 博客,请务必保留此出处http://milenovo.blog.51cto.com/10554394/1718413
标签:netsh 端口映射
原文地址:http://milenovo.blog.51cto.com/10554394/1718413