Connection lost
Trying to reconnect…
Server didn't respond
Recovering…
pfSense firewall
v0.1.0Operate 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.
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
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-
GET /api/v2/firewall/aliases
-
POST /api/v2/firewall/apply
-
GET /api/v2/diagnostics/arp_table
-
GET /api/v2/status/carp
-
GET /api/v2/status/dhcp_server/leases
-
GET /api/v2/status/logs/firewall
-
GET /api/v2/firewall/rules
-
DELETE /api/v2/firewall/states
-
GET /api/v2/status/gateways
-
GET /api/v2/status/interfaces
-
GET /api/v2/status/ipsec/sas
-
GET /api/v2/firewall/nat/outbound/mappings
-
GET /api/v2/firewall/nat/port_forwards
-
GET /api/v2/status/openvpn/servers
-
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/status/system
-
GET /api/v2/system/version