Update README.md

This commit is contained in:
FURK4NGG
2026-07-09 15:31:45 +03:00
committed by GitHub
parent 3802c6f39a
commit 71046d962a
+6 -6
View File
@@ -581,9 +581,9 @@ sudo ss -lun | grep 51820
<details> <details>
<summary>For Mobile Clients</summary> <summary>For Mobile Clients</summary>
# Create Client Key # Create Client Key
cd /etc/wireguard cd /etc/wireguard
install -m 600 /dev/null phone_private.key install -m 600 /dev/null phone_private.key
wg genkey | tee phone_private.key > /dev/null wg genkey | tee phone_private.key > /dev/null
wg pubkey < phone_private.key > phone_public.key wg pubkey < phone_private.key > phone_public.key
chmod 600 phone_private.key chmod 600 phone_private.key
@@ -599,12 +599,12 @@ sudo ss -lun | grep 51820
export TERM=xterm-256color export TERM=xterm-256color
nano /etc/wireguard/wg0.conf nano /etc/wireguard/wg0.conf
Add this into end of the page Add this into end of the page
``` ```
[Peer] [Peer]
# Phone # Phone
PublicKey = PHONE_PUBLIC_KEY PublicKey = PHONE_PUBLIC_KEY
AllowedIPs = 10.8.0.2/32 AllowedIPs = 10.8.0.2/32
``` ```
systemctl restart wg-quick@wg0 systemctl restart wg-quick@wg0
wg wg
>peer: XXXXXXXXXXXXXXXXXXXXXXXXXXXXX >peer: XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
@@ -615,7 +615,7 @@ sudo ss -lun | grep 51820
Server Public Key -> sudo cat /etc/wireguard/server_public.key Server Public Key -> sudo cat /etc/wireguard/server_public.key
export TERM=xterm-256color export TERM=xterm-256color
nano /etc/wireguard/phone.conf nano /etc/wireguard/phone.conf
``` ```
[Interface] [Interface]
PrivateKey = PHONE_PRIVATE_KEY PrivateKey = PHONE_PRIVATE_KEY
Address = 10.8.0.2/24 Address = 10.8.0.2/24
@@ -626,7 +626,7 @@ sudo ss -lun | grep 51820
Endpoint = VPS_IP:51820 Endpoint = VPS_IP:51820
AllowedIPs = 0.0.0.0/0, ::/0 AllowedIPs = 0.0.0.0/0, ::/0
PersistentKeepalive = 25 PersistentKeepalive = 25
``` ```
QR Code -> qrencode -t ansiutf8 < /etc/wireguard/phone.conf QR Code -> qrencode -t ansiutf8 < /etc/wireguard/phone.conf