Error Adding Firewall Rule in vCenter VAMI: Unexpected error occurred while adding the firewall rule. Error in method invalid ip or prefix entered.
search cancel

Error Adding Firewall Rule in vCenter VAMI: Unexpected error occurred while adding the firewall rule. Error in method invalid ip or prefix entered.

book

Article ID: 393251

calendar_today

Updated On:

Products

VMware vCenter Server VMware vCenter Server 7.0 VMware vCenter Server 8.0

Issue/Introduction

Unable to add, edit, or remove firewall rules in vCenter. 

When attempting to add, edit, remove or reorder a firewall rule, the following error appears in the VAMI:

 

Environment

  • VMware vCenter Sever 8.0

Cause

This issue may occur due an previously or new firewall rule added with incorrect IP address or prefix. 

Resolution

  • Connect to vCenter via SSH.
  • Enter shell mode.
  • Backup the current firewall configuration:
    • cd /etc/vmware/appliance/
    • cp firewall.conf firewall.conf.bak
  • Identify the firewall rule with invalid IP address or prefix.
  • Remove it from the rules.
  • Test the firewall settings by making a change in the VAMI interface. 

Additional Information