aboutsummaryrefslogtreecommitdiffstats
path: root/modules/host/default.nix
Commit message (Collapse)AuthorAgeFilesLines
* per-user egress rulestv10 days1-45/+105
| | | | | | | | | | | | | The host module takes users = { NAME = TAPS; ... } instead of a single user: each user gets that many taps, and rules of their own, in /var/lib/fc-egress/USER/allowed, managed with fc-egress as before. The proxy tells whose a guest is by its address: each tap has a fixed one, handed out by dnsmasq by MAC address (derived from the tap's number, as the run script does), and the bridge drops anything a guest sends from another address. The decrypting server gets a socket per user, as it can't see the guest's address. The run script only takes the user's own taps.
* move the host module to modules/hosttv10 days1-0/+316
egress.lua goes along. The host now imports it as (import .../modules/host { user = ...; }).