Skip to main content

EGR065 - Windows Firewall Rule Is Not an Outbound Block Rule

Uploading..Agent error code #EGR065 indicates that the Windows Firewall rule a Windows egress knoc names is an inbound rule, or an Allow rule. The agent admits a granted account by making it an exception to a rule that blocks outbound connections, so on an inbound rule the exception would do nothing, and on an Allow rule it would take access away. The grant is refused.

Common causes include:

    The knoc names the inbound rule that protects the bastion's own RDP or SSH port, which belongs on a Windows Firewall knoc instead The rule was created with Allow the connection rather than Block the connection The rule's action was changed after the knoc was set up

    Steps to Resolve

    Check the Rule

    Get-NetFirewallRule -DisplayName "kk_bastion_egress" | Select-Object DisplayName, Direction, Action
    

    Direction must be Outbound and Action Block.

    Fix the Rule or the Knoc

    Change the rule's action to Block the connection on its General tab in Windows Defender Firewall with Advanced Security, or create a new outbound Block rule for the destinations and name it in the knoc's Rule field.