summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2021-08-04 17:41:54 -0400
committerKjetil Orbekk <kj@orbekk.com>2021-08-04 17:41:54 -0400
commit23fdf2674740d188c6e67a2a65be725bbebf8a33 (patch)
tree1ef86ffdcd1f7854a2088912ad4d542460829191 /config
parent3dd845d83436534841de8c3aa9a48d88d5d487e8 (diff)
fix config
Diffstat (limited to 'config')
-rw-r--r--config/router.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/config/router.nix b/config/router.nix
index db02093..df1f931 100644
--- a/config/router.nix
+++ b/config/router.nix
@@ -2,13 +2,13 @@
let
wan-dev = "bond0.10";
lan-dev = "bond0";
- wireguardPort = config.orbekk.wireguard.listenPort;
+ wireguardPorts =
+ [ config.orbekk.mullvad.listenPort config.orbekk.nycmesh.listenPort ];
mullvadMark = 30;
nycmeshMark = 32;
in {
- orbekk.wireguard.enable = true;
- orbekk.wireguard.enableMullvad = true;
- orbekk.wireguard.enableNycmesh = true;
+ orbekk.mullvad.enable = true;
+ orbekk.nycmesh.enable = true;
services.tftpd.enable = true;
services.openntpd.enable = true;
@@ -91,7 +91,7 @@ in {
proto tcp dport ssh ACCEPT;
proto (tcp udp) dport domain ACCEPT;
proto tcp dport (http https) ACCEPT;
- proto udp dport ${toString wireguardPort} ACCEPT;
+ proto udp dport (${lib.concatStringsSep " " (map toString wireguardPorts)}) ACCEPT;
}
interface ($DEV_LAN $DEV_ADMIN) @subchain "lan_services" {