Dernier fix réseau #111

Merged
thubrecht merged 3 commits from lbailly/infrastructure:nat into main 2024-07-08 20:47:21 +02:00
Showing only changes of commit 37a18c0347 - Show all commits

View file

@ -190,5 +190,21 @@ in
};
};
networking.firewall.allowedUDPPorts = [ 67 ];
networking = {
nftables = {
enable = true;
tables.nat = {
family = "ip";
lbailly marked this conversation as resolved Outdated

Tu peux aussi rajouter

path [ pkgs.iputils pkgs.systemd ];

Et pas mettre des getExe' partout

Tu peux aussi rajouter ```nix path [ pkgs.iputils pkgs.systemd ]; ``` Et pas mettre des `getExe'` partout
content = ''
chain postrouting {
type nat hook postrouting priority 100;
snat ip to 129.199.195.130-129.199.195.158
lbailly marked this conversation as resolved Outdated
https://noogle.dev/f/lib/concatMapStringsSep
}
'';
};
};
firewall.allowedUDPPorts = [ 67 ];
};
boot.kernel.sysctl."net.ipv4.ip_forward" = true;
}