To restore/fix the firewall changes
Identifying the problem:
- From the vCenter server console run:
iptables -nL | less

To resolve if the iptables service has been enabled:
- Run the following command:
chkconfig iptables off
To resolve if a bad firewall rule was added by mistake:
- Export the firewall rule using:
iptables-save > /var/tmp/iptables.rules.default
- Take backup of exported file:
cp /var/tmp/iptables.rules.default /root/var/tmp/iptables.rules.default.backup
- Edit the file, and check the entire file and each line for the rules specified and then remove the entry as specified above and save the file:
vi /var/tmp/iptables.rules.default
- less the file again and make sure that the entry is gone.
- Now restore the firewall rule by:
iptables-restore < /var/tmp/ iptables.rules.default
- Run 1st command (iptables -nL) again and make sure the rule is not there:
iptables -nL | less
- Once done, wait for a minute or so and we should be start seeing traffic to vCenter IP/FQDN.