Настройки WireGuard:
Сервер: wg0.conf
Код: Выделить всё
[Interface]
Address = 10.8.0.1/24
SaveConfig = false
ListenPort = 51820
PrivateKey =
[Peer]
PublicKey =
AllowedIPs = 10.8.0.10/32
Код: Выделить всё
[Interface]
PrivateKey =
Address = 10.8.0.10/32
DNS = 10.8.0.1
[Peer]
PublicKey =
AllowedIPs = 10.8.0.1/32
Endpoint =
PersistentKeepalive = 25
Настройки PostgreSQL:
postgresql.conf
Код: Выделить всё
listen_addresses = '*'
Код: Выделить всё
local all all trust
host all all 0.0.0.0/0 trust
Код: Выделить всё
tcp LISTEN 0 200 0.0.0.0:5432 0.0.0.0:*
tcp LISTEN 0 200 [::]:5432 [::]:*
Подробнее здесь: https://stackoverflow.com/questions/798 ... -wireguard
Мобильная версия