diff options
Diffstat (limited to 'modules/host/egress.lua')
| -rw-r--r-- | modules/host/egress.lua | 16 |
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) |
