Windows firewall: allow communication within subnet only

NeghVar

2[H]4U
Joined
May 1, 2003
Messages
2,671
Is there a way to make a rule for windows firewall which will allow a program to communicate within a LAN but not outside the subnet? Basically forbidding internet communication but allowing LAN communication
 
Yes, just create a rule with just the local subnet in scope BUUUUT why do that when you can just remove the gateway (if the ip is set static)
 
Yes, just create a rule with just the local subnet in scope BUUUUT why do that when you can just remove the gateway (if the ip is set static)
upload_2019-12-17_0-29-57.png

Would this setting limit the application to LAN only
 
You can also create new Deny rule for particular program and only mark public network:
upload_2019-12-18_12-10-57.png


Also anytime you want to specify subnet in the rule you can do it by:

upload_2019-12-18_12-13-44.png



if your ip address is 192.168.0.x and subnet mask is 255.255.255.0
 

Attachments

  • upload_2019-12-18_12-8-53.png
    upload_2019-12-18_12-8-53.png
    5.6 KB · Views: 0
Back
Top