This commit is contained in:
2026-07-07 00:34:26 +02:00
parent f87ba26c5e
commit 37c648f1d9
2 changed files with 20 additions and 12 deletions
+4
View File
@@ -9,4 +9,8 @@
./dnsmasq.nix
./ssh.nix
];
services.cockpit = {
enable = true;
openFirewall = true;
};
}
+16 -12
View File
@@ -5,15 +5,20 @@ _:
networkmanager.enable = false;
useDHCP = false;
interfaces.enp3s0 = {
useDHCP = true; # WAN DHCP
};
interfaces = {
enp3s0 = {
useDHCP = true; # WAN DHCP
};
interfaces.enp4s0 = {
ipv4.addresses = [{
address = "10.11.0.1";
prefixLength = 24;
}];
enp4s0 = {
ipv4.addresses = [{
address = "10.11.0.1";
prefixLength = 24;
}];
};
enp6s0 = {
useDHCP = true;
};
};
nat = {
@@ -24,10 +29,9 @@ _:
firewall = {
enable = true;
extraCommands = ''
iptables -A nixos-fw -p tcp --dport 22 -s 10.11.0.0/24 -j ACCEPT
'';
#extraCommands = ''
# iptables -A nixos-fw -p tcp --dport 22 -s 10.11.0.0/24 -j ACCEPT
#'';
};
};
}