devices.srv1: fix network

This commit is contained in:
陈浩南 2024-09-19 20:35:52 +08:00
parent 247f205a44
commit 8f5f6e476a
2 changed files with 9 additions and 2 deletions

View File

@ -17,7 +17,11 @@ inputs:
}; };
services = services =
{ {
xray.client.enable = true; xray.client =
{
enable = true;
dnsmasq.extraInterfaces = [ "eno146" ];
};
beesd.instances.root = { device = "/"; hashTableSizeMB = 512; threads = 4; }; beesd.instances.root = { device = "/"; hashTableSizeMB = 512; threads = 4; };
wireguard = wireguard =
{ {
@ -51,5 +55,8 @@ inputs:
options = [ "rbind" ]; options = [ "rbind" ];
}; };
}; };
# without this, tproxy does not work
# TODO: why?
networking.firewall.trustedInterfaces = [ "eno146" ];
}; };
} }

View File

@ -10,7 +10,7 @@ inputs:
networking.networkd.static = networking.networkd.static =
{ {
eno1 = { ip = "192.168.1.11"; mask = 24; gateway = "192.168.1.1"; }; eno1 = { ip = "192.168.1.11"; mask = 24; gateway = "192.168.1.1"; };
eno2 = { ip = "192.168.178.2"; mask = 24; gateway = "192.168.178.1"; }; eno2 = { ip = "192.168.178.2"; mask = 24; gateway = "192.168.178.1"; dns = "192.168.178.1"; };
}; };
cluster.nodeType = "worker"; cluster.nodeType = "worker";
initrd.sshd.enable = true; initrd.sshd.enable = true;