windows advanced firewall simple config
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了windows advanced firewall simple config相关的知识,希望对你有一定的参考价值。
To ALLOW ONLY Specific Network To Access:There is a underlying policy‘s under the policies: deny all
what we need to do is create the explicit allow policies
what we need to do:
- under the inbound scope:
- disable all of other allow rules or connections will still make it through from them
-
run the command below
netsh advfirewall firewall add rule name="Allow from Internal Access" dir=in action=allow protocol=ANY remoteip=172.16.11.0/24
172.16.15.0/24
172.16.10.0/24
172.16.30.0/24
Or powershell:New-NetFirewallRule -Name Allow192.0.2.55 -DisplayName ‘Allow from 192.0.2.55‘ -Enabled True -Direction Inbound -Protocol ANY -Action Allow -Profile ANY -RemoteAddress 172.16.15.0/24
- Restart the Firewall service after creating the rules
以上是关于windows advanced firewall simple config的主要内容,如果未能解决你的问题,请参考以下文章
Firewall Rule Properties Page: Advanced Tab
windows defender和windows firewall
powershell 在Windows Server上打开FireWall端口