Create an SP by using
esxcli network
ip ipsec add. You identify the data to monitor by specifying the
selector’s source and destination IP address and prefix, source port and
destination port, upper layer protocol, direction of traffic, action to take,
and SP mode. The last two option are the name of the SA to use and the name of
the SP that is being created. The following example includes extra line breaks
for readability.
esxcli network ip ipsec add
--sp-source=2001:0DB8:0001:/48
--sp-destination=2001:0DB8:0002:/48
--source-port=23
--destination-port=25
--upper-layer-protocol=tcp
--flow-direction=out
--action=ipsec
--sp-mode=transport
--sp-name sp_2
|