VMware VSHIELD APP 1.0 - API Instrukcja Użytkownika Strona 56

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 104
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 55
vShield API Programming Guide
56 VMware, Inc.
Revert to Default Firewall Configuration
Youcanrevertthefirewallconfigurationforthenodetoitsdefaultbydeletingallrulesthatwerecreatedfor
thespecifiedcontextID,includingdefaultrules.ForadatacenterorIPnamespace,afreshsetofdefaultrules
aresubstituted.
Example 6-5. Delete firewall configuration and revert to default
Example:
DELETE https://<vsm-ip>/api/2.0/app/firewall/<contextID>/config
Working with SpoofGuard
ItispossibleforaguestoperatingsystemtospoofitsIPaddresssothatVMwareToolswouldmisreportitto
vCenterServer.TheSpoofGuardfeatureallowsthedatacenteradministratortocertifyandauthorizereported
IPaddresses,andifnecessary,alterthem.ThisisdonebycheckingtheIPaddressagainst
thevirtualmachine’s
MACaddress,whichcomesfromtheVMXandcannotbespoofed.
TheSpoofGuardfeatureisorthogonaltofirewallrules.SpoofGuardblockstrafficifitthinkstheIPisspoofed,
whetherornotfirewallrulessaytoblock.
Retrieve SpoofGuard Global Settings
YoucanretrieveSpoofGuardsettingssuchasthestatus(disabledorenabled),modeofoperation,timestamp,
andpublishingauthority.
Example 6-6. Get SpoofGuard settings
Example:
GET https://<vsm-ip>/api/2.0/spoofGuard/globalSettings
Edit SpoofGuard Global Settings
YoucanmodifytheSpoofGuardsettings.
Example 6-7. Edit SpoofGuard settings
Example:
POST https://<vsm-ip>/api/2.0/spoofGuard/globalSettings
RequestBody:
<VshieldConfiguration xmlns="vmware.vshield.global.20.spoofGuard">
<globalSettings>
<status>enabled</status>
<mode>trustOnFirstUse</mode>
</globalSettings>
</VshieldConfiguration>
Statuscanbeenabledordisabled.ModecanbetrustOnFirstUseormanual.
Retrieve SpoofGuard IP Settings
YoucanretrievealistofSpoofGuardsettings,includedIPaddressessuspectedofbeingforged,thusblocked.
Przeglądanie stron 55
1 2 ... 51 52 53 54 55 56 57 58 59 60 61 ... 103 104

Komentarze do niniejszej Instrukcji

Brak uwag