aboutsummaryrefslogtreecommitdiffstats
path: root/layers/nix.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-17 03:21:39 +0000
committertv <tv@krebsco.de>2026-11-17 03:21:39 +0000
commite80b1cfb826cf2926d0d87007b77cbd6639773b5 (patch)
tree44f1582e04dda3c1f1a3167b21ae231fdec00e2b /layers/nix.nix
parente0640333d0e9eb872a3abf68a9da1685ab570076 (diff)
host: names in tcp:// and udp:// rules
The guests' DNS resolves every name to the host, so ssh somename went to the host, even with a rule for somename's address. Now the rules can take names, tcp://NAME:PORT[-PORT]: the firewall update resolves them on the host (IPv4) into the VM's set, and writes their addresses to a hosts file per tap in /run/fcbr0-hosts, which the guests' dnsmasq reads (--hostsdir; such entries win over address=/#/). A timer resolves them again every 5 minutes. dnsmasq can't tell guests apart, so every guest gets those addresses for those names, but only VMs whose list has the rule can connect. fcbr0-firewall now runs as a static user, fcbr0-firewall, which owns /run/fcbr0-hosts, and may use IPv4 and IPv6 sockets, for resolving.
Diffstat (limited to 'layers/nix.nix')
0 files changed, 0 insertions, 0 deletions