Networking updates. Postrun debugging info.

This commit is contained in:
Raphaël Numbus
2026-02-16 15:23:57 +01:00
parent e5503a3ef3
commit dcdb29d952
3 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -172,5 +172,5 @@
# Enable auto nix-store optimization
nix.settings.auto-optimise-store = true;
system.stateVersion = "25.05";
system.stateVersion = "25.11";
}
+4 -3
View File
@@ -6,14 +6,12 @@
networking.networkmanager.enable = false;
networking.nftables.enable = true;
networking.firewall.enable = true;
# Allow rootless containers to bind to port 53 and up
boot.kernel.sysctl."net.ipv4.ip_unprivileged_port_start" = 53;
# Bridge configuration for VMs
networking.bridges.br0.interfaces = [ "TARGET_INTERFACE" ];
networking.interfaces."TARGET_INTERFACE".useDHCP = false;
networking.interfaces.br0.useDHCP = false;
networking.nameservers = [ "HOME_SERVER_IP" "9.9.9.9" ];
networking.interfaces.br0.ipv4.addresses = [{
@@ -25,8 +23,11 @@
interface = "br0";
};
networking.nftables.enable = true;
# Open ports in the firewall
networking.firewall = {
enable = true;
allowPing = true;
allowedTCPPorts = [ 53 80 443 ];
allowedUDPPorts = [ 53 443 ];