You must configure a local endpoint to use with the IPSec VPN that you are configuring.
The following steps use the Local Endpoints tab on the NSX Manager UI. You can also create a local endpoint while in the process of adding an IPSec VPN session by clicking the three-dot menu ( ) and selecting Add Local Endpoint. If you are in the middle of configuring an IPSec VPN session, proceed to step 3 in the following steps to guide you with creating a new local endpoint.
- If you are using a certificate-based authentication mode for the IPSec VPN session that is to use the local endpoint you are configuring, obtain the information about the certificate that the local endpoint must use.
- Ensure that you have configured an IPSec VPN service to which this local endpoint is to be associated.
- With admin privileges, log in to NSX Manager.
- Navigate to Add Local Endpoint. and click
- Enter a name for the local endpoint.
- From the VPN Service drop-down menu, select the IPSec VPN service to which this local endpoint is to be associated.
- Enter an IP address for the local endpoint.
For an IPSec VPN service running on a Tier-0 gateway, the local endpoint IP address must be different from the Tier-0 gateway's uplink interface IP address. The local endpoint IP address you provide is associated with the loopback interface for the Tier-0 gateway and is also published as a routable IP address over the uplink interface. For IPSec VPN service running on a Tier-1 gateway, in order for the local endpoint IP address to be routable, the route advertisement for IPSec local endpoints must be enabled in the Tier-1 gateway configuration. See Add an NSX Tier-1 Gateway for more information.
- If you are using a certificate-based authentication mode for the IPSec VPN session, from the Site Certificate drop-down menu, select the certificate that is to be used by the local endpoint.
- (Optional) Optionally add a description in Description.
- Enter the Local ID value that is used for identifying the local NSX Edge instance.
This local ID is the peer ID on the remote site. The local ID must be either the public IP address or FQDN of the remote site. For IPSec VPN sessions with certificate-based authentication and are associated with the local endpoint, the Local ID is derived from the certificate associated with the local endpoint. The ID specified in the Local ID text box is ignored. The local ID derived from the certificate for a VPN session depends on the extensions present in the certificate.
If the X509v3 extension X509v3 Subject Alternative Name is not present in the certificate, then the Distinguished Name (DN) is used as the local ID value.
For example, if the certificate does not have any Subject Alternative Name (SAN) fields and its DN string is:
C=US, ST=California, O=MyCompany, OU=MyOrg, CN=Site123
then the DN string is used as the local ID. This local ID is the peer ID on the remote site.
If the X509v3 extension X509v3 Subject Alternative Name is found in the certificate, then one of the SAN fields is taken as the local ID value.
If the certificate has multiple SAN fields, then the following order is used to select the local ID.
Order SAN Field 1 IP Address 2 DNS 3 Email Address
For example, if the configured site certificate has the following SAN fields:
x509v3 Subject Alternative Name: DNS:Site123.vmware.com, email:firstname.lastname@example.org, IP Address:22.214.171.124
then the IP address
126.96.36.199is used as the local ID. If the IP address is not available, then the DNS string is used. And if the IP address and DNS are not available, then the email address is used.
To see the local ID that is used for an IPSec VPN session, do the following:
- Navigate to IPSec Sessions tab. and then click the
- Expand the IPSec VPN session.
- Click Download Config to download the configuration file which contains the local ID as the remote ID to be configured at the remote VPN endpoint.
- From the Trusted CA Certificates and Certificate Revocation List drop-down menus, select the appropriate certificates that are required for the local endpoint.
- (Optional) Specify a tag.
- Click Save.