
VMware, Inc. 47
Chapter 5 vShield Edge Management
</vshieldEdgeConfig>
Configure VPN
vShieldEdgeagentssupportsite‐to‐siteIPsecVPNbetweenanEdgeapplianceandremotesites.Onbothends,
staticone‐to‐oneNATisrequiredfortheVPNaddress.vShieldEdgeagentssupportpre‐sharedkeymode,
x/5‐0Certificatemode,IPunicasttraffic,andnodynamicroutingprotocolbetween
theEdgeandremoteVPN
routers.BehindeachremoteVPNrouter,youcanconfiguremultiplesubnetstoconnecttheinternalnetwork
behindavShieldEdgethroughIPSectunnels.SubnetsandtheinternalnetworkbehindvShieldEdgemust
havenon‐overlappingaddressranges.
YoucandeployavShieldEdgeagentbehinda
NATdevice,whichtranslatestheEdgeagent’sVPNaddress
intoapublicaccessibleaddressfacingtheInternet;remoteVPNroutersusethispublicaddresstoaccessthe
vShieldEdge.RemoteVPNrouterscanbelocatedbehindaNATdeviceaswell.Youmustprovideboththe
VPNnativeaddressand
theNATpublicaddresstosetupthetunnel.
AllVPNsettingsconfiguredbyusingRESTrequestsappearun der thevShieldEdge>VPNta b forthe
appropriatevShieldEdge inthevShieldManageruserinterfaceandinthevSphereClientplug‐in.
FortheVPNschema,see“vShieldEdgeSchemas”on
page 88.SampleXMLrequestbody:
Example 5-27. Configure a VPN
POST https://<vsm-ip>/api/2.0/networks/<internal-portgroup-vc-moref-id>/edge
<vshieldEdgeConfig xmlns="vmware.vshield.edge.2.0">
<ipsecSiteToSiteConfig>
<globalConfig>
<id>10.112.2.50</id>
<ipAddress>10.112.2.50</ipAddress>
<enableLog>false</enableLog>
</globalConfig>
<siteConfig>
<peerName>site1</peerName>
<peerId>site1</peerId>
<peerIpAddress>10.112.2.145</peerIpAddress>
<localSubnet>192.168.10.0/24</localSubnet>
<peerSubnet>192.168.20.0/24</peerSubnet>
<authenticationMode>psk</authenticationMode>
<preSharedKey>test</preSharedKey>
<encryptionAlgorithm>3des</encryptionAlgorithm>
<enablePfs>true</enablePfs>
<dhGroup>dh2</dhGroup>
</siteConfig>
</ipsecSiteToSiteConfig>
</vshieldEdgeConfig>
Forthedatapathtowork,youneedtochangethedefaultfirewallpolicytoallow,orpunchFirewallrulesto
allowdatatrafficonVPNandinternalinterfaces.Rules:
The<id>isauniqueIDusedbyallpeerstoidentifythisvShieldEdgeVPNgateway.Intheexample,itis
thesameas<ipAddress>.
SimilartothepreSharedKeyinsiteConfig,theoptionalpreSharedKeyForDynamicIpSitesin
globalConfigisapre‐sharedkeyforusebyallpeerswhenconnectingwithanunknownIPaddress.
The<peerName>adescriptivenameofthepeer.
The<peerId>isanIDtouniquelyidentifythepeer,usedtodefinepoliciesforthepeerandforpeer
authentication.Forpeersusingcertificateauthentication,thisIDmustbethecommonnameinthepeer’s
certificate.ForPSKpeers,thisIDcanbeanystring,butideallythepublicIP
addressoftheVPNorthe
FQDNfortheVPNservice.
Comentários a estes Manuais