diff --git a/hosts/xlab-gateway/networking.nix b/hosts/xlab-gateway/networking.nix index 435c630..3bf7e19 100644 --- a/hosts/xlab-gateway/networking.nix +++ b/hosts/xlab-gateway/networking.nix @@ -194,7 +194,7 @@ IPv6AcceptRA = false; }; routes = [ - { Destination = "10.0.0.0/16"; Gateway = "10.253.0.1"; } + #{ Destination = "10.0.0.0/16"; Gateway = "10.253.0.1"; } # Throw routes for Tsinghua ranges → punches holes in WireGuard table { Destination = "166.111.0.0/16"; Type = "throw"; Table = 1002; } { Destination = "101.5.0.0/16"; Type = "throw"; Table = 1002; } @@ -292,6 +292,14 @@ { Destination = "::/0"; Scope = "link"; Table = 1002; } # Internal ULA via tunnel (main table) so gateway + LAN can reach 10.0.0.1's IPv6 { Destination = "fd99:23eb:1682::/48"; Scope = "link"; } + + # ========= 新增下面这两行 ========= + { Destination = "10.0.0.0/16"; Scope = "link"; } + { Destination = "10.5.0.0/24"; Scope = "link"; } + { Destination = "10.253.0.0/24"; Scope = "link"; } + { Destination = "10.254.0.0/24"; Scope = "link"; } + # ================================== + ]; };