EGR068 - A Destination Holds the Knocknoc Server
Uploading...Agent error code #EGR068 indicates that one of a Windows egress knoc's destinations contains the address of a Knocknoc server the agent connects to, or of the proxy it connects through. Validate integration reports it for a knoc on Create a new firewall rule, and the agent refuses the knoc's grants with it rather than create the rules. The agent checks the address it is connected to as well as what the server's name resolves to, so the check still works when DNS does not.
The rules Knocknoc creates block every account on the host, SYSTEM included, and the agent service runs as SYSTEM. A rule covering the server's address would cut the agent off from the server, and with it every later grant and revoke. Revoking a grant does not cut an open connection, so the agent's current connection carries on, and its next reconnect is refused.
Common causes include:
10.0.0.0/8, that also holds the Knocknoc server
The Knocknoc server runs on one of the hosts the knoc fences
Steps to Resolve
Narrow the Destination
Open the knoc and replace the destination with networks that leave the server's address out, or give the destination ports that the agent's connection does not use. The agent connects to the server on its HTTPS port, 443 unless the agent config names another.
Use Your Own Rule
If the destinations have to cover the server, switch the knoc to Use an existing firewall rule and name an outbound Block rule you create, with SYSTEM as an exception on its Local principals tab. The Windows egress guide describes the rule.