pfSense firewall

v0.1.0

Operate a pfSense firewall over its REST API: read firewall rules, NAT, aliases, interface / gateway / service / VPN status, DHCP leases, routes, ARP, CARP, and logs, plus a few gated mutators (apply filter, flush states, restart a service, reboot). Uses the community pfSense-pkg-RESTAPI package (/api/v2), which runs on the firewall and works across CE and Plus.

Pack ID
pfsense
Vendor
emisar
OS
linux
Actions
22
Required binaries: curl. Actions that call a missing binary fail at run time — install these on the host before relying on the pack.

Install

emisar pack install validates the pack and verifies its content hash before copying it into /etc/emisar/packs. The --hash below pins the install to the exact bytes on this page — a tampered copy is rejected. After install, reload the runner; it re-reads the catalog and advertises every action.

content hash: sha256:b6dc51a0343f8366e1484c98f576adbabfd473117ff5d0a0b35380873ef019b9

on the runner host
sudo emisar pack install pfsense \
  --hash sha256:b6dc51a0343f8366e1484c98f576adbabfd473117ff5d0a0b35380873ef019b9 \
  --dest /etc/emisar/packs

# Reload so the runner re-reads the catalog:
sudo systemctl reload emisar

Actions 22 total

View on GitHub