Suspend or retire a firewall
Retire a firewall
Section titled “Retire a firewall”Use this when a firewall is replaced or decommissioned.
-
Remove the agent from the firewall (if you still have access). As root:
Terminal window pkg delete pfSense-pkg-nats-agentThis stops the agent, removes its service, binary and
/usr/local/etc/nats-agent/(including its credentials). It leaves the package’s saved settings in the pfSense configuration and the log file/var/log/nats_agent.log. -
Delete the device in pfCentral. Open the device, then More → General Setup. In the Danger zone, click Delete device and confirm. You need the admin role.
This deletes the device’s connect-secret, removes it from the fleet, and writes an audit record. It cannot be undone; to bring the firewall back, add and enroll it again.
Cut off a compromised or stolen firewall
Section titled “Cut off a compromised or stolen firewall”Deleting the device stops it from connecting again. But its current hourly pass stays valid until it expires, so a connected agent can keep answering requests for up to one hour.
- Delete the device in pfCentral, as above.
- Drop the connection now: block the firewall’s public IP address on port 24222 at your edge, or restart pfCentral to drop all connections (healthy firewalls reconnect within seconds).
- If you suspect the server’s sentinel credentials leaked with the device, know that they are useless on their own: they grant no permissions without a valid connect-secret.
Remove pfCentral from a firewall but keep the device
Section titled “Remove pfCentral from a firewall but keep the device”If you want to stop managing a firewall for a while, stop the agent on it: Services → pfCentral → Status → Stop, or service nats_agent stop. pfCentral shows it offline. Start it again to reconnect; no new token is needed.