
VMware, Inc. 51
6
YoucanconfigurevShieldAppfirewallrulesandsyslogservicebyusingRESTAPIcalls.
Thischapterincludesthefollowingtopics:
“ConfiguringFirewallRulesforavCenterContainer”onpage 51
“ManagingSecurityGroups”onpage 56
“ConfiguringSyslogServiceforavShieldApp”onpage 59
Configuring Firewall Rules for a vCenter Container
TheprimaryfunctionofavShieldAppistoprovidefirewallprotectiononanESXhostbyinspectingeach
sessionandreturningdetailstothevShieldManager.Trafficdetailsincludesources,destinations,directionof
sessions,applications,andportsbeingused.Trafficdetailscanbeusedtocreatefirewallallowordeny
rules.
InthevShieldManageruserinterfaceorvSphereClientplug‐in,theAppFirewalltabcontainsthefirewall
rulesenforcedbyvShieldAppinstances.YoucanmanageAppFirewallrulesatthedatacenter,cluster,and
portgrouplevelstoprovideaconsistentsetofrulesacrossmultiplevShieldApp
instancesunderthese
containers.Asmembershipinthesecontainerscanchangedynamically,AppFirewallmaintainsthestateof
existingsessionswithoutrequiringreconfigurationoffirewallrules.Inthisway,AppFirewa lleffectivelyhas
acontinuousfootprintoneachESXhostunderthemanagedcontainers.
WhencreatingAppFirewallrules,youcan
creategeneralrulesbasedon incomingoroutgoingtrafficatthe
containerlev el.Forexample,youcancreatearuletodenyanytrafficfromout si de ofadatacenterthattargetsa
destinationwithinthedatacenter.Youcancreatearuletodenyanyincomingtrafficthatisnottaggedwith
a
VLANID.
Allfirew allrulesconfiguredbyusingRESTrequestsappearundertheAppFirewalltabfortheapprop ria te
containerinthevShieldManageruserinterfaceandvSphereClientplug‐in.
ForthecompletefirewallXMLschema,see“vShieldAppFirewallSchema”onpage 69.
View All Firewall Rules for a Container
Youcanviewallofthefirewallrulesforaspecificcontainer—datacenter,cluster,orportgroup—andanychild
containersbyidentifyingtheMOREFID(container-moref-id)ofthecontainer.Forexample,ifyourequest
therulesetatthedatacenterlevel,theresponseincludestherulesfortheclustersandport
groupswithinthat
datacenter.
Itisgoodpracticetoviewthecurrentfirewallrulesetbeforepostingneworupdatedrules.
vShield App Management
6
IMPORTANTAllvShieldRESTrequestsrequireauthorization.Youcanusethefollowingbasicauthorization:
Authorization: Basic YWRtaW46ZGVmYXVsdA==
YWRtaW46ZGVmYXVsdA==representstheBase64encodingofthevShieldManagerdefaultlogincredentials
(admin:default).
Komentáře k této Příručce