petalius: fix vpn gw

This commit is contained in:
Gabriel Ebner 2019-09-25 14:23:50 +02:00
parent 9636644d77
commit 2878e73ad0
1 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@
privateKeyFile = "/etc/wgkeys/petalius";
allowedIPsAsRoutes = true;
postSetup = ''
printf "nameserver 10.57.0.1" | ${pkgs.openresolv}/bin/resolvconf -a wg0 -m 0
printf "nameserver 10.58.0.1" | ${pkgs.openresolv}/bin/resolvconf -a wg0 -m 0
'';
postShutdown = ''
${pkgs.openresolv}/bin/resolvconf -d wg0
@ -106,7 +106,7 @@
peers = [{
publicKey = "ByLlJbevlTBooAo2RIZGGJvBHKqA9qiOpHBvR5yuJX4=";
allowedIPs = ["10.56.0.0/14" "10.60.1.1"];
endpoint = "mtlaa-gw.gebner.org:35869";
endpoint = "htdf-gw.gebner.org:35869";
}];
};
systemd.services.wireguard-wg0.wantedBy = pkgs.lib.mkOverride 10 [];