Skip to main content

pfSense firewall

v0.4.1

Operate a pfSense firewall over its REST API: read firewall rules, NAT, aliases, virtual IPs, interface / gateway (config + status) / service / VPN status, DHCP leases, routes, ARP, CARP, pf tables, installed packages, the config-change history, and firewall / system / auth / DHCP / OpenVPN 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.

34 allowed by default 2 need approval 1 denied by default
Pack ID
pfsense
Vendor
emisar
OS
linux
Actions
37
Required binaries. Install these on the host before relying on the pack — an action that calls a missing one fails at run time.
curl jq

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:0857d187604a41ed1f9cb3be56f442c9e2abaa428f4b988b6cdd00e51ed6eadc

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

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

Actions 37 total

View on GitHub