Skip to main content
Version: 2.15.0

Configure proxy and exclusions Windows

This guide explains how to configure proxy settings and bypass exclusions on Windows, with attention to ip-based proxy definitions and websocket app compatibility.

Common apps that rely on websockets:

  • Slack
  • Figma
  • Lucidchart

These can fail when routed through proxies like squid, which do not supportwss://Connections.


What this script does

  • Sets a system-wide proxy ip address via powershell
  • Applies exclusions for user apps (wininet) and system services (winhttp)
  • Prevents proxy routing for websocket-based apps and Microsoft services
  • Supports deployment via intune, gpo, or manual script execution

Manual configuration steps

  1. Launch control panelinternet options.
  2. Navigate to the connections tab → lan settings.
  3. Enable use a proxy server.
  4. Set:
    • Address = 192.168.1.10
    • Port = 8080
  5. Click advanced, then add the domains below to the exceptions list.
  6. Apply and save.

Scripted method (powershell)

# Define proxy IP and port
$proxyIP = "http://192.168.1.10:8080"

# Define proxy bypass list
$bypassList = "localhost;127.0.0.1;*.microsoftonline.com;*.core.windows.net;*.slack.com;*.figma.com;*.lucidchart.com;*.lucid.app;*.github.com;copilot-proxy.githubusercontent.com"

# Apply proxy for system services
netsh winhttp set proxy $proxyIP ";$bypassList"

# Apply proxy for user apps
$regPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings"
Set-ItemProperty -Path $regPath -Name ProxyEnable -Value 1
Set-ItemProperty -Path $regPath -Name ProxyServer -Value $proxyIP
Set-ItemProperty -Path $regPath -Name ProxyOverride -Value $bypassList