2022-07-07 11:15:52 +02:00
|
|
|
{ config, pkgs, ...}:
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
ethtool # manage NIC settings (offload, NIC feeatures, ...)
|
|
|
|
conntrack-tools # view network connection states
|
|
|
|
];
|
|
|
|
|
2022-07-15 09:39:13 +02:00
|
|
|
networking.firewall.interfaces.ens19.allowedUDPPorts = [ 67 53 ];
|
2022-07-07 11:15:52 +02:00
|
|
|
networking = {
|
2022-07-17 13:52:49 +02:00
|
|
|
nameservers = [ "10.42.10.8" "2a01:4f8:1c0c:8221::8" ];
|
2022-07-07 11:15:52 +02:00
|
|
|
nat = {
|
|
|
|
enable = true;
|
|
|
|
externalInterface = "ens18";
|
|
|
|
internalInterfaces = [ "ens19" ];
|
|
|
|
};
|
|
|
|
interfaces = {
|
|
|
|
ens19.useDHCP = false;
|
|
|
|
ens18.useDHCP = true;
|
|
|
|
# Handle the VLANs
|
|
|
|
ens19 = {
|
2022-07-17 13:41:37 +02:00
|
|
|
ipv4.addresses = [
|
|
|
|
{ address = "10.42.10.25"; prefixLength = 24; }
|
|
|
|
];
|
2022-07-07 11:15:52 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2022-07-17 13:41:37 +02:00
|
|
|
}
|