Add A Remote Site - VMware VSHIELD APP 1.0.0 UPDATE 1 - API Programming Manual

Vshield api
Hide thumbs Also See for VSHIELD APP 1.0.0 UPDATE 1 - API:
Table of Contents

Advertisement

Example:
POST /api/1.0/network/network-244/vpn/ipsec/config HTTP/1.1
Content-Type: application/xml
Authorization: Basic YWRtaW46ZGVmYXVsdA==
Host: localhost:9998
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Content-Length: 662
<?xml version="1.0" encoding="UTF-8"
Multiple tunnels and sites for an IPSEC server
POST /api/1.0/network/network-244/vpn/ipsec/config HTTP/1.1
Content-Type: application/xml
Authorization: Basic YWRtaW46ZGVmYXVsdA==
Host: localhost:9998
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Content-Length: 1295
<?xml version="1.0" encoding="UTF-8"

Add a Remote Site

You can add a remote VPN site to connect remote users to the virtual machines protected by a vShield Edge.
Example 5-37. Adding a Remote VPN Site
Request:
POST <vshield_manager-uri>/api/1.0/network/<internal-portgroup-vc-moref-id>/vpn/ipsec/sites
Example
POST /api/1.0/network/network-244/vpn/ipsec/sites
Content-Type: application/xml
Authorization: Basic YWRtaW46ZGVmYXVsdA==
Host: localhost:9998
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Content-Length: 576
VMware, Inc.
standalone="yes"?><VShieldEdgeConfig><VPNConfig><IpsecVPNConfig><SiteToSiteIpsec>
<VPNServerConfig><externalIpAddress>10.112.196.219</externalIpAddress>
</VPNServerConfig><VPNSite><Configuration><siteName>VSE1</siteName>
<remoteEndPointexternalIpAddress>10.112.196.99</remoteEndPointexternalIpAddress>
<sharedSecret>psk1</sharedSecret><mtu>1500</mtu></Configuration><VPNTunnel>
<Configuration><tunnelName>tunnelVSE</tunnelName><remoteSiteSubnet>172.15.1.0/24
</remoteSiteSubnet><encryptionAlgorithm>3des</encryptionAlgorithm></Configuration>
</VPNTunnel></VPNSite></SiteToSiteIpsec></IpsecVPNConfig></VPNConfig>
</VShieldEdgeConfig>
standalone="yes"?><VShieldEdgeConfig><VPNConfig><IpsecVPNConfig><SiteToSiteIpsec>
<VPNServerConfig><externalIpAddress>10.112.196.99</externalIpAddress>
<natedPublicIpAddress>10.112.196.199</natedPublicIpAddress></VPNServerConfig>
<VPNSite><Configuration><siteName>VSE2</siteName><remoteEndPointexternalIpAddress>
10.112.196.218</remoteEndPointexternalIpAddress><sharedSecret>psk2</sharedSecret>
<mtu>1500</mtu></Configuration><VPNTunnel><Configuration><tunnelName>tunnelVSE1
</tunnelName><remoteSiteSubnet>172.19.1.0/24</remoteSiteSubnet>
<encryptionAlgorithm>3des</encryptionAlgorithm></Configuration></VPNTunnel>
<VPNTunnel><Configuration><tunnelName>tunnelVSE2</tunnelName><remoteSiteSubnet>
172.20.1.0/24</remoteSiteSubnet><encryptionAlgorithm>aes</encryptionAlgorithm>
</Configuration></VPNTunnel></VPNSite><VPNSite><Configuration><siteName>VSE1
</siteName><remoteEndPointexternalIpAddress>10.112.196.219
</remoteEndPointexternalIpAddress><sharedSecret>psk1</sharedSecret><mtu>1500</mtu>
</Configuration><VPNTunnel><Configuration><tunnelName>tunnelVSE</tunnelName>
<remoteSiteSubnet>172.17.1.0/24</remoteSiteSubnet><encryptionAlgorithm>aes
</encryptionAlgorithm></Configuration></VPNTunnel></VPNSite></SiteToSiteIpsec>
</IpsecVPNConfig></VPNConfig></VShieldEdgeConfig>
Chapter 5 vShield Edge Management
39

Advertisement

Table of Contents
loading

Table of Contents