使用 Wireguard 將您的手機連接到您自己的 VPN



在這個 VPN 設置系列的最後一個視頻中,我們將手機連接到我們的「離岸」伺服器,以便它採用外國 IP。 注意:每次在鍵盤上鍵入「大於」符號:大於…因為 Youtube 不允許我在說明中添加該符號。 1- 我們設置了全局配置我們以 root 身份登錄 # mkdir cell # cd cell # wg genkey | cell_private.key 三通 | wg pubkey “greater than”cellular_public.key # touchcellular.conf # catcellular_private.key “greater than”cellular.conf # cat ../publickey “greater than” “greater than”cellular.conf # nanocellular.conf 代碼配置文件cell.conf

[Interface]
地址 = 10.0.0.3 PrivateKey = (Aquí celular_private.key) ListenPort = 51820
[Peer]
Publickey = (Here public.key) Endpoint = 伺服器的真實 ip: 51820 AllowedIPs = 0.0.0.0/0 PersistentKeepAlive = 25 2- 我們將「cell」對添加到伺服器配置中 # cat cell_public.key 「greater than」 ” 大於 “/etc/wireguard/wg0.conf #nano /etc/wireguard/wg0.conf 代碼添加到 wg0.conf 配置文件的末尾

[Peer]
PublicKey = (Here cell_public.key) AllowedIPs = 10.0.0.3/32 PersistentKeepAlive = 25 # systemctl restart wg-quick @ wg0 # wg 3- 我們安裝程序以生成帶有手機配置的qr # apt update # apt install qrencode # qrencode -t ansiutf8 “less than” mobile phone.conf 4- 我們通過二維碼提升手機配置。

1 comments

Comments are closed.