Connection lost
Trying to reconnect…
Server didn't respond
Recovering…
pfSense firewall
v0.4.1Operate 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.
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
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-
GET /api/v2/firewall/aliases
-
POST /api/v2/firewall/apply
-
GET /api/v2/diagnostics/arp_table
-
GET /api/v2/status/logs/auth
-
GET /api/v2/status/carp
-
GET /api/v2/system/certificate_authorities
-
GET /api/v2/system/certificates
-
GET /api/v2/diagnostics/config_history/revisions
-
GET /api/v2/system/crls
-
GET /api/v2/status/dhcp_server/leases
-
GET /api/v2/status/logs/dhcp
-
GET /api/v2/status/logs/firewall
-
GET /api/v2/firewall/rules
-
DELETE /api/v2/firewall/states
-
GET /api/v2/routing/gateway/groups
-
GET /api/v2/status/gateways
-
GET /api/v2/routing/gateways
-
GET /api/v2/interfaces
-
GET /api/v2/status/interfaces
-
GET /api/v2/status/ipsec/child_sas
-
GET /api/v2/status/ipsec/sas
-
GET /api/v2/firewall/nat/outbound/mappings
-
GET /api/v2/firewall/nat/port_forwards
-
GET /api/v2/status/logs/openvpn
-
GET /api/v2/status/openvpn/servers
-
GET /api/v2/diagnostics/table
-
GET /api/v2/diagnostics/tables
-
POST /api/v2/diagnostics/reboot
-
POST /api/v2/status/service (restart)
-
GET /api/v2/status/services
-
GET /api/v2/firewall/states/size
-
GET /api/v2/routing/static_routes
-
GET /api/v2/status/logs/system
-
GET /api/v2/system/packages
-
GET /api/v2/status/system
-
GET /api/v2/system/version
-
GET /api/v2/firewall/virtual_ips