Infini-FRAMEWORK: move NAT into specialisation
This commit is contained in:
parent
f62d790ab2
commit
47f7641de4
1 changed files with 37 additions and 36 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue