petalius: fix vpn gw
This commit is contained in:
parent
9636644d77
commit
2878e73ad0
@ -98,7 +98,7 @@
|
|||||||
privateKeyFile = "/etc/wgkeys/petalius";
|
privateKeyFile = "/etc/wgkeys/petalius";
|
||||||
allowedIPsAsRoutes = true;
|
allowedIPsAsRoutes = true;
|
||||||
postSetup = ''
|
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 = ''
|
postShutdown = ''
|
||||||
${pkgs.openresolv}/bin/resolvconf -d wg0
|
${pkgs.openresolv}/bin/resolvconf -d wg0
|
||||||
@ -106,7 +106,7 @@
|
|||||||
peers = [{
|
peers = [{
|
||||||
publicKey = "ByLlJbevlTBooAo2RIZGGJvBHKqA9qiOpHBvR5yuJX4=";
|
publicKey = "ByLlJbevlTBooAo2RIZGGJvBHKqA9qiOpHBvR5yuJX4=";
|
||||||
allowedIPs = ["10.56.0.0/14" "10.60.1.1"];
|
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 [];
|
systemd.services.wireguard-wg0.wantedBy = pkgs.lib.mkOverride 10 [];
|
||||||
|
Loading…
Reference in New Issue
Block a user