Update README.md
This commit is contained in:
@@ -582,10 +582,10 @@ sudo ss -lun | grep 51820
|
|||||||
<details>
|
<details>
|
||||||
<summary>For Mobile Clients</summary>
|
<summary>For Mobile Clients</summary>
|
||||||
|
|
||||||
# Create Client Key
|
# Create Mobile Client Key
|
||||||
|
|
||||||
cd /etc/wireguard
|
cd /etc/wireguard
|
||||||
install -m 600 /dev/null phone_private.key
|
umask 077
|
||||||
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
|
||||||
@@ -613,7 +613,7 @@ sudo ss -lun | grep 51820
|
|||||||
>allowed ips: 10.8.0.2/32
|
>allowed ips: 10.8.0.2/32
|
||||||
|
|
||||||
# Phone.conf
|
# Phone.conf
|
||||||
Phone Public Key -> sudo cat phone_private.key
|
Phone Private Key -> sudo cat phone_private.key
|
||||||
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
|
||||||
@@ -636,6 +636,23 @@ sudo ss -lun | grep 51820
|
|||||||
Resmi WireGuard uygulamasını yükle
|
Resmi WireGuard uygulamasını yükle
|
||||||
Add Tunel(+)
|
Add Tunel(+)
|
||||||
Scan the QR code
|
Scan the QR code
|
||||||
|
🎉 You are ready to use yor VPN
|
||||||
|
|
||||||
|
# Delete Mobile Client Key
|
||||||
|
```
|
||||||
|
rm -f \
|
||||||
|
/etc/wireguard/phone_private.key \
|
||||||
|
/etc/wireguard/phone_public.key \
|
||||||
|
/etc/wireguard/phone.conf
|
||||||
|
```
|
||||||
|
and delete this block in wg0.conf
|
||||||
|
```
|
||||||
|
[Peer]
|
||||||
|
# Phone
|
||||||
|
PublicKey = PHONE_PUBLIC_KEY
|
||||||
|
AllowedIPs = 10.8.0.2/32
|
||||||
|
```
|
||||||
|
sudo systemctl restart wg-quick@wg0
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
||||||
@@ -660,7 +677,7 @@ sudo ss -lun | grep 51820
|
|||||||
# Create Desktop Client Key
|
# Create Desktop Client Key
|
||||||
|
|
||||||
cd /etc/wireguard
|
cd /etc/wireguard
|
||||||
install -m 600 /dev/null desktop_private.key
|
umask 077
|
||||||
wg genkey | tee desktop_private.key > /dev/null
|
wg genkey | tee desktop_private.key > /dev/null
|
||||||
wg pubkey < desktop_private.key > desktop_public.key
|
wg pubkey < desktop_private.key > desktop_public.key
|
||||||
chmod 600 desktop_private.key
|
chmod 600 desktop_private.key
|
||||||
@@ -686,11 +703,11 @@ AllowedIPs = 10.8.0.3/32
|
|||||||
systemctl restart wg-quick@wg0
|
systemctl restart wg-quick@wg0
|
||||||
wg
|
wg
|
||||||
>peer: XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
>peer: XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
||||||
>allowed ips: 10.8.0.2/32
|
>allowed ips: 10.8.0.3/32
|
||||||
|
|
||||||
|
|
||||||
# desktop.conf
|
# desktop.conf
|
||||||
Desktop Public Key -> sudo cat desktop_private.key
|
Desktop Private Key -> sudo cat desktop_private.key
|
||||||
Server Public Key -> sudo cat /etc/wireguard/server_public.key
|
Server Public Key -> sudo cat /etc/wireguard/server_public.key
|
||||||
|
|
||||||
In your PC
|
In your PC
|
||||||
@@ -722,16 +739,30 @@ sudo nano /etc/wireguard/wg0.conf
|
|||||||
|
|
||||||
If you get connection error delete 'DNS = 1.1.1.1' from your desktop.conf and try again
|
If you get connection error delete 'DNS = 1.1.1.1' from your desktop.conf and try again
|
||||||
sudo wg-quick up wg0
|
sudo wg-quick up wg0
|
||||||
|
|
||||||
|
🎉 You are ready to use yor VPN
|
||||||
|
|
||||||
|
# Delete Mobile Client Key
|
||||||
|
```
|
||||||
|
rm -f \
|
||||||
|
/etc/wireguard/desktop_private.key \
|
||||||
|
/etc/wireguard/desktop_public.key \
|
||||||
|
/etc/wireguard/desktop.conf
|
||||||
|
```
|
||||||
|
and delete this block in wg0.conf
|
||||||
|
```
|
||||||
|
[Peer]
|
||||||
|
# Desktop
|
||||||
|
PublicKey = DESKTOP_PUBLIC_KEY
|
||||||
|
AllowedIPs = 10.8.0.3/32
|
||||||
|
```
|
||||||
|
sudo systemctl restart wg-quick@wg0
|
||||||
</details>
|
</details>
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
wg
|
wg
|
||||||
>peer: XXXXXXXXXXXXX
|
>peer: XXXXXXXXXXXXX
|
||||||
>latest handshake: 5 seconds ago
|
>latest handshake: 5 seconds ago
|
||||||
@@ -743,7 +774,7 @@ Test -> https://ifconfig.me
|
|||||||
|
|
||||||
DNS Leak Test -> https://browserleaks.com/dns
|
DNS Leak Test -> https://browserleaks.com/dns
|
||||||
|
|
||||||
⚠️ Eger yeni cihaz clienti eklemek istiyorsan yeni key olusturup VPN Agini(10.8.0.2, 10.8.0.3, 10.8.0.4...) degistirip yukaridaki 'Create Client Key' ve 'Phone.conf' adimlarini phone yerine baska isimlendirme yaparak izleyebilirsin.
|
⚠️ Eger yeni cihaz clienti eklemek istiyorsan yeni key olusturup VPN Agini(10.8.0.2, 10.8.0.3, 10.8.0.4...) degistirip yukaridaki adimlari phone/desktop yerine baska isimlendirmeler yaparak izleyebilirsin.
|
||||||
|
|
||||||
or
|
or
|
||||||
|
|
||||||
@@ -751,8 +782,17 @@ or
|
|||||||
wg set wg0 peer LAPTOP_PUBLIC_KEY allowed-ips 10.8.0.3/32
|
wg set wg0 peer LAPTOP_PUBLIC_KEY allowed-ips 10.8.0.3/32
|
||||||
|
|
||||||
|
|
||||||
phone.conf
|
phone.conf/desktop.conf
|
||||||
Full Tunnel Mode -> AllowedIPs = 0.0.0.0/0 Bütün internet trafiğin VPN'den geçer.
|
Full Tunnel Mode -> AllowedIPs = 0.0.0.0/0 Bütün internet trafiğin VPN'den geçer.
|
||||||
|
|
||||||
Split Tunnel Mode -> AllowedIPs = 10.8.0.0/24 Sadece sunucuna ait trafik VPN'den geçer.
|
Split Tunnel Mode -> AllowedIPs = 10.8.0.0/24 Sadece sunucuna ait trafik VPN'den geçer.
|
||||||
|
|
||||||
|
|
||||||
|
# Delete Server Key
|
||||||
|
```
|
||||||
|
rm -f \
|
||||||
|
/etc/wireguard/server_private.key \
|
||||||
|
/etc/wireguard/server_public.key \
|
||||||
|
/etc/wireguard/wg0.conf
|
||||||
|
```
|
||||||
|
sudo systemctl disable --now wg-quick@wg0
|
||||||
|
|||||||
Reference in New Issue
Block a user