Test
This commit is contained in:
parent
25f9674207
commit
83cd94d9d6
1 changed files with 13 additions and 3 deletions
|
@ -35,9 +35,6 @@
|
||||||
sopsFile = ../../../secrets/wireguard.yaml;
|
sopsFile = ../../../secrets/wireguard.yaml;
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.nat.enable = true;
|
|
||||||
networking.nat.externalInterface = "eno3";
|
|
||||||
networking.nat.internalInterfaces = [ "wireguard0" ];
|
|
||||||
# Wireguard Forwarder
|
# Wireguard Forwarder
|
||||||
boot.kernel.sysctl = { "net.ipv4.ip_forward" = true; };
|
boot.kernel.sysctl = { "net.ipv4.ip_forward" = true; };
|
||||||
networking.firewall.allowPing = true;
|
networking.firewall.allowPing = true;
|
||||||
|
@ -71,4 +68,17 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
networking.nat = {
|
||||||
|
enable = true;
|
||||||
|
externalInterface = "eno3";
|
||||||
|
internalInterface = "wireguard0";
|
||||||
|
forwardPorts = [
|
||||||
|
{
|
||||||
|
destination = "10.100.0.2:80";
|
||||||
|
proto = "tcp";
|
||||||
|
sourcePort = 80;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
Loading…
Reference in a new issue