Blog | G5 Cyber Security

Block Windows Internet Access (Allow LAN & VPN)

TL;DR

This guide shows you how to block all internet access for Windows system processes except those using your Local Area Network (LAN) and Virtual Private Network (VPN) connections. This is useful for preventing unwanted updates or telemetry while still allowing local network resources and secure remote access.

Solution Guide

  1. Identify Your Network Profiles: Windows uses different profiles for different networks (Private, Public). You need to know which profile your current connection is using.
  • Create Windows Firewall Rules for Private Networks: We’ll create rules to allow LAN traffic and block everything else.
  • Create Windows Firewall Rules for LAN Traffic on Private Networks: Allow traffic to your local network subnet.
  • Create Windows Firewall Rules for VPN Traffic on Public Networks: Allow traffic when connected to a VPN. This is more complex as it depends on your VPN adapter name.
  • Verify the Rules: Ensure the rules are enabled and in the correct order. The ‘Block System Outbound’ rule should be at the top of the list for all profiles, followed by the LAN/VPN allow rules for their respective profiles. You can drag and drop to reorder them.
  • Test Your Connection: Disconnect from your network (or switch to Public profile) and verify that internet access is blocked for system processes but LAN resources are still accessible. Connect to your VPN and confirm it works as expected.
  • Exit mobile version