rework multicast support
This commit is contained in:
parent
059e4efcdc
commit
8658e1694a
|
@ -74,14 +74,9 @@
|
||||||
systemd.services.NetworkManager-wait-online.enable = false;
|
systemd.services.NetworkManager-wait-online.enable = false;
|
||||||
systemd.network.wait-online.enable = false;
|
systemd.network.wait-online.enable = false;
|
||||||
|
|
||||||
systemd.network.networks."99-ethernet-default-dhcp".networkConfig = {
|
systemd.network.networks."99-ethernet-default-dhcp".networkConfig.MulticastDNS = lib.mkDefault "yes";
|
||||||
MulticastDNS = lib.mkDefault "yes";
|
systemd.network.networks."99-wireless-client-dhcp".networkConfig.MulticastDNS = lib.mkDefault "yes";
|
||||||
LLMNR = lib.mkDefault "yes";
|
networking.firewall.allowedUDPPorts = [ 5353 ]; # Multicast DNS
|
||||||
};
|
|
||||||
systemd.network.networks."99-wireless-client-dhcp".networkConfig = {
|
|
||||||
MulticastDNS = lib.mkDefault "yes";
|
|
||||||
LLMNR = lib.mkDefault "yes";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Use networkd instead of the pile of shell scripts
|
# Use networkd instead of the pile of shell scripts
|
||||||
networking.useNetworkd = lib.mkDefault true;
|
networking.useNetworkd = lib.mkDefault true;
|
||||||
|
|
|
@ -103,7 +103,6 @@ in
|
||||||
systemd.network.networks."09-zerotier" = {
|
systemd.network.networks."09-zerotier" = {
|
||||||
matchConfig.Name = "zt*";
|
matchConfig.Name = "zt*";
|
||||||
networkConfig = {
|
networkConfig = {
|
||||||
LLMNR = true;
|
|
||||||
LLDP = true;
|
LLDP = true;
|
||||||
MulticastDNS = true;
|
MulticastDNS = true;
|
||||||
KeepConfiguration = "static";
|
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.allowedTCPPorts = [ 9993 ]; # zerotier
|
||||||
networking.firewall.allowedUDPPorts = [ 9993 ]; # zerotier
|
networking.firewall.allowedUDPPorts = [ 9993 ]; # zerotier
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user