VMware Cloud Community
rwigand
Contributor
Contributor

firewall rules

hi!

is there a way to set ports or firewall rules with the powerCLI? Only found set-ciAccessControlRules but that doesn't seem to bethe right cmdlet...

thanks. Ralf.

Tags (2)
0 Kudos
6 Replies
Grzesiekk
Expert
Expert

get-command *-vmhostFirewall*

CommandType     Name
-----------     ----
Cmdlet          Get-VMHostFirewallDefaultPolicy
Cmdlet          Get-VMHostFirewallException
Cmdlet          Set-VMHostFirewallDefaultPolicy
Cmdlet          Set-VMHostFirewallException

--- @blog https://grzegorzkulikowski.info
0 Kudos
rwigand
Contributor
Contributor

ah, sorry, forgot to mention that I want to do this for a vDC of an Organisation in the vCloud Director. If you right-click on a network in an organisations vDC you get the "services and config settings for DHCP, Firewall, NAT and so on. Question is how to access this settings?

ciao, ralf

0 Kudos
Grzesiekk
Expert
Expert

Ahh, ok Smiley Wink , then i dont know it sorry Smiley Wink

--- @blog https://grzegorzkulikowski.info
0 Kudos
rwigand
Contributor
Contributor

Ahm, nobody here to help me?  Found this here:

http://www.vmware.com/support/vcd/doc/rest-api-doc-1.5-html/types/FirewallRuleType.html

but I am not sure if this solves my needs and (since I am a newbie) how to implement this in Powershell...

Help!

ciao, ralf

0 Kudos
RvdNieuwendijk
Leadership
Leadership

I moved your question from the PowerShellers group to the vCloud Director PowerCLI communities for better exposure.

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition
0 Kudos
jake_robinson_b
Hot Shot
Hot Shot

Hi Ralf,

You are on the right track. See if this helps you: http://geekafterfive.com/2012/04/24/deepdive-vcloud-vapp-networks/

Cheers,

Jake

Jake Robinson VCP, vExpert - geekafterfive.com - Twitter: @jakerobinson
0 Kudos