6.5

Table Of Contents
--encryption-key 0x6970763672656164796c6f676f336465736362636f757432
--integrity-algorithm hmac-sha1
--integrity-key 0x6970763672656164796c6f67736861316f757432
--sa-name sa_2
n
List an SA by using esxcli network ip ipsec sa list. This command returns SAs currently available
for use by an SP. The list includes SAs you created.
n
Remove a single SA by using esxcli network ip ipsec sa remove. If the SA is in use when you run this
command, the command cannot perform the removal.
n
Remove all SAs by using esxcli network ip ipsec sa remove --removeall. This option removes all
SAs even when they are in use.
C Running esxcli network ip ipsec sa remove --removeall removes all SAs on your system
and might leave your system in an inconsistent state.
Managing Security Policies
After you have created one or more SAs, you can add security policies (SPs) to your ESXi hosts. While the
SA species the authentication and encryption parameters to use, the SP identies and selects trac.
The following options for SP management are supported.
vicfg-ipsec Option esxcli Option Description
sp-src <ip>/<p_len> sp-source <ip>/<p_len>
Source IP address and prex length.
sp-dst <ip>/<p_len> sp-destination <ip>/<p_len>
Destination IP address and prex
length.
src-port <port> source-port <port> Source port (0-65535). Specify any for
any ports.
dst-port <port> destination-port <port> Destination port (0-65535). Specify any
for any ports. If ulproto is icmp6, this
number refers to the icmp6 type.
Otherwise, this number refers to the
port.
ulproto [any | tcp | udp |
icmp6]
upper-layer-protocol [any |
tcp | udp | icmp6]
Upper layer protocol. Use this option
to restrict the SP to only certain
protocols, or use any to apply the SP to
all protocols.
dir [in | out] flow-direction [in | out]
Direction in which you want to
monitor the trac. To monitor trac
in both directions, create two policies.
action [none | discard | ipsec] action [none | discard |
ipsec]
Action to take when trac with the
specied parameters is encountered.
n
none - Take no action, that is,
allow trac unmodied.
n
discard - Do not allow data in or
out.
n
ipsec - Use the authentication and
encryption information specied
in the SA to determine whether the
data come from a trusted source.
sp-mode [tunnel | transport] sp-mode [tunnel | transport] Mode, either tunnel or transport.
sa-name sa-name
Name of the SA to use by this SP.
vSphere Command-Line Interface Concepts and Examples
156 VMware, Inc.