aboutsummaryrefslogtreecommitdiffstats
path: root/modules/host/egress.lua
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-16 20:53:54 +0000
committertv <tv@krebsco.de>2026-11-16 21:54:59 +0100
commitb4ddbaa1baddaec5411e172e0823b6f5016c5545 (patch)
treee01a70665330afec7ca88151fc563ba7ee66ed76 /modules/host/egress.lua
parentdb25a69ff062f392810a418f17c999c80bd20842 (diff)
egress through nginx+lua, with path rules
OpenResty replaces the plain nginx SNI proxy, and egress.lua decides by server name and the rules in /var/lib/fc-egress/allowed: DOMAIN passes the domain and its subdomains through without decrypting; DOMAIN/PREFIX decrypts, with certificates made on the fly from the host's own CA, and only forwards requests whose path starts with PREFIX. Upstream is always port 443 of the server name, as resolved by the host, and its certificate gets verified. The rules get read on every connection, so the path unit and reloads are gone. The CA certificate gets published as /var/lib/fcbr0-egress/ca.pem, and the guest trusts it when built on the host.
Diffstat (limited to 'modules/host/egress.lua')
0 files changed, 0 insertions, 0 deletions