Skip to main content

EGR055 - Failed to Admit the Local Account

Uploading...Agent error code #EGR055 indicates that the agent resolved the user's account and checked its uid, but the firewall refused to admit it. The account has not been given egress access.

On nftables each egress knoc names a users set in your own table, such as inet:filter:knocknoc_egress_users, and a grant adds the account's uid to it. A missing users set is #EGR061, so this code points at nft refusing the change. On iptables a grant is a rule in the knoc's chain, and a missing chain is #EGR059. On pf a grant is a rule in the knoc's anchor under knocknoc_egress/grants, and this code means pfctl refused to load it.

On Windows a grant is an exception for the account on the knoc's outbound Block rule, on its Local principals tab. This code there means Windows refused the change to the rule.

Common causes include:

    The ruleset was being replaced at the same moment, for example by a firewall reload nft returned an error the agent did not recognise The kernel is out of memory for sets, or limits the number of elements

    Steps to Resolve

    Look at the Set

      Run knocker status egress and find the knoc's users set List it directly, with the family, table and name the knoc's Users set gives: sudo nft list set inet filter knocknoc_egress_users Check it is declared typeof meta skuid; flags timeout;. Validate integration checks this too

      Check the Agent Log

      The agent logs the exact nft error against the failed grant:

      sudo journalctl -u knocknoc-agent --since "10 minutes ago" | grep -i egress
      

      On Windows

      Read the agent log, in C:\Program Files (x86)\Knocknoc-Agent\logs by default, for the error Windows returned against the failed grant. Check the Knocknoc Agent service logs on as Local System, and that no Group Policy manages the rule: a rule delivered by Group Policy cannot be changed on the host.

      Retry

      Ask the user to request access again. A firewall reload that ran at the same moment is over by then.