From 3d5299f8c645ef9ab20ca50f9a5090c6c4d970e5 Mon Sep 17 00:00:00 2001 From: Florian Agbuya Date: Thu, 15 Feb 2024 10:14:40 +0800 Subject: [PATCH] add new ip route setting --- network.patch | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/network.patch b/network.patch index 0a7f087..253dfa0 100644 --- a/network.patch +++ b/network.patch @@ -29,7 +29,7 @@ index 010c487..37f6aaa 100644 mode = "0444"; }; diff --git a/runit.nix b/runit.nix -index d7b0bf3..67cff43 100644 +index d7b0bf3..3c9ea3f 100644 --- a/runit.nix +++ b/runit.nix @@ -7,8 +7,8 @@ let @@ -43,7 +43,7 @@ index d7b0bf3..67cff43 100644 AuthorizedKeysFile /etc/ssh/authorized_keys.d/%u ''; compat = pkgs.runCommand "runit-compat" {} '' -@@ -31,10 +31,10 @@ in +@@ -31,10 +31,11 @@ in "runit/1".source = pkgs.writeScript "1" '' #!${pkgs.runtimeShell} ${lib.optionalString config.not-os.simpleStaticIp '' @@ -53,7 +53,8 @@ index d7b0bf3..67cff43 100644 - ip route add 10.0.2.0/24 dev eth0 - ip route add default via 10.0.2.2 dev eth0 + ip route add 103.206.98.200/29 dev eth0 -+ ip route add default via 103.206.98.200 dev eth0 ++ ip route del default ++ ip route add 0.0.0.0/0 via 103.206.98.200 advmss 1340 ''} mkdir /bin/ ln -s ${pkgs.runtimeShell} /bin/sh