Clone
3
Wireguard
me edited this page 2026-01-21 19:37:43 +03:00
This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Client

sudo apt install wireguard
sudo nano /etc/wireguard/wg0.conf

скачать конфиг с wg-easy сервера и отредактировать:

  • убрать dns
  • endpoint = vpnwg.ulakar.com:51820
[Interface]
PrivateKey = xxx
Address = 10.8.0.4/24, fdcc:ad94:bacf:61a4::cafe:8/112
# отключить DNS - не используем для wg сети
#DNS = 1.1.1.1, 2606:4700:4700::1111
MTU = 1420

[Peer]
PublicKey = xxx
PresharedKey = xxx
AllowedIPs = 10.8.0.0/24
PersistentKeepalive = 25
Endpoint = vpnwg.ulakar.com:51820

sudo systemctl enable wg-quick@wg0
sudo systemctl start wg-quick@wg0

sudo ufw allow in on wg0 to any port 22