Update README.md
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user