aboutsummaryrefslogtreecommitdiffstats
path: root/tests/qemu/debug.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-21 13:08:29 +0000
committertv <tv@krebsco.de>2026-11-21 13:08:29 +0000
commit4e480218c0777ba9342ce2edd3b00ff3488229b2 (patch)
treef516784f946504113579af05da441ae8b46faa4b /tests/qemu/debug.nix
parent0c8d9e30cb8fb9b42d1093540a2b73901c770fc5 (diff)
host: guests can check what their egress allows, fc-egress check
So a guest can know beforehand whether it gets somewhere, instead of finding out by timeouts and retries, and can tell which rule it lacks. nginx answers POST http://172.16.0.1/check (the guests' port 80 of 172.16.0.1 gets redirected to 172.16.0.1:checkPort, default 10080; plain HTTP anywhere else stays refused): URIs one per line, at most 100, and true or false for each, a line each, by the same rules as the egress: whole domains and path rules for https://HOST[/PATH] (port 443 only), and for tcp:// and udp://HOST:PORT the list's rules, with names as resolved for the guest's tap (its hosts file), but not to denyDestinations or the host's own addresses on fcbr0, and not to tcp port 443, which goes to the proxy. Read-only, about the asking guest's own list only (by its address, as for its egress), and rate-limited. In the guest, fc-egress check URI... asks that, over bash's /dev/tcp, as the guest may have no HTTP client, and prints true or false and the URI, a line each; exit status 0 if all are allowed, 1 if not, 2 on errors.
Diffstat (limited to 'tests/qemu/debug.nix')
0 files changed, 0 insertions, 0 deletions