6.0.3

Table Of Contents
List Available IPsec Security Policies
You can list available security policies using the ESXCLI vSphere CLI command.
Procedure
u
At the command prompt, enter the command esxcli network ip ipsec sp list
The host displays a list of all available security policies.
Create an IPSec Security Policy
Create a security policy to determine when to use the authentication and encryption parameters set in a
security association. You can add a security policy using the ESXCLI vSphere CLI command.
Prerequisites
Before creating a security policy, add a security association with the appropriate authentication and
encryption parameters as described in Add an IPsec Security Association,” on page 239.
Procedure
u
At the command prompt, enter the command esxcli network ip ipsec sp add with one or more of the
following options.
Option Description
--sp-source= source address
Required. Specify the source IP address and prex length.
--sp-destination= destination
address
Required. Specify the destination address and prex length.
--source-port= port
Required. Specify the source port. The source port must be a number
between 0 and 65535.
--destination-port= port
Required. Specify the destination port. The source port must be a number
between 0 and 65535.
--upper-layer-protocol= protocol
Specify the upper layer protocol using one of the following parameters.
n
tcp
n
udp
n
icmp6
n
any
--flow-direction= direction
Specify the direction in which you want to monitor trac using either in
or out.
--action= action
Specify the action to take when trac with the specied parameters is
encountered using one of the following parameters.
n
none: Take no action
n
discard: Do not allow data in or out.
n
ipsec: Use the authentication and encryption information supplied in
the security association to determine whether the data comes from a
trusted source.
--sp-mode= mode
Specify the mode, either tunnel or transport.
--sa-name=security association
name
Required. Provide the name of the security association for the security
policy to use.
--sp-name=name
Required. Provide a name for the security policy.
Chapter 8 Securing vSphere Networking
VMware, Inc. 241