diff options
| author | tv <tv@krebsco.de> | 2026-11-20 03:23:11 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-20 03:23:11 +0000 |
| commit | 3fe39b989ce4cb17ab2586e6c94bba4f0b1a98da (patch) | |
| tree | 5baf1501556ec0c7573c4079b68778e58ac6951b /modules/host/egress.lua | |
| parent | 1d8327ebfa7bc859ecafb0629c93e756b0b10357 (diff) | |
fc-egress log: URIs, as rules take them
So a log line's destination can be copied into fc-egress allow: HTTPS
connections now log https://SERVER, decrypted requests METHOD
https://HOST/URI, and fc-egress log adds tcp://DST:PORT (or udp://)
after the tap to the kernel's lines for other connections.
Diffstat (limited to 'modules/host/egress.lua')
| -rw-r--r-- | modules/host/egress.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/host/egress.lua b/modules/host/egress.lua index 37411df..172805a 100644 --- a/modules/host/egress.lua +++ b/modules/host/egress.lua @@ -102,11 +102,11 @@ function _M.preread() who = who or "- - -" if p == "pass" then ngx.var.egress_upstream = sni:lower() .. ":443" - ngx.var.egress_log = "ALLOW " .. who .. " " .. sni:lower() + ngx.var.egress_log = "ALLOW " .. who .. " https://" .. sni:lower() elseif p then ngx.var.egress_upstream = "unix:" .. RUN .. "/decrypt-" .. guest.tap .. ".sock" else - ngx.var.egress_log = "DENY " .. who .. " " .. (sni ~= "" and sni or "-") + ngx.var.egress_log = "DENY " .. who .. " " .. (sni ~= "" and "https://" .. sni or "-") return ngx.exit(403) end end |
