From 451328c28b097047a09f59048a01ef04a05313dd Mon Sep 17 00:00:00 2001 From: Egor Savkin Date: Mon, 23 Sep 2024 13:36:17 +0800 Subject: [PATCH] Add virtual ips for the gre tunnel Signed-off-by: Egor Savkin --- nixbld-etc-nixos/configuration.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index de8d02f..922dd1c 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -238,15 +238,15 @@ in interfaces.intl0 = { ipv4.addresses = [ { - address = "5.78.16.0"; - prefixLength = 32; + address = "10.47.3.2"; + prefixLength = 30; } ]; ipv4.routes = [ { address = "0.0.0.0"; prefixLength = 0; - via = "5.78.16.0"; + via = "10.47.3.0"; options.table = "3"; } ]; @@ -348,7 +348,7 @@ in serviceConfig = { Type = "oneshot"; RemainAfterExit = true; - ExecStart = "${pkgs.iproute2}/bin/ip rule add from 5.78.16.0/32 table 3"; + ExecStart = "${pkgs.iproute2}/bin/ip rule add from 10.47.3.0/30 table 3"; ExecStop = "${pkgs.iproute2}/bin/ip rule del table 3"; }; }; @@ -1287,7 +1287,7 @@ in masterConfig.smtptun = { type = "smtp"; command = "smtp"; - args = "-o smtp_bind_address=10.42.0.2"; + args = "-o smtp_bind_address=10.47.3.2"; }; }; };