1
0

carbon pin wireguard to ipv4

This commit is contained in:
clerie 2021-01-23 13:27:06 +01:00
parent bf3f70a4e7
commit 7337e2100b

View File

@ -53,27 +53,27 @@
networking.wireguard.enable = true; networking.wireguard.enable = true;
networking.wireguard.interfaces = { networking.wireguard.interfaces = {
wg-gatekeeper = { wg-gatekeeper4 = {
ips = [ "fe80::127:2/64" "169.254.127.2/24" ]; ips = [ "fe80::127:2/64" "169.254.127.2/24" ];
peers = [ { peers = [ {
allowedIPs = [ "0.0.0.0/0" "::/0" ]; allowedIPs = [ "0.0.0.0/0" "::/0" ];
endpoint = "gatekeeper.net.clerie.de:50127"; endpoint = "78.47.183.82:50127";
publicKey = "y+Bk5eIHgmnq9xuBDD+fk/OIkKRZU6AE4ISx4RdDDyg="; publicKey = "y+Bk5eIHgmnq9xuBDD+fk/OIkKRZU6AE4ISx4RdDDyg=";
persistentKeepalive = 25; persistentKeepalive = 25;
} ]; } ];
allowedIPsAsRoutes = false; allowedIPsAsRoutes = false;
privateKeyFile = "/var/src/secrets/wireguard/wg-gatekeeper"; privateKeyFile = "/var/src/secrets/wireguard/wg-gatekeeper4";
}; };
wg-porter = { wg-porter4 = {
ips = [ "fe80::138:2/64" "169.254.138.2/24" ]; ips = [ "fe80::138:2/64" "169.254.138.2/24" ];
peers = [ { peers = [ {
allowedIPs = [ "0.0.0.0/0" "::/0" ]; allowedIPs = [ "0.0.0.0/0" "::/0" ];
endpoint = "porter.net.clerie.de:50138"; endpoint = "188.34.158.206:50138";
publicKey = "aP6optNE7nVk6coo+USkSDtB62rAc/isfofRML9V2HM="; publicKey = "aP6optNE7nVk6coo+USkSDtB62rAc/isfofRML9V2HM=";
persistentKeepalive = 25; persistentKeepalive = 25;
} ]; } ];
allowedIPsAsRoutes = false; allowedIPsAsRoutes = false;
privateKeyFile = "/var/src/secrets/wireguard/wg-porter"; privateKeyFile = "/var/src/secrets/wireguard/wg-porter4";
}; };
}; };
@ -218,11 +218,11 @@
export all; export all;
}; };
area 0 { area 0 {
interface "wg-gatekeeper" { interface "wg-gatekeeper4" {
cost 80; cost 80;
type pointopoint; type pointopoint;
}; };
interface "wg-porter" { interface "wg-porter4" {
cost 80; cost 80;
type pointopoint; type pointopoint;
}; };
@ -236,11 +236,11 @@
export all; export all;
}; };
area 0 { area 0 {
interface "wg-gatekeeper" { interface "wg-gatekeeper4" {
cost 80; cost 80;
type pointopoint; type pointopoint;
}; };
interface "wg-porter" { interface "wg-porter4" {
cost 80; cost 80;
type pointopoint; type pointopoint;
}; };