Firewall integrations
import { Steps, Tabs, TabItem, Aside } from ‘@astrojs/starlight/components’;
Suricatavel integrates directly with perimeter firewalls to enforce network containment and block hostile traffic detected by Suricata sensors or threat intelligence feeds.
Supported integrations
Section titled “Supported integrations”Suricatavel supports the following firewall platforms:
- pfSense: Integrates via the pfSense REST API (requires the
pfsense-apipackage). - OPNsense: Integrates via the native OPNsense REST API (manages firewall Aliases).
- OpenWrt: Integrates via SSH/LuCI and
uci/nftablescommands. - MikroTik RouterOS: Integrates via the RouterOS v7+ REST API (manages dynamic
address-listentries and filter rules). - Generic Linux: Integrates via SSH to manage
nftablessets oripset.
Connecting a firewall
Section titled “Connecting a firewall”To connect a new firewall to Suricatavel:
Suricatavel tests the connection immediately to verify credentials and fetch adapter health.
Generic Linux with nftables
Section titled “Generic Linux with nftables”Suricatavel adds and removes addresses in two sets, and never creates sets or rules: IPv4 addresses go to the set configured for the firewall (suricatavel_blocklist by default) and IPv6 addresses to the same name with _v6. Create both, with timeouts, and a rule that drops what each one holds, in the table of the firewall (inet filter by default):
nft add set inet filter suricatavel_blocklist '{ type ipv4_addr; flags timeout; }'nft add set inet filter suricatavel_blocklist_v6 '{ type ipv6_addr; flags timeout; }'nft add rule inet filter input ip saddr @suricatavel_blocklist dropnft add rule inet filter input ip6 saddr @suricatavel_blocklist_v6 dropAdd the same rules to the forward chain when the host routes traffic, and keep everything in /etc/nftables.conf so it survives a reboot. An ip table needs only the IPv4 set and an ip6 table only the _v6 one. The firewall shows as unhealthy until its sets exist with these types and timeouts and a drop or reject rule matches each.
Logging in without root (iptables, nftables and pf)
Section titled “Logging in without root (iptables, nftables and pf)”Suricatavel can drive an iptables, nftables or pf (FreeBSD) host as an SSH user that is not root. Use a dedicated user with no other sudo rights and click Provision on the firewall. With any SSH user but root, Suricatavel runs the firewall commands through the helper; with root, it runs them directly:
- The helper. Provisioning installs
/usr/local/sbin/suricatavel-fw, owned by root, plus a sudoers rule that lets that user run it, and nothing else, without a password. To become root during provisioning, it uses the same escalation as sensors: the Privilege escalation method (automatic, sudo or su) and, when it differs from the SSH password, the Escalation password (the root password for su). - Why not sudo on iptables or nft. A passwordless sudo rule on
iptables,nftorpfctlthemselves is close to root:iptables --modprobe=<program>runs any program, andnft -forpfctl -fprint the contents of any file in their errors. - What the helper allows. It does only what Suricatavel needs: list, insert and delete rules of a chain with a
DROPorREJECTtarget, get, add, delete and list the elements of an nftables set, and add, delete and list the addresses of a pf table. It checks every argument and refuses anything else. - What it does not do. The chain, the sets, the pf table and their drop rules are still yours to create.
Firewall actions
Section titled “Firewall actions”You can enforce containment blocks manually or automatically through Policies and Drongo.
Blocking an IP address
Section titled “Blocking an IP address”To manually block an address:
- Navigate to Firewalls > Actions (or click Block IP directly from any Event or Alert).
- Click New action.
- Select the target Firewall.
- Choose the action scope:
- Source IP: Blocks incoming traffic originating from the malicious address.
- Destination IP: Blocks outbound traffic targeting the address.
- Both: Restricts both traffic directions.
- Configure the TTL (Time to live):
- Enter a duration in seconds for a temporary ban (e.g.,
3600for 1 hour). - Leave empty or set to
0to use the Default TTL of the firewall, or a permanent ban when it has none.
- Enter a duration in seconds for a temporary ban (e.g.,
- Click Save.
The action is dispatched to the selected firewall immediately, and its status is recorded in Firewalls > History.
Automatic TTL expiration and pruning
Section titled “Automatic TTL expiration and pruning”Each firewall has a Default TTL and a Max TTL, both optional. A block without a TTL takes the default, and the maximum caps every block on that firewall, permanent ones included. The block keeps the TTL that results, and Suricatavel tracks its expiry:
- A new block of an address never shortens a longer one, and a permanent one stays permanent until it is unblocked.
- MikroTik address lists and nftables sets also expire the entry on the device.
- pfSense, OPNsense and OpenWrt have no timeouts. On every firewall, the scheduled
suricatavel:prune-expired-blockscommand unblocks expired addresses every minute, so blocks there expire only while the scheduler and the firewall queue are running.
Unblocking an address
Section titled “Unblocking an address”To release an active block:
- Navigate to Firewalls > Actions.
- Locate the active rule in the list.
- Click Unblock.
The rule is removed from the target firewall adapter immediately, and the action history is updated.
Domain feeds
Section titled “Domain feeds”Suricatavel publishes an active domain feed endpoint listing malicious domains identified by threat feeds and alerts. This endpoint is designed for firewall packages such as pfBlockerNG on pfSense, OPNsense Aliases, or MikroTik DNS address lists.
Feed endpoint
Section titled “Feed endpoint”GET /api/v1/feeds/domains?token=YOUR_PERSONAL_ACCESS_TOKENThe response returns a plain text list of domains, formatted one entry per line.

