diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index 5908bcc..f722701 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -204,6 +204,13 @@ in address = "103.206.98.200"; prefixLength = 29; }]; + ipv4.routes = [ + { + address = "103.206.98.200"; + prefixLength = 29; + options.table = "1"; + } + ]; }; }; boot.kernel.sysctl."net.ipv6.conf.all.forwarding" = "1"; @@ -239,7 +246,7 @@ in serviceConfig = { Type = "oneshot"; RemainAfterExit = true; - ExecStart = "${pkgs.iproute2}/bin/ip rule add from 103.206.98.200/29 table 1"; + ExecStart = "${pkgs.iproute2}/bin/ip rule add from 103.206.98.0/24 table 1"; ExecStop = "${pkgs.iproute2}/bin/ip rule del table 1"; }; };