From a5d6ca55ed342418352be8a08d81df99a0eabead Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Wed, 10 May 2023 11:40:28 +0100 Subject: [PATCH] firewall: I think this is the correct network config for the firewall --- machines/agentjones.nix | 27 ++++++++------------------- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/machines/agentjones.nix b/machines/agentjones.nix index 26612ea..33cdae5 100644 --- a/machines/agentjones.nix +++ b/machines/agentjones.nix @@ -14,7 +14,7 @@ let # name of the server, sets teh hostname and record for it name = "agentjones"; ip_pub = "193.1.99.72"; - ip_priv = "172.20.20.1"; + ip_priv = "193.1.99.125"; hostname = "${name}.skynet.ie"; in { @@ -48,32 +48,21 @@ in { # this has to be defined for any physical servers # vms are defined by teh vm host networking.interfaces = { -# eno1 = { -# ipv4.addresses = [ -# { -# address = "193.1.99.72"; -# prefixLength = 26; -# } -# ]; -# ipv4.routes = [ -# { -# address = "193.1.99.72"; -# prefixLength = 26; -# via = "193.1.99.65"; -# } -# ]; -# }; - eno2 = { - #useDHCP = false; + eno1 = { ipv4.addresses = [ { address = "193.1.99.72"; prefixLength = 26; } + ]; + }; + eno2 = { + #useDHCP = false; + ipv4.addresses = [ { # internal address address = "193.1.99.125"; - prefixLength = 24; + prefixLength = 26; } ]; };