VCP4 - firewall cli Flashcards
List services controlled by firewall
esxcfg-firewall -s
List the firewall rules
esxcfg-firewall -q
Enable a service in the firewall
esxcfg-firewall -e {service name}
Disable a service in firewall
esxcfg-firewall -d {service name}
Open a port in the firewall
esxcfg-firewall -o {port, ip protocol, direction, port name}
Port name is optional
Close a port in the firewall
esxcfg-firewall -c {port number, ip protocol, direction, port name}
Port name is optional
List firewall rules for incoming ports
esxcfg-firewall -q incoming
Block all nom-required outgoing firewall ports
esxcfg-firewall –blockOutgoing
Allow all incoming port traffic
esxcfg-firewall –allowIncoming
Reset firewall rules to the defaults
esxcfg-firewall -r
List known firewall services
esxcfg-firewall -s
Step to enable newly modified firewall rules
/etc/init.d/mgmt-vmware restart