Update README.md

This commit is contained in:
FURK4NGG
2026-07-09 15:12:45 +03:00
committed by GitHub
parent 96e20a26ea
commit b163f23f2e
+41 -44
View File
@@ -579,61 +579,58 @@ sudo ss -lun | grep 51820
<details> <details>
<summary>Create Client Key</summary> <summary>Create Client Key</summary>
<details>
<summary>For Mobile Clients</summary>
<details> <details>
<summary>Android or iPhone</summary> <summary>For Mobile Clients</summary>
Resmi WireGuard uygulamasını yükle
Add Tunel(+) Resmi WireGuard uygulamasını yükle
Scan the QR code Add Tunel(+)
</details> Scan the QR code
<details> <details>
<summary>For Desktop Clients</summary> <summary>For Desktop Clients</summary>
<details> <details>
<summary>Arch</summary> <summary>Arch</summary>
sudo pacman -S wireguard-tools sudo pacman -S wireguard-tools
</details> </details>
<details> <details>
<summary>Debian/Ubuntu/Raspberry Pi OS</summary> <summary>Debian/Ubuntu/Raspberry Pi OS</summary>
sudo apt install wireguard sudo apt install wireguard
</details> </details>
<details> <details>
<summary>Fedora</summary> <summary>Fedora</summary>
sudo dnf install wireguard-tools sudo dnf install wireguard-tools
</details> </details>
In your PC
In your PC sudo nano /etc/wireguard/wg0.conf
sudo nano /etc/wireguard/wg0.conf ```
``` [Interface]
[Interface] PrivateKey = DESKTOP_PRIVATE_KEY
PrivateKey = DESKTOP_PRIVATE_KEY Address = 10.8.0.3/24
Address = 10.8.0.3/24 PreUp = ip route add VPS_IP/32 via 192.168.1.1 dev enp11s0
PreUp = ip route add VPS_IP/32 via 192.168.1.1 dev enp11s0 PostDown = ip route del VPS_IP/32 via 192.168.1.1 dev enp11s0
PostDown = ip route del VPS_IP/32 via 192.168.1.1 dev enp11s0
[Peer] [Peer]
PublicKey = SERVER_PUBLIC_KEY PublicKey = SERVER_PUBLIC_KEY
Endpoint = VPS_IP:51820 Endpoint = VPS_IP:51820
AllowedIPs = 0.0.0.0/0 AllowedIPs = 0.0.0.0/0
PersistentKeepalive = 25 PersistentKeepalive = 25
``` ```
sudo chmod 600 /etc/wireguard/wg0.conf
sudo chmod 600 /etc/wireguard/wg0.conf Open VPN -> sudo wg-quick up wg0
Close VPN -> sudo wg-quick down wg0
Status -> sudo wg
Open VPN -> sudo wg-quick up wg0 Otomatic Connect when Pc is opened -> sudo systemctl enable wg-quick@wg0
Close VPN -> sudo wg-quick down wg0 Close that option -> sudo systemctl disable wg-quick@wg0
Status -> sudo wg
Otomatic Connect when Pc is opened -> sudo systemctl enable wg-quick@wg0 If you get connection error delete 'DNS = 1.1.1.1' from your desktop.conf and try again
Close that option -> sudo systemctl disable wg-quick@wg0 sudo wg-quick up wg0
</details>
If you get connection error delete 'DNS = 1.1.1.1' from your desktop.conf and try again
sudo wg-quick up wg0
</details>
</details> </details>