aboutsummaryrefslogtreecommitdiffstats
path: root/modules/host/egress.lua
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-25 23:06:46 +0000
committertv <tv@krebsco.de>2026-11-26 00:03:17 +0000
commitb5edf2b27f18f6576d3bcc00f65f95754aec1317 (patch)
tree3fc8423b412a97ce3ee54aeb3cca9ca9cf1277a0 /modules/host/egress.lua
parent23df3da867ec9297f1050dcca14103fddca2153d (diff)
rigs: the host's names, rig-egress, rigbr0, rigtapN, ...
The host side loses the fc and firecracker, too: rig-egress (the command, also in the guests, and in log lines; /var/lib/rig-egress for the lists, /run/rig-egress for the VMs' choices of list), rig-proxy (the proxy, its user, /run/rig-proxy, and /var/lib/rig-proxy with the CA), rig-firewall, rig-dnsmasq, /run/rig-hosts, /run/rig-addr, the bridge rigbr0 and taps rigtapN, /etc/rig-taps and /etc/rig-vms, config.rig.vms, the nftables tables rigs and rigs-bridge, and egress.lua's RIG_EGRESS_*. The host's own configuration needs the new names, too: its firewall's trusted interface rigbr0, and config.rig.vms.
Diffstat (limited to 'modules/host/egress.lua')
-rw-r--r--modules/host/egress.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/host/egress.lua b/modules/host/egress.lua
index fe626b2..9bcae41 100644
--- a/modules/host/egress.lua
+++ b/modules/host/egress.lua
@@ -21,12 +21,12 @@
local _M = {}
-local RULES = os.getenv("FC_EGRESS_RULES") -- RULES/USER/LIST
-local VMS = os.getenv("FC_EGRESS_VMS") -- VMS/TAP: LIST
-local STATE = os.getenv("FC_EGRESS_STATE") -- ca.key, ca.pem
-local RUN = os.getenv("FC_EGRESS_RUN") -- RUN/decrypt-TAP.sock: the http server
-local ADDR = os.getenv("FC_EGRESS_ADDR") -- ADDR/TAP: ADDRESS, ADDR/ADDRESS: TAP
-local HOSTS = os.getenv("FC_EGRESS_HOSTS") -- HOSTS/TAP: ADDRESS NAME, the tap's rules' names
+local RULES = os.getenv("RIG_EGRESS_RULES") -- RULES/USER/LIST
+local VMS = os.getenv("RIG_EGRESS_VMS") -- VMS/TAP: LIST
+local STATE = os.getenv("RIG_EGRESS_STATE") -- ca.key, ca.pem
+local RUN = os.getenv("RIG_EGRESS_RUN") -- RUN/decrypt-TAP.sock: the http server
+local ADDR = os.getenv("RIG_EGRESS_ADDR") -- ADDR/TAP: ADDRESS, ADDR/ADDRESS: TAP
+local HOSTS = os.getenv("RIG_EGRESS_HOSTS") -- HOSTS/TAP: ADDRESS NAME, the tap's rules' names
-- { addresses = { [ADDRESS] = USER }, taps = { [TAP] = USER },
-- deny = { ADDRESS/PREFIXLEN, ... } }
local owners = require("egress_guests")
@@ -345,7 +345,7 @@ local function within(a, prefix)
end
-- The guest's tcp:// and udp:// rules: { proto, host, from, to }, host an
--- ADDRESS[/PREFIXLEN] or a name, as fcbr0-firewall takes them.
+-- ADDRESS[/PREFIXLEN] or a name, as rig-firewall takes them.
local function port_rules(guest, name)
local list = {}
local f = name and io.open(RULES .. "/" .. guest.user .. "/" .. name)
@@ -365,7 +365,7 @@ local function port_rules(guest, name)
return list
end
--- What the tap's guest gets for names in rules (fcbr0-firewall's hosts
+-- What the tap's guest gets for names in rules (rig-firewall's hosts
-- file for the tap): { [NAME] = { ADDRESS, ... } }; any other name, the
-- guest gets 172.16.0.1.
local function hosts(guest)