Dynamic aliases
A dynamic alias fills itself from an external source and refreshes on a schedule: a block list feed, DNS names, the networks of a country, or a cloud provider’s published ranges. Hosts that use it get new networks live, without a redeploy, where the backend allows it.
Sources
Section titled “Sources”| Source | Configuration | Default refresh |
|---|---|---|
| URL feed | An http(s) URL; one IP or CIDR per line, text after # or ; ignored. Examples: Spamhaus DROP, FireHOL lists, your own list. |
24 h |
| DNS names | Host names, resolved by the FireHawk server: A records, and AAAA with Include IPv6. | 1 h |
| GeoIP countries | ISO 3166 country codes such as fr, de, be, lists from ipdeny.com. |
24 h |
| Cloud provider ranges | Amazon Web Services (services such as EC2, regions such as eu-west-1), Google Cloud (regions), Cloudflare, GitHub (services such as hooks, actions; required). Empty services or regions mean all. |
24 h |
Include IPv6 is offered for DNS, GeoIP and cloud sources.
Create a dynamic alias
Section titled “Create a dynamic alias”- Open Aliases, enter a Name and choose a Source other than Static list.
- Fill in the source fields.
- Set Refresh every (minutes), or leave it empty for the default.
0means manual refresh only. - Click Test source to see what the source returns (count and a sample) without saving.
- Click Create alias. FireHawk fetches it right away; if the first fetch fails, the alias is saved and the error is shown.
The list shows the source, the refresh interval, last fetch with its status, and the last error.
Refresh
Section titled “Refresh”The workers refresh each alias when its interval has passed. Refresh on the alias fetches it now.
Fetched values are validated, de-duplicated and aggregated (adjacent networks are merged). Limits: 20 MB per download, 65536 networks after aggregation.
A failed refresh never empties an alias. A failed download or an empty result keeps the previous values, shows the error on the alias and records alias.refresh_failed in the audit log (it can be sent as a notification).
Live updates
Section titled “Live updates”When the values change, every host whose enabled rules use the alias as source or destination is updated in place:
| Host | Live update |
|---|---|
| iptables with ipset | The new set is loaded from an uploaded file (ipset restore) into a temporary set and swapped in atomically (ipset swap). |
| nftables | One nft -f transaction flushes and refills the alias’s named sets (fh_<alias>, fh_<alias>_6, declared with flags interval; auto-merge in each table that uses the alias). |
After the update FireHawk saves the boot persistence again and, if the host was in sync, refreshes its drift baseline. Rules are never touched by a live update, only set contents.
What is not updated live
Section titled “What is not updated live”These hosts show undeployed changes instead, until their next deploy:
- ufw and firewalld hosts;
- iptables hosts without ipset;
- hosts never deployed by FireHawk;
- hosts using the alias in a NAT rule;
- hosts where the alias gained or lost an address family (IPv4 or IPv6), since the rules themselves change.
An alias that includes a dynamic alias is updated the same way when its resolved values change.
Per-host report
Section titled “Per-host report”Details on the alias shows Last update of the hosts: each host with its result (updated, failed, or why it needs a deploy). The audit log records alias.push and alias.push_failed.
Exports
Section titled “Exports”- Template exports carry a dynamic alias’s current values as a static alias.
- Configuration exports keep the source and its settings.
