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
- Identify Your Network Profiles: Windows uses different profiles for different networks (Private, Public). You need to know which profile your current connection is using.
- Go to Settings > Network & Internet > Ethernet or Wi-Fi (depending on your connection type).
- Click on the connected network name.
- Look for the ‘Network Profile’ setting. It will say either ‘Private’ or ‘Public’.
- Open Windows Defender Firewall with Advanced Security (search in the Start menu).
- In the left pane, click on Outbound Rules.
- Click New Rule… in the right pane.
- Select Program and click Next.
- Select This program path: and browse to
C:WindowsSystem32svchost.exe. Click Next. (This targets system processes.) - Select Block the connection and click Next.
- Check all three profiles (Domain, Private, Public) and click Next.
- Give the rule a descriptive name like ‘Block System Outbound – All Profiles’ and click Finish.
- In Windows Defender Firewall with Advanced Security, click New Rule… again.
- Select Custom and click Next.
- On the ‘Program’ page, select All programs and click Next.
- On the ‘Protocol and Ports’ page, leave everything as default (Any) and click Next.
- On the ‘Scope’ page:
- For Remote IP address select These IP addresses:
- Enter your local network subnet in CIDR notation. For example, if your router’s IP is 192.168.1.1 and the subnet mask is 255.255.255.0, enter 192.168.1.0/24. (Find your network details using
ipconfigin Command Prompt.) - Click Next.
- Select Allow the connection and click Next.
- Check only Private and click Next.
- Name the rule ‘Allow LAN Outbound – Private’ and click Finish.
- Open Windows Defender Firewall with Advanced Security.
- Click New Rule… again.
- Select Custom and click Next.
- On the ‘Program’ page, select All programs and click Next.
- On the ‘Protocol and Ports’ page, leave everything as default (Any) and click Next.
- On the ‘Scope’ page:
- For Remote IP address select These IP addresses:
- Enter your VPN server’s IP address or subnet in CIDR notation (check your VPN provider documentation). If you don’t know it, leave this as ‘Any’.
- Click Next.
- Select Allow the connection and click Next.
- Check only Public and click Next.
- Name the rule ‘Allow VPN Outbound – Public’ and click Finish.