206001 - pfSense Authentication Failed
Agent error code #206001 indicates that the pfSense REST API rejected the credentials provided by the agent. The API returned HTTP 401 (Unauthorized).
This error is distinct from authorization failures (#206002), which occur when the credentials are valid but lack sufficient permissions. Error #206001 means the API key itself was not accepted.
Common causes include:
- The API key configured in Knocknoc has a typo or trailing whitespace
- The API key was regenerated in pfSense and Knocknoc was not updated
- The user the API key acts as has been disabled in pfSense
- The API key entry was deleted from pfSense
Steps to Resolve
Verify the API Key in Knocknoc
- In the Knocknoc admin interface, navigate to the backend configuration for the affected pfSense Knoc
- Re-enter the pfRest API Key value and save
For more details, see the pfSense setup guide.
Verify the API User on pfSense
- Log into pfSense as an administrator
- Navigate to System > User Manager > Users and confirm the user the API key acts as is enabled
- Navigate to System > API > Keys and confirm an API key entry exists for that user
Regenerate the API Key
If the existing key cannot be verified or is no longer working: