DFW Policies in Failed Status with Error Code 1101 - "Failed to process commands by firewall kernel". DFW rules are not realized in some VMs in an ESXi host
search cancel

DFW Policies in Failed Status with Error Code 1101 - "Failed to process commands by firewall kernel". DFW rules are not realized in some VMs in an ESXi host

book

Article ID: 462119

calendar_today

Updated On:

Products

VMware vDefend Firewall VMware vDefend Firewall with Advanced Threat Prevention

Issue/Introduction

  • DFW Policies are in a "Failed" status in the NSX UI
  • When clicking the "Failed" realization status, you can see the following error for several hosts:

    [Error Code = 1101, Error Message = 'Failed to process commands by firewall kernel'. Affected Entities = '{}']

  • The following is seen in vmkernel.log on the ESXi host:

    2025-09-11T13:18:44.913Z In(182) vmkernel: cpu82:2100975)pfr_attach_table: nic-#######-eth0-vmware-sfw.2: ERROR ***************** local root table <Address Set UUID> not found

    2025-09-11T13:18:44.913Z In(182) vmkernel: cpu82:2100975)pfioctl: DIOCADDRULE failed with error 22

    2025-09-11T13:18:44.913Z In(182) vmkernel: cpu82:2100975)VSIPConversionCreateRuleSet: Cannot insert ## rule #######: 22

    2025-09-11T13:18:44.913Z In(182) vmkernel: cpu82:2100975)pf_rollback_rules: rs_num: 1, anchor: mainrs

    2025-09-11T13:18:44.913Z In(182) vmkernel: cpu82:2100975)pf_rollback_rules: rs_num: 2, anchor: mainrs

    2025-09-11T13:18:44.913Z In(182) vmkernel: cpu82:2100975)pf_rollback_rules: rs_num: 4, anchor: mainrs

    2025-09-11T13:18:44.913Z In(182) vmkernel: cpu82:2100975)pf_rollback_rules: rs_num: 5, anchor: mainrs

    2025-09-11T13:18:44.913Z In(182) vmkernel: cpu82:2100975)pf_rollback_rules: rs_num: 6, anchor: mainrs

    2025-09-11T13:18:45.016Z In(182) vmkernel: cpu82:2100975)pfr_attach_table: nic-#######-eth0-vmware-sfw.2: ERROR ***************** local root table <Address Set UUID> not found

    2025-09-11T13:18:45.016Z In(182) vmkernel: cpu82:2100975)pfioctl: DIOCADDRULE failed with error 22

    2025-09-11T13:18:45.016Z In(182) vmkernel: cpu82:2100975)VSIPConversionCreateRuleSet: Cannot insert ## rule #######: 22

    2025-09-11T13:18:45.016Z In(182) vmkernel: cpu82:2100975)pf_rollback_rules: rs_num: 1, anchor: mainrs

    2025-09-11T13:18:45.016Z In(182) vmkernel: cpu82:2100975)pf_rollback_rules: rs_num: 2, anchor: mainrs

    2025-09-11T13:18:45.016Z In(182) vmkernel: cpu82:2100975)pf_rollback_rules: rs_num: 4, anchor: mainrs

    2025-09-11T13:18:45.016Z In(182) vmkernel: cpu82:2100975)pf_rollback_rules: rs_num: 5, anchor: mainrs

    2025-09-11T13:18:45.016Z In(182) vmkernel: cpu82:2100975)pf_rollback_rules: rs_num: 6, anchor: mainrs
  • Issue the following command as root user on an impacted ESXi host:

    /opt/vmware/nsx-nestdb/bin/nestdb-cli --beautify --json --cmd get vmware.nsx.nestdb.GlobalConfigMsg | grep global_addrset_mode_enabled

    The returned value for global_addrset_mode_enabled is true

  • Issue the following command as root user on an impacted ESXi host:

    vsipioctl getkifflags -f <Filtername>

    [root@ESX:~] vsipioctl getkifflags -f nic-XXXXXXXX-eth0-vmware-sfw.2 | grep GLOBAL

        PF_KIF_FLAG_GLOBAL_TABLES                0

Some filters return value of 0 and some filters return value of 1.

  • There is a KB with the same alarm in UI and different symptom:
    https://knowledge.broadcom.com/external/article/410585
    The difference between these 2 KBs is that DFW rules are not realized in some VMs in an ESXi host in this KB and that DFW rules are not realized in all VMs in an ESXi host in KB 410595 

Environment

  • VMware NSX 9.1.0 to 9.1.1.x.
  • DFW is enabled.
  • E-W Network Introspection (also known as Service Insertion) is enabled

Cause

When bringing up a filter (e.g. vMotion, realize a DFW policy, etc), there is a race condition between slot 2 (used by DFW) and slot 12 (used by E-W Network Introspection) which may result in PF_KIF_FLAG_GLOBAL_TABLES on slot 2 getting incorrectly assigned to 0.

Resolution

This issue will be fixed in an upcoming release.

Workaround:

  1. Disable E-W Network Introspection or put affected VMs in E-W Network Instrospection Exclusion List. In UI, Security->E-W Network Introspection->ACTIONS->Deactivate E-W Network Introspection or Exclusion List
  2. Publish a configuration change in DFW.