forked from clan/clan-core
rework multicast support
This commit is contained in:
parent
059e4efcdc
commit
8658e1694a
@ -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;
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user