simplify nat on parsons

This commit is contained in:
Moira 2024-04-07 16:25:08 +02:00
parent 1ad0a7751c
commit 281745d7a6
3 changed files with 1 additions and 16 deletions

View file

@ -50,13 +50,6 @@
address = "fe80::1"; address = "fe80::1";
interface = "enp35s0"; interface = "enp35s0";
}; };
boot = {
kernelModules = [ "nf_nat_ftp" ];
kernel.sysctl = {
"net.ipv4.conf.all.forwarding" = lib.mkOverride 90 true;
"net.ipv4.conf.default.forwarding" = lib.mkOverride 90 true;
};
};
services.nginx = { services.nginx = {
enable = true; enable = true;

View file

@ -8,7 +8,6 @@
prefixLength = 24; prefixLength = 24;
} }
]; ];
networking.nat.internalInterfaces = [ "lxcbr0" ];
virtualisation.lxc.enable = true; virtualisation.lxc.enable = true;
virtualisation.lxc.systemConfig = '' virtualisation.lxc.systemConfig = ''

View file

@ -2,14 +2,7 @@
{ {
networking.firewall.enable = true; networking.firewall.enable = true;
networking.nat.enable = false; networking.nat.enable = true;
boot = {
kernelModules = [ "nf_nat_ftp" ];
kernel.sysctl = {
"net.ipv4.conf.all.forwarding" = true;
"net.ipv4.conf.default.forwarding" = true;
};
};
networking.nftables.enable = true; networking.nftables.enable = true;
networking.nftables.tables.nat = { networking.nftables.tables.nat = {