Dynamic Firewall Rules: Implicit and Explicit Network Access for tiCrypt VMs
A dynamic firewall rule, called a VM access rule in tiCrypt, lets a VM reach one outside server, such as a license server, on chosen ports. It is a narrow exception to tiCrypt's default of blocking all outbound traffic from secure VMs. A super-admin writes the rule once. From then on, tiCrypt opens and closes the path by itself as VMs start and stop and as users open and close access, so nobody has to edit the firewall by hand. Any server and port that no rule names stays unreachable.
- The problem: secure VMs have no outbound network access, yet research software often needs a license server, an activation service or a package repository.
- The global list: the Licensing Servers list opens each server to every VM, all the time.
- What dynamic rules change: a server opens only to the VMs that need it, and only while they need it. Everything else stays blocked.
- Scope: one rule covers chosen VMs, one server, and the ports and protocol you set.
- Implicit rules: always on while the VM runs. Example: a license server the software checks at start-up.
- Explicit rules: off until a user opens access, then closed again after the time limit the rule sets. Example: a vendor's activation server used once a year.
- Mechanism: nftables on the firewall host. The backend sends the full list of allowed VM-to-server connections to the
ticrypt-nftservice every 5 minutes and right away after any change. Entries expire after 10 minutes unless renewed, so access fails closed. - Who does what: super-admins create rules. Users who can see a VM open and close access on its explicit rules. Only rule setup is logged.
