6.7

Table Of Contents
Option Description
--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 traffic using either in or out.
--action= action Specify the action to take when traffic with the specified 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.
Example: New Security Policy Command
The following example includes extra line breaks for readability.
esxcli network ip ipsec add
--sp-source=2001:db8:1::/64
--sp-destination=2002:db8:1::/64
--source-port=23
--destination-port=25
--upper-layer-protocol=tcp
--flow-direction=out
--action=ipsec
--sp-mode=transport
--sa-name=sa1
--sp-name=sp1
Remove an IPsec Security Policy
You can remove a security policy from the ESXi host using the ESXCLI vSphere CLI command.
Prerequisites
Verify that the security policy you want to use is not currently in use. If you try to remove a security policy
that is in use, the removal operation fails.
vSphere Security
VMware, Inc. 210