forked from clan/clan-infra
enable mdns for zerotier
This commit is contained in:
parent
6f82a31db9
commit
34bb2fd13f
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user