This commit is contained in:
@@ -175,8 +175,8 @@ in
|
|||||||
# Enable systemd-networkd for bridge management
|
# Enable systemd-networkd for bridge management
|
||||||
systemd.network.enable = true;
|
systemd.network.enable = true;
|
||||||
|
|
||||||
# Don't let systemd-networkd-wait-online block boot on bridge
|
# TODO: re-enable once primary networking uses networkd
|
||||||
systemd.network.wait-online.ignoredInterfaces = [ cfg.bridgeName ];
|
systemd.network.wait-online.enable = false;
|
||||||
|
|
||||||
# Tell NetworkManager to ignore VPN bridge and container interfaces
|
# Tell NetworkManager to ignore VPN bridge and container interfaces
|
||||||
networking.networkmanager.unmanaged = mkIf config.networking.networkmanager.enable [
|
networking.networkmanager.unmanaged = mkIf config.networking.networkmanager.enable [
|
||||||
|
|||||||
@@ -40,7 +40,6 @@ let
|
|||||||
Gateway = cfg.vpnAddress;
|
Gateway = cfg.vpnAddress;
|
||||||
DNS = [ cfg.vpnAddress ];
|
DNS = [ cfg.vpnAddress ];
|
||||||
};
|
};
|
||||||
linkConfig.RequiredForOnline = "no";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# DNS through VPN container (queries go through WG tunnel = no DNS leak)
|
# DNS through VPN container (queries go through WG tunnel = no DNS leak)
|
||||||
|
|||||||
@@ -81,9 +81,11 @@ in
|
|||||||
Address = "${cfg.vpnAddress}/${cfg.subnetPrefixLen}";
|
Address = "${cfg.vpnAddress}/${cfg.subnetPrefixLen}";
|
||||||
DHCPServer = false;
|
DHCPServer = false;
|
||||||
};
|
};
|
||||||
linkConfig.RequiredForOnline = "no";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Ignore WG interface for wait-online (it's configured manually, not by networkd)
|
||||||
|
systemd.network.wait-online.ignoredInterfaces = [ cfg.interfaceName ];
|
||||||
|
|
||||||
# Enable forwarding so bridge traffic can go through WG
|
# Enable forwarding so bridge traffic can go through WG
|
||||||
boot.kernel.sysctl."net.ipv4.ip_forward" = 1;
|
boot.kernel.sysctl."net.ipv4.ip_forward" = 1;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user