proton-vpn.is
繁體中文
简体中文繁體中文EnglishРусскийفارسی

首頁 / 圖解教學 / 路由器上用 WireGuard

路由器上用 WireGuard

在 OpenWrt 路由器上用 WireGuard 連線 Proton VPN:產生設定檔、裝 luci-proto-wireguard、匯入、防火牆,讓家裡所有裝置走 VPN。

在路由器上配好,全家裝置都走 VPN
在路由器上配好,全家裝置都走 VPN GoddersUK, CC BY-SA 3.0

適合誰

電視、遊戲機這類裝不了軟體的裝置。路由器在免費版裡只佔 1 台,下面接多少裝置都行。

產生設定檔

  1. 登入 account.protonvpn.com,Downloads → WireGuard configuration。
  2. Platform 選 Router,起個名字。
  3. 選伺服器,Create,再Download。

OpenWrt

路由器 SSH
opkg update
opkg install luci-proto-wireguard
reboot
  1. Network → Interfaces → Add new interface,名字寫 proton0,協定選 WireGuard VPN。
  2. Load configuration,把設定內容粘進去,Import settings。
  3. Peers 頁點Edit,勾選 Route Allowed IPs,Save。
  4. Firewall Settings 裡把它放進 wan 區域。
  5. Save & Apply。
  1. 電視、手機接家裡 Wi-Fi,不用設定
  2. 路由器用 WireGuard 加密
  3. Proton 伺服器換成它的 IP
通了之後的路

只讓部分走

把不想走的網段從 AllowedIPs 裡去掉,用計算器。預設的 0.0.0.0/0 是全部都走。

要注意

  • 運營商送的路由器多數不支援。
  • 路由器處理器弱時,速度會明顯低於電腦直連。
  • 官方會下線舊伺服器,連不上時重新生成一份設定。
同一份設定能給兩台裝置用嗎?

不要。每台裝置單獨生成一份。

路由器上有 NetShield 嗎?

Plus 產生設定檔時可以勾選級別,免費版只能選 VPN Accelerator。

接著看第一次連線

下一班

本頁詞條:路由器裝 Proton VPN、OpenWrt WireGuard、Proton VPN WireGuard 設定檔