fix(zoro): better wireguard config

This commit is contained in:
mrflos 2024-09-16 13:27:20 +03:00
parent 22763e69d1
commit 46eb72c8c2

View file

@ -15,7 +15,7 @@
nameservers = ["80.67.169.12" "2001:910:800::12" "80.67.169.40" "2001:910:800::40"]; nameservers = ["80.67.169.12" "2001:910:800::12" "80.67.169.40" "2001:910:800::40"];
wg-quick.interfaces = { wg-quick.interfaces = {
wg0 = { wg0 = {
address = [ "10.10.10.3/32" "fd42::2/128" ]; address = [ "10.42.0.3/32"];
dns = ["80.67.169.12" "2001:910:800::12" "80.67.169.40" "2001:910:800::40"]; dns = ["80.67.169.12" "2001:910:800::12" "80.67.169.40" "2001:910:800::40"];
privateKeyFile = "/etc/wireguard_private_key"; privateKeyFile = "/etc/wireguard_private_key";
@ -23,7 +23,7 @@
{ {
publicKey = "2MZzEGJzA3HrwkHf91TaKJEHwCNyVvsTLWoIYHrCxhY="; publicKey = "2MZzEGJzA3HrwkHf91TaKJEHwCNyVvsTLWoIYHrCxhY=";
presharedKeyFile = "/etc/wireguard_preshared_key"; presharedKeyFile = "/etc/wireguard_preshared_key";
allowedIPs = [ "0.0.0.0/0" "::/0" ]; allowedIPs = [ "10.10.10.0/24" ];
endpoint = "195.201.63.240:8098"; endpoint = "195.201.63.240:8098";
persistentKeepalive = 15; persistentKeepalive = 15;
} }