Monday, May 23, 2011

opening and closing Firewall ports

Opening the Firewall ports :
Syntax: esxcfg-firewall --openPort <port_number>,tcp|udp,in|out,<port_name>

Examples :
 root]# esxcfg-firewall --openport 2301,tcp,in,hp-sim
 root]# esxcfg-firewall --openport 514,udp,out,syslog
 root]# esxcfg-firewall --openport 280,tcp,out,sim-cert
 root]# esxcfg-firewall --openport 2381,tcp,in,hpim
Closing the Firewall ports:
Syntax: esxcfg-firewall --closePort <port_number>,tcp|udp,in|out,<port_name>

Example :
 root]#esxcfg-firewall --closePort 6380,tcp,in


service firewall restart
esxcfg-firewall-e| d SERVICE

No comments:

Post a Comment