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 = {
interfaces = {
"wlp170s0".useDHCP = true;
"enp0s13f0u1" = {
interfaces."enp0s13f0u1" = {
ipv4.addresses = [{
address = "192.168.100.1";
prefixLength = 24;
}];
};
};
firewall.interfaces = {
"enp0s13f0u1".allowedTCPPorts = [ 53 ];
"enp0s13f0u1".allowedUDPPorts = [ 53 67 ];
firewall.interfaces."enp0s13f0u1" = {
allowedTCPPorts = [ 53 ];
allowedUDPPorts = [ 53 67 ];
};
nat = {
@ -150,4 +149,6 @@
"net.ipv4.conf.all.forwarding" = true;
"net.ipv6.conf.all.forwarding" = true;
};
};
}