To list the services currently controlled by the firewall:
#esxcfg-firewall -s
To list the firewall rules:
#esxcfg-firewall -q [servicename]
#esxcfg-firewall -q
Enable a service:
#esxcfg-firewall -e [servicename]
#esxcfg-firewall -e sshClient
Disable a service:
#esxcfg-firewall -d [servicename]
#esxcfg-firewall -d sshClient
Open a port:
#esxcfg-firewall -o 465,tcp,out,out-smtps
Close a port:
#esxcfg-firewall -c 465,tcp,out
Open/Colse all ports:
#esxcfg-firewall --allowIncoming
#esxcfg-firewall --allowOutgoing
No comments:
Post a Comment