使用 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.