How can you combine the firewall command to open port 80 on tcp in and tcp out without having to issue it twice?
esxcfg-firewall -o 80,tcp,in,web
esxcfg-firewall -o 80,tcp,out,web
No. Because it's completely different situation.
When you open in port - you allow to access port 80 on local machine from the network. When you open out port - you allow to access port 80 on remote machines from the local machine. Usually there is no need to open both in and out ports.
---
MCSA, MCTS, VCP, VMware vExpert '2009
Hello.
Try using the & symbol to combine the two commands:
esxcfg-firewall -o 80,tcp,in,web & esxcfg-firewall -o 80,tcp,out,web
Good Luck!
No. Because it's completely different situation.
When you open in port - you allow to access port 80 on local machine from the network. When you open out port - you allow to access port 80 on remote machines from the local machine. Usually there is no need to open both in and out ports.
---
MCSA, MCTS, VCP, VMware vExpert '2009
