forked from hacc/haccfiles
simplify nat on parsons
This commit is contained in:
parent
1ad0a7751c
commit
281745d7a6
3 changed files with 1 additions and 16 deletions
|
@ -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;
|
||||||
|
|
|
@ -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 = ''
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue