How do I create Firewall rule that allows LAN and blocks internet?

Page 1 of 2 12 LastLast

  1. Posts : 132
    Win 10x64 Pro
       #1

    How do I create Firewall rule that allows LAN and blocks internet?


    I want to create a firewall rule that allows a game executable to have lan access so I can play a lan game with my kid over my home network while blocking internet access.

    I am using windows firewall on windows 10 1803.
      My Computers


  2. Posts : 750
    Windows 10 Pro 64-bits
       #2

    I am not certain how familiar are you with firewall rules, but Windows Firewall Control makes it easy:

    Windows Firewall Control

    Maybe that will help you...
      My Computer


  3. Posts : 194
    Windows 10 Pro
       #3
      My Computer


  4. Posts : 132
    Win 10x64 Pro
    Thread Starter
       #4

    Cr00zng said:
    I am not certain how familiar are you with firewall rules, but Windows Firewall Control makes it easy:
    Maybe that will help you...
    Firewall rules are always vague and unclear to me. What would help is someone telling me exactly what to put in each box.

    Does "remote" mean everything but my LAN PC's and router?

    Does Local mean "only" my router and pc's?

    If I make an allow rule and choose only LAN under interface type, does it block everything else?

    My PC's have fixed ip's, if I make an allow rule and put the ip of the other pc in it, does it block everything but that ip?

    My LAN is 3 pc's and a printer with fixed ips, 2 hard wired 2 wifi (the printer is wifi) and DHCP for the game console and mobiles devices all hooked to my Cisco EA2700 and it hooks to my modem.

    PS This is just a random allow rule I selected for a screenshot.

    How do I create Firewall rule that allows LAN and blocks internet?-capture.jpg
      My Computers


  5. Posts : 132
    Win 10x64 Pro
    Thread Starter
       #5

    jl2509 said:
    The post you linked to does not consider LAN connections at all. A rule like that blocks the program from any and all connections outside of the PC it's on.
      My Computers


  6. Posts : 194
    Windows 10 Pro
       #6

    That is incorrect.
    The link provided does exactly what you want or have described in you OP...

    The post is detailed to the letter on "How to Block a Program from Accessing the Internet in Windows 10" and considers all connections LAN, WLAN and WAN.

    You will need to setup a rule to the specific application you want to block access to.

    As Cr00zng States, this is completed through the firewall if you know your way around.
      My Computer


  7. Posts : 750
    Windows 10 Pro 64-bits
       #7

    Sqrly said:
    Firewall rules are always vague and unclear to me. What would help is someone telling me exactly what to put in each box.

    Does "remote" mean everything but my LAN PC's and router?

    Does Local mean "only" my router and pc's?

    If I make an allow rule and choose only LAN under interface type, does it block everything else?

    My PC's have fixed ip's, if I make an allow rule and put the ip of the other pc in it, does it block everything but that ip?

    My LAN is 3 pc's and a printer with fixed ips, 2 hard wired 2 wifi (the printer is wifi) and DHCP for the game console and mobiles devices all hooked to my Cisco EA2700 and it hooks to my modem.

    PS This is just a random allow rule I selected for a screenshot.
    Firewall rules are not complex, but the way they described is confusing. My explanation may be just as confusing...

    Remote = anything outside of the system at hand, including other systems within the same LAN.
    Local = the local network, including other PCs, printers switches, routers, etc., within the same subnet
    Interface type LAN = the interface where the firewall rule will be applied to

    You do have a broadband router (Cisco), that's good and having your system software firewall isn't that important. Unless you'd want to control application access, both in and outbound.

    In my view, local LAN based in and outbound access should be allowed. At least, that's what I do. The WFC rule is to fold for this purpose, since the bidirectional access (in and outbound for your system) requires two rules:

    How do I create Firewall rule that allows LAN and blocks internet?-wfc_local.jpg

    You can allow all programs, that will allow all programs to access the local subnet. Alternatively you can browse to the program that you'd want to allow access through the firewall.

    The "LocalSubnet" is not in the dropdown menu, select "Custom Address" and type in "LocalSubnet". Create two of this rules, one for the "Inbound" the "Outbound" access. Alternatively, you could just select "No Filtering" in the "Profiles" tab for testing purposes:

    How do I create Firewall rule that allows LAN and blocks internet?-wfc_low.jpg
      My Computer


  8. Posts : 132
    Win 10x64 Pro
    Thread Starter
       #8

    @Cr00zng

    So, I created both an inbound and outbound rule as you described for "Borderlands2.exe" but when I start the game, I still get a popup from WFC telling me "borderlands2.exe" is trying to access the internet.

    This is were I get confused. I have two rules to allow LAN but they don't to block internet. I make the block rule (click block on this popup) and it overrides the allow rules. If I unplug my modem, and disable this block rule, the lan games work fine.

    How do I create Firewall rule that allows LAN and blocks internet?-capture.jpg
    Last edited by Sqrly; 04 Feb 2019 at 16:40.
      My Computers


  9. Posts : 3,279
    Win10
       #9

    According to the faq at Frequently asked questions

    How to stop entirely the notifications for a specific program ?
    Let's say that you have a program for which you have defined an allow rule with a very specific IP range that you want to allow. When this program connects to a different IP you don't want to see a new notification because you wanted to allow just that specific IP range and that's all. To disable the unwanted notifications for a program, add a new exception in the notifications exceptions list available in the Notifications tab.


    You have already set the allow rules for the specific ip range (ie the LocalSubnet). So, what if you deleted the "Block" rule which may have been set when you clicked the Block this program and then adding "borderlands2.exe" to the Notifications Exceptions list as per the above faq so there are no more popups ?
      My Computers


  10. Posts : 8,154
    windows 10
       #10

    Just give fixed ip with no default gateway job done
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 14:49.
Find Us




Windows 10 Forums