diff --git a/systems/gateway/cfg.nix b/systems/gateway/cfg.nix index 029e880..8006a0a 100644 --- a/systems/gateway/cfg.nix +++ b/systems/gateway/cfg.nix @@ -25,17 +25,12 @@ server = { enable = true; peers = ["avalon" "asguard" "iriy" "valinor" ]; - forward = { - inInterface = "ens3"; - toAddr = "10.10.1.2"; - - ports = [ - [ 22 2222 ] # SSH - [ 80 80 ] # HTTP - [ 443 443 ] # HTTPS - [ 3979 3979 ] # OTTD - ]; - }; + forward = [ + [ "ens3" "10.10.1.2" 22 2222 ] # SSH + [ "ens3" "10.10.1.2" 80 80 ] # HTTP + [ "ens3" "10.10.1.2" 443 443 ] # HTTPS + [ "ens3" "10.10.1.2" 3979 3979 ] # OTTD + ]; }; }; };