VMware Cloud Community
zemotard
Hot Shot
Hot Shot

How to disable ESX firewall

Hi, I have to do some test, could you tell me how can I disable the firewall for all ports in and out ?

Regards

Best Regards If this information is useful for you, please consider awarding points for "Correct" or "Helpful".
0 Kudos
4 Replies
FredPeterson
Expert
Expert

esxcfg-firewall -allowOutgoing

esxcfg-firewall -allowIncoming

0 Kudos
wobbly1
Expert
Expert

esxcfg-firewall -u and esxcfg-firewall -e to reload it and the IP tables afterwards

Message was edited by:

wobbly1

0 Kudos
zemotard
Hot Shot
Hot Shot

This parameter is save for ever ? Or I have to set it each reboot of esx ?

Best Regards If this information is useful for you, please consider awarding points for "Correct" or "Helpful".
0 Kudos
admin
Immortal
Immortal

If you want it live through a reboot

chkconfig firewall --level 2345 off

To turn it all back on

chkconfig firewall --level 2345 on

/usr/sbin/esxcfg-firewall --BlockIncoming

/usr/sbin/esxcfg-firewall --BlockOutgoing

0 Kudos