From 37194b5e9f2420e9abde5aa4088c91a1df319a41 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 16 Nov 2026 19:41:59 +0000 Subject: egress through squid with an allowlist managed by fc-egress Instead of forwarding to addresses dnsmasq resolved for allowed names, nothing gets forwarded from fcbr0 any more (and no NAT). The guests use squid on 172.16.0.1:3128 as their proxy, which only allows CONNECT to port 443 of the domains in /var/lib/fc-egress/allowed. That list can be changed at any time with fc-egress (list, allow, deny, log); a path unit makes squid re-read it. DNS answers NXDOMAIN for everything. host.nix no longer takes allowedDomains. --- default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'default.nix') diff --git a/default.nix b/default.nix index 445ddfd..dcd337a 100644 --- a/default.nix +++ b/default.nix @@ -65,8 +65,10 @@ let networking.useDHCP = false; networking.resolvconf.enable = false; - # dnsmasq on the host, see host.nix. + # The way out is squid on the host, and DNS only says NXDOMAIN, see + # host.nix. environment.etc."resolv.conf".text = "nameserver 172.16.0.1\n"; + networking.proxy.default = "http://172.16.0.1:3128"; systemd.network.enable = true; systemd.network.wait-online.enable = false; systemd.network.networks.eth = { -- cgit v1.3.1