Infini-FRAMEWORK: move NAT into specialisation

This commit is contained in:
Infinidoge 2024-11-26 20:41:55 -05:00
parent f62d790ab2
commit 47f7641de4
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A

View file

@ -101,19 +101,18 @@
} }
]; ];
specialisation.router.configuration = {
networking = { networking = {
interfaces = { interfaces."enp0s13f0u1" = {
"wlp170s0".useDHCP = true;
"enp0s13f0u1" = {
ipv4.addresses = [{ ipv4.addresses = [{
address = "192.168.100.1"; address = "192.168.100.1";
prefixLength = 24; prefixLength = 24;
}]; }];
}; };
};
firewall.interfaces = { firewall.interfaces."enp0s13f0u1" = {
"enp0s13f0u1".allowedTCPPorts = [ 53 ]; allowedTCPPorts = [ 53 ];
"enp0s13f0u1".allowedUDPPorts = [ 53 67 ]; allowedUDPPorts = [ 53 67 ];
}; };
nat = { nat = {
@ -150,4 +149,6 @@
"net.ipv4.conf.all.forwarding" = true; "net.ipv4.conf.all.forwarding" = true;
"net.ipv6.conf.all.forwarding" = true; "net.ipv6.conf.all.forwarding" = true;
}; };
};
} }