Konfigurasikan proxy dan pengecualian Windows
Panduan ini menjelaskan cara mengonfigurasi pengaturan proxy dan pengecualian bypass di Windows, dengan perhatian pada definisi proxy berbasis IP dan kompatibilitas aplikasi WebSocket.
Aplikasi umum yang mengandalkan WebSockets:
- Slack
- Figma
- Lucidchart
Ini dapat gagal saat dirutekan melalui proxy seperti Squid, yang tidak mendukung koneksi wss://.
Apa yang dilakukan skrip ini
- Menetapkan alamat IP proxy seluruh sistem melalui PowerShell
- Menerapkan pengecualian untuk aplikasi pengguna (WinINET) dan layanan sistem (WinHTTP)
- Mencegah perutean proxy untuk aplikasi berbasis WebSocket dan layanan Microsoft
- Mendukung deployment melalui Intune, GPO, atau eksekusi skrip manual
Langkah konfigurasi manual
- Buka Control Panel → Internet Options.
- Buka tab Connections → LAN Settings.
- Aktifkan Use a proxy server.
- Set:
- Address =
192.168.1.10 - Port =
8080
- Address =
- Klik Advanced, lalu tambahkan domain di bawah ini ke daftar Exceptions.
- Terapkan dan simpan.
Metode dengan skrip (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