diff options
| author | tv <tv@krebsco.de> | 2026-11-16 19:41:59 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-16 20:57:40 +0100 |
| commit | 37194b5e9f2420e9abde5aa4088c91a1df319a41 (patch) | |
| tree | 09523f6bbfea7dd3fdb08b653fab56be51ab3962 /default.nix | |
| parent | ac5a3985620a59651e7c5bcb676f883e3fedd39b (diff) | |
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.
Diffstat (limited to 'default.nix')
| -rw-r--r-- | default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
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 = { |
