summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2021-08-04 17:44:12 -0400
committerKjetil Orbekk <kj@orbekk.com>2021-08-04 17:44:12 -0400
commitc699aaac119501a269421ad80dd0b1e5f976166f (patch)
tree59a4041da03d63716c0de437f12d548de6dc56b9
parent23fdf2674740d188c6e67a2a65be725bbebf8a33 (diff)
fix config
-rw-r--r--config/router.nix2
-rw-r--r--modules/nycmesh.nix6
2 files changed, 4 insertions, 4 deletions
diff --git a/config/router.nix b/config/router.nix
index df1f931..62c3510 100644
--- a/config/router.nix
+++ b/config/router.nix
@@ -263,7 +263,7 @@ in {
networking.wireguard.interfaces.nycmesh.postSetup = ''
ip rule add fwmark ${toString nycmeshMark} table nycmesh
- ip route replace default dev nycmesh table nycmesh
+ ip route replace default via 10.70.73.1 dev nycmesh table nycmesh
ip route flush cache
'';
diff --git a/modules/nycmesh.nix b/modules/nycmesh.nix
index e3a3f26..70fbb6e 100644
--- a/modules/nycmesh.nix
+++ b/modules/nycmesh.nix
@@ -23,13 +23,13 @@ in
enable = true;
interfaces.nycmesh = {
privateKeyFile = "/opt/secret/wireguard/nycmesh.private";
- ips = [ "10.70.90.245/32" "fc00:bbbb:bbbb:bb01::7:5af4/128" ];
+ ips = [ "10.70.73.50/32" ];
allowedIPsAsRoutes = false;
listenPort = cfg.listenPort;
peers = [
{
- endpoint = "ca10-wireguard.nycmesh.net:51820";
- publicKey = "pAVh6WJtyF7ktvavez399L4A615TXOAaUHQgpwJ4EHU=";
+ endpoint = "wgvpn.sn1.mesh.nycmesh.net:51822";
+ publicKey = "04crAKqAju+ZlEXCdZGAa4OyhDe1k2CHIlshr2KoYAQ=";
allowedIPs = [ "0.0.0.0/0" "::0/0" ];
}
];