मुख्य सामग्री पर जाएँ

प्रॉक्सी और exclusions कॉन्फ़िगर करें Windows

यह गाइड बताती है कि Windows पर प्रॉक्सी सेटिंग्स और bypass exclusions को कैसे कॉन्फ़िगर करें, जिसमें IP-based proxy definitions और WebSocket app compatibility पर विशेष ध्यान दिया गया है।

WebSockets पर निर्भर सामान्य apps:

  • Slack
  • Figma
  • Lucidchart

ये Squid जैसे proxies के माध्यम से रूट किए जाने पर विफल हो सकते हैं, जो wss:// connections का समर्थन नहीं करते हैं।


यह script क्या करता है

  • PowerShell के माध्यम से system-wide proxy IP address सेट करता है
  • user apps (WinINET) और system services (WinHTTP) के लिए exclusions लागू करता है
  • WebSocket-based apps और Microsoft services के लिए proxy routing को रोकता है
  • Intune, GPO, या manual script execution के माध्यम से deployment का समर्थन करता है

मैनुअल configuration steps

  1. Control PanelInternet Options खोलें।
  2. Connections टैब पर जाएँ → LAN Settings
  3. Use a proxy server सक्षम करें।
  4. Set:
    • Address = 192.168.1.10
    • Port = 8080
  5. Advanced पर क्लिक करें, फिर नीचे दिए गए domains को Exceptions सूची में जोड़ें।
  6. लागू करें और सहेजें।

स्क्रिप्टेड विधि (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