win2008高级防火墙


位于注册表:
[HKEY_LOCAL_MACHINESYSTEMControlSet001servicesSha免费云主机域名redAccessParametersFirewallPolicyFirewallRules]
rem 恢复防火墙到默认值
netsh advfirewall reset

rem 设置变量offices_***与internal_servers
set offices_***=203.208.46.200/32,119.75.217.56/32,131.253.13.32/32
set internal_servers=192.168.0.0/24

rem 开放端口3389到offices_***
rem netsh advfirewall firewall add rule name=”自定义规则_port3389_from_offices_***” dir=in protocol=tcp localport=3389 remoteip=%offices_***% action=allow

rem 建立对internal_servers之间的相互信任
netsh advfirewall firewall add rule name=”自定义规则_trust_all_internal_servers” dir=in remoteip=%internal_servers% action=allow

rem 开放端口80到所有地址
netsh advfirewall firewall add rule name=”自定义规则_port80_from_anywhere” dir=in protocol=tcp localport=80 action=allow

rem 开放端口60000到所有地址
netsh advfirewall firewall add rule name=”自定义规则_port60000_from_anywhere” dir=in protocol=tcp localport=60000 action=allow

相关推荐: 如何查看linux的8080端口是否被占用

这篇文章主要讲解了“如何查看linux的8080端口是否被占用”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“如何查看linux的8080端口是否被占用”吧! 在linux中,可以利用netstat命令查看808…

免责声明:本站发布的图片视频文字,以转载和分享为主,文章观点不代表本站立场,本站不承担相关法律责任;如果涉及侵权请联系邮箱:360163164@qq.com举报,并提供相关证据,经查实将立刻删除涉嫌侵权内容。

Like (0)
Donate 微信扫一扫 微信扫一扫
Previous 01/29 18:27
Next 01/29 18:27