6.5

Table Of Contents
You can perform the following main tasks with SPs.
n
Create an SP by using esxcli network ip ipsec add. You identify the data to monitor by specifying the
selectors source and destination IP address and prex, source port and destination port, upper layer
protocol, direction of trac, 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
n
List an SP by using esxcli network ip ipsec list. This command returns SPs currently available. All
SPs are created by the administrator.
n
Remove an SP by using esxcli network ip ipsec remove. If the SP is in use when you run this
command, the command cannot perform the removal. You can run esxcli network ip ipsec remove
--removeall instead to remove the SP even when it is in use.
C Running esxcli network ip ipsec remove --removeall removes all SPs on your system and
might leave your system in an inconsistent state.
Manage the ESXi Firewall
To minimize the risk of an aack through the management interface, ESXi includes a rewall between the
management interface and the network.
To ensure the integrity of the host, only a small number of rewall ports are open by default. The vSphere
Security documentation explains how to set up rewalls for your environment and which ports you might
have to temporarily enable for certain trac.
You manage rewalls by seing up rewall rulesets. vSphere Security documentation explains how to
perform these tasks with the vSphere Web Client. You can also use esxcli network firewall to manage
rewall rulesets and to retrieve information about them. Specify one of the options listed in “Connection
Options for vCLI Host Management Commands,” on page 19 in place of <conn_options>.
Procedure
1 Check rewall status and sshServer ruleset status.
esxcli <conn_options> network firewall get
Default Action: DROP
Enabled: true
Loaded: true
esxcli <conn_options> network firewall ruleset list --ruleset-id sshServer
Name Enabled
--------- -------
sshServer true
Chapter 9 Managing vSphere Networking
VMware, Inc. 157