Skip to main content

EGR064 - Windows Firewall Rule Not on the Host

Uploading.Agent error code #EGR064 indicates that no Windows Firewall rule on the agent host has the name a Windows egress knoc gives in Rule.. A knoc on Use an existing firewall rule admits granted accounts by adding them as exceptions to an outbound Block rule you created, and the agent never creates that rule. With no rule to add them to, the grant is refused.

A knoc on Create a new firewall rule reports this code only when one of its kk_egress_ rules disappeared between the agent creating it and writing the grant. The agent creates it again on its next write.

A revoke on a knoc whose rule is gone succeeds: the exceptions went with the rule.

Common causes include:

    The rule was never created on this host, or was created on another bastion The rule was deleted, or renamed, after the knoc was set up The knoc's Rule has a typing mistake, or a difference in spacing or case. Windows matches rule names exactly The rule is delivered by a Group Policy that has not applied to this host yet

    Steps to Resolve

    Find the Rule

    From an elevated PowerShell prompt on the agent host:

    Get-NetFirewallRule -Direction Outbound -Action Block | Select-Object DisplayName, Enabled, Profile
    

    The knoc form's Rule list shows those whose name starts with kk_ or kn_ (the agent's WindowsRulePrefixes), as the agent last reported them.

    Create the Rule

    Create an outbound Block rule for the knoc's destinations, with the name the knoc gives:

    New-NetFirewallRule -DisplayName "kk_bastion_egress" -Direction Outbound -Action Block `
        -RemoteAddress 10.20.0.0/24 -Protocol TCP -RemotePort 22 `
        -LocalUser "O:SYG:SYD:(D;;CC;;;LS)(D;;CC;;;NS)(A;;CC;;;WD)"
    

    Or pick an existing rule for the knoc in its Rule field, or switch the knoc to Create a new firewall rule and give its destinations, and save.