WireGuard - Linux

1. 安裝WireGuard

以Ubuntu 20 TLS 為例
apt update
apt install wireguard resolvconf

2. 配置WG 客戶端

編輯wg0.conf
vim /etc/wireguard/wg0.conf

在套餐詳情頁面中,點擊 線路中的Config 按鈕複製對應的配置文檔,粘貼入wg0.conf,保存。

3. 啟動WG
wg-quick up wg0

4. 測試WG
ping 10.200.0.1

5. 如果提供的默認config文檔無法連接,但是Random Port有效,請在Random Port範圍內隨機選取一個端口,替換Endpoint中的默認5353

如需隨機啟動:
systemctl enable wg-quick@wg0
取消隨機啟動
systemctl disable wg-quick@wg0

此答案有用麼?

 列印

建議閱讀

WireGuard - iOS setup

1. Install app from App Store, you can search WireGuard in App Store or...

WireGuard - Windows

1. Install WireGuard APP, Download from here2. Get WireGuard server information.     Visit our...

WireGuard - macOS

1. Install app from App Store, you can search WireGuard in App Store or...

WireGuard - Android setup

1. Install WireGuard app, https://dl.vpnaff.com/?dir=WireGuard2. Get WireGuard server...