VMware Cloud Community
NeenaJim
Enthusiast
Enthusiast
Jump to solution

vCenter Firewall

Is it possible to add the firewall rules for vCenter via any script?

-Connect to the vCenter VAMI (port 5480)

-Select Firewall

-Add the rules by Providing the values (Network Interface, IP Address, Subnet Prefix Length and Action)

-Click Save

 

Reply
0 Kudos
1 Solution

Accepted Solutions
NeenaJim
Enthusiast
Enthusiast
Jump to solution

This is what I got it to work"

cd /etc/vmware/appliance
vim firewall.conf
/usr/lib/applmgmt/networking/bin/firewall-reload

View solution in original post

Reply
0 Kudos
3 Replies
maksym007
Expert
Expert
Jump to solution

Reply
0 Kudos
NeenaJim
Enthusiast
Enthusiast
Jump to solution

I am sorry, I am unable to follow those commands.

After I connect the vCenter using root account via putty session, if I enter this command:

GET https://vCenterFQDN/api/appliance/networking/firewall/inbound

then I am getting this message: -bash: GET: command not found

Can you please help me what exact command I can run?

Reply
0 Kudos
NeenaJim
Enthusiast
Enthusiast
Jump to solution

This is what I got it to work"

cd /etc/vmware/appliance
vim firewall.conf
/usr/lib/applmgmt/networking/bin/firewall-reload
Reply
0 Kudos