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
sudo nano /etc/wireguard/wg0.conf
```
[Interface]
PrivateKey = DESKTOP_PRIVATE_KEY
Address = 10.8.0.3/24
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
In your PC [Peer]
sudo nano /etc/wireguard/wg0.conf PublicKey = SERVER_PUBLIC_KEY
``` Endpoint = VPS_IP:51820
[Interface] AllowedIPs = 0.0.0.0/0
PrivateKey = DESKTOP_PRIVATE_KEY PersistentKeepalive = 25
Address = 10.8.0.3/24 ```
PreUp = ip route add VPS_IP/32 via 192.168.1.1 dev enp11s0 sudo chmod 600 /etc/wireguard/wg0.conf
PostDown = ip route del VPS_IP/32 via 192.168.1.1 dev enp11s0
[Peer] Open VPN -> sudo wg-quick up wg0
PublicKey = SERVER_PUBLIC_KEY Close VPN -> sudo wg-quick down wg0
Endpoint = VPS_IP:51820 Status -> sudo wg
AllowedIPs = 0.0.0.0/0
PersistentKeepalive = 25
```
sudo chmod 600 /etc/wireguard/wg0.conf Otomatic Connect when Pc is opened -> sudo systemctl enable wg-quick@wg0
Close that option -> sudo systemctl disable wg-quick@wg0
Open VPN -> sudo wg-quick up wg0 If you get connection error delete 'DNS = 1.1.1.1' from your desktop.conf and try again
Close VPN -> sudo wg-quick down wg0 sudo wg-quick up wg0
Status -> sudo wg </details>
Otomatic Connect when Pc is opened -> sudo systemctl enable wg-quick@wg0
Close that option -> sudo systemctl disable wg-quick@wg0
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>