Properly configure firewall to allow tinc to pass through

This commit is contained in:
Natsu Kagami 2024-08-16 15:02:25 +02:00
parent 9fecd353f8
commit 41f717c5be
Signed by: nki
GPG key ID: 55A032EB38B49ADB
2 changed files with 6 additions and 1 deletions

View file

@ -78,6 +78,11 @@ in
# firewall
networking.firewall.allowedUDPPorts = [ 655 ];
networking.firewall.allowedTCPPorts = [ 655 ];
networking.firewall.interfaces."tinc.${networkName}" = {
allowedUDPPortRanges = [{ from = 0; to = 65535; }];
allowedTCPPortRanges = [{ from = 0; to = 65535; }];
};
# configure tinc service
# ----------------------

View file

@ -31,7 +31,7 @@ in
config = {
nix.settings = mkIf cfg.enableClient {
substituters = [ cfg.host ];
substituters = [ "http://${cfg.host}" ];
trusted-public-keys = [ cfg.publicKey ];
};