1
0
forked from clan/clan-infra

enable mdns for zerotier

This commit is contained in:
Jörg Thalheim 2023-07-11 16:30:35 +02:00
parent 6f82a31db9
commit 34bb2fd13f

View File

@ -1,7 +1,27 @@
{ config, lib, pkgs, ... }:
{ lib, ... }:
{
networking.firewall.allowedTCPPorts = [ 9993 ];
networking.firewall.allowedUDPPorts = [ 9993 ];
networking.firewall.allowedTCPPorts = [
9993
# FIXME: figure out why it's not enough to just allow it on interface zt*
5353
];
networking.firewall.allowedUDPPorts = [
9993
5353
];
systemd.network.networks = {
zerotier.extraConfig = ''
[Match]
Name=zt*
[Network]
LLMNR=true
LLDP=true
MulticastDNS=true
KeepConfiguration=static
'';
};
services.zerotierone = {
enable = true;
joinNetworks = [