在 Windows 上,請在 WireGuard App 中編輯通道,並勾選 Block untunneled traffic (kill-switch)。在 Android 上,開啟設定、網路和網際網路、VPN,點選 WireGuard 旁的齒輪,並開啟永遠開啟的 VPN 與封鎖未使用 VPN 的連線。
在 iPhone、iPad 與 Mac 上,請在 WireGuard 通道設定中開啟隨選連線(On-Demand),讓通道在每個網路上都會重新啟動。在 Linux 上,請加入我們 Linux 指南中的拒絕規則。在路由器上,請使用路由器針對非 VPN 流量的封鎖選項。