EGR067 - Windows Firewall Rule Belongs to Another Knoc
Agent error code #EGR067 indicates that the Windows Firewall rule a Windows egress knoc names is already used by another knoc. Each knoc owns its rule: the agent adds its granted accounts as exceptions, and a user granted on one knoc would reach the other knoc's destinations through a shared rule. The grant is refused.
The agent tells the knocs apart by a line it adds to the rule's description, knocknoc:<knoc id>. The first knoc to write the rule owns it.
Common causes include:
- Two knocs on the same agent name the same rule. Knocknoc refuses to save that, but a knoc moved from another agent can still arrive with a rule already in use
- A knoc was deleted while the agent was offline, so its line was never removed, and a new knoc was given its rule
- The rule was copied from another host with the line still in its description
Steps to Resolve
Find the Other Knoc
(Get-NetFirewallRule -DisplayName "kk_bastion_egress").Description
The id after knocknoc: is the knoc's id in Knocknoc. Search for it on the Knocs page.
Give Each Knoc Its Own Rule
Create another outbound Block rule and name it in one of the knocs' Rule field.
Remove a Line Left Behind
If the id belongs to no knoc, edit the rule's description in Windows Defender Firewall with Advanced Security and delete the knocknoc: line. Also check its Local principals > Exceptions for accounts that knoc granted, and remove them.