diff --git a/README.md b/README.md index b9704c2..ab74940 100644 --- a/README.md +++ b/README.md @@ -574,6 +574,70 @@ sudo ss -lun | grep 51820 >*:51820 + + +
+Create Client Key + +
+For Mobile Clients +
+ Android or iPhone + Resmi WireGuard uygulamasını yükle + Add Tunel(+) + Scan the QR code +
+ +
+ For Desktop Clients + +
+ Arch + sudo pacman -S wireguard-tools +
+ +
+ Debian/Ubuntu/Raspberry Pi OS + sudo apt install wireguard +
+ +
+ Fedora + sudo dnf install wireguard-tools +
+ + 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 + + [Peer] + PublicKey = SERVER_PUBLIC_KEY + Endpoint = VPS_IP:51820 + AllowedIPs = 0.0.0.0/0 + PersistentKeepalive = 25 + ``` + + sudo chmod 600 /etc/wireguard/wg0.conf + + Open VPN -> sudo wg-quick up wg0 + Close VPN -> sudo wg-quick down wg0 + Status -> sudo wg + + 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 +
+
+
+ + # Create Client Key cd /etc/wireguard install -m 600 /dev/null phone_private.key @@ -628,42 +692,7 @@ QR Code -> qrencode -t ansiutf8 < /etc/wireguard/phone.conf -
-Connect VPN -
- Android or iPhone - Resmi WireGuard uygulamasını yükle - Add Tunel(+) -
- -
- Arch - sudo pacman -S wireguard-tools -
- -
- Debian/Ubuntu/Raspberry Pi OS - sudo apt install wireguard -
-
- Fedora - sudo dnf install wireguard-tools -
- - Copy your laptop.conf to /etc/wireguard/wg0.conf in your PC - sudo chmod 600 /etc/wireguard/wg0.conf - - Open VPN -> sudo wg-quick up wg0 - Close VPN -> sudo wg-quick down wg0 - Status -> sudo wg - - 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 -
wg >peer: XXXXXXXXXXXXX