rework multicast support
All checks were successful
checks / checks-impure (pull_request) Successful in 2m3s
checks / checks (pull_request) Successful in 5m39s

This commit is contained in:
Jörg Thalheim 2024-04-17 10:56:37 +02:00
parent 059e4efcdc
commit 8658e1694a
2 changed files with 3 additions and 12 deletions

View File

@ -74,14 +74,9 @@
systemd.services.NetworkManager-wait-online.enable = false;
systemd.network.wait-online.enable = false;
systemd.network.networks."99-ethernet-default-dhcp".networkConfig = {
MulticastDNS = lib.mkDefault "yes";
LLMNR = lib.mkDefault "yes";
};
systemd.network.networks."99-wireless-client-dhcp".networkConfig = {
MulticastDNS = lib.mkDefault "yes";
LLMNR = lib.mkDefault "yes";
};
systemd.network.networks."99-ethernet-default-dhcp".networkConfig.MulticastDNS = lib.mkDefault "yes";
systemd.network.networks."99-wireless-client-dhcp".networkConfig.MulticastDNS = lib.mkDefault "yes";
networking.firewall.allowedUDPPorts = [ 5353 ]; # Multicast DNS
# Use networkd instead of the pile of shell scripts
networking.useNetworkd = lib.mkDefault true;

View File

@ -103,7 +103,6 @@ in
systemd.network.networks."09-zerotier" = {
matchConfig.Name = "zt*";
networkConfig = {
LLMNR = true;
LLDP = true;
MulticastDNS = true;
KeepConfiguration = "static";
@ -160,9 +159,6 @@ in
''}"
];
networking.firewall.interfaces."zt+".allowedTCPPorts = [ 5353 ]; # mdns
networking.firewall.interfaces."zt+".allowedUDPPorts = [ 5353 ]; # mdns
networking.firewall.allowedTCPPorts = [ 9993 ]; # zerotier
networking.firewall.allowedUDPPorts = [ 9993 ]; # zerotier