Security policies in the SPD can be added, modified, displayed, deleted, and monitored using the ipsec command. For more information, see the na_ipsec(1) man page.
When you create security policies, you must select from the following required and optional parameters on your storage system. Corresponding values must also be selected on any Windows clients served by the storage system.
-p |
Required. Must be either Authentication Header (AH) or Encapsulated Security Payload (ESP); see About security associations. | |
-e |
Optional. If the ESP protocol is selected, DES, triple DES, or no encryption can be specified. | |
-a |
Required for AH protocol, optional for ESP protocol. SHA-1, MD5, or no authentication can be specified. | |
-d |
Required. Specifies an inbound or outbound connection relative to your storage system. By default, a mirrored policy (with the same parameters, except direction) is created unless mirroring is turned off. | |
-f | ||
-l |
Optional. Traffic can be restricted or permitted if a valid SA is not available. | |
-i |
Specifies an index in the Security Policy Database. The index is obtained by the ipsec policy show command. |
To create a security policy, complete the following step.
| 1 |
ipsec policy add [-s src_ip/prefixlen[port]] [-t
dst_ip/prefixlen[port]] -p {esp|ah|none}
The add options are described in Selecting security policy options. Additionally, see the na_ipsec(1) man page for details of these options. |
Note
Ensure that policies match on the storage system and client (or group of clients) that are negotiating the secure connection.
ipsec policy add -s 10.56.18.5 -t 10.56.19.172/24[139] -p esp -e des -a ah -d in -l restrict
For more information about policy options, see the na_ipsec(1) man page.
You can use the ipsec policy show command to display the contents of the Security Policies Database (SPD), either in its entirety or by combinations of these parameters:
To display security policies, complete the following step.
| 1 |
At your storage system command line, enter the following command: ipsec policy show [-s src_ip] [-t dst_ip] [-f
ip_protocol] [-d {in|out}] [-p {esp|ah}]
The show options are described in Selecting security policy options. Additionally, see the na_ipsec(1) man page for details of these options. |
The following example displays security policy information for the device that has a source IP address (-s) of 10.56.19.172:
ipsec policy show -s 10.56.19.172
Index IPAddress /prefix/port/protocol Dir/Policy Alg/SecLevel
----- ------------------------------ ---------- ------------
1 10.56.19.172 / 0/ [any ]/any -> in /IPSEC esp/Default
You can remove entries from the SPD by deleting any of the following:
To delete a security policy from your storage system, complete the following step.
| 1 |
At your storage system command line, enter the following command: ipsec policy delete all | -i index [[-s src_ip|-t dst_ip]
-d {in|out} [-m]]
The delete options are described in Selecting security policy options. Additionally, see the na_ipsec(1) man page for details of these options. |
You must delete the same policies from corresponding clients.
You can use the ipsec stats command to verify IPsec configuration, monitor protocol processing, and display IPsec violations. The command displays the following statistics:
The anti-replay service window protects against replay attacks.
To display statistics about how IPsec is working, complete the following steps.
The following example shows the statistics provided by the ipsec stats command in priv set advanced mode.
system1*> ipsec stats
ipsec:
148460138 inbound packets processed successfully
0 inbound packets violated process security policy
983 inbound packets with no SA available
0 invalid inbound packets
0 inbound packets failed due to insufficient memory
0 inbound packets failed getting SPI
0 inbound packets failed on AH replay check
0 inbound packets failed on ESP replay check
143929988 inbound packets considered authentic
0 inbound packets failed on authentication
ESP input packets
des : 3886739
3des : 140043249
AH input packets
md5 : 4530150
134002232 outbound packets processed successfully
0 outbound packets violated process security policy
0 outbound packets with no SP available
11 outbound packets with no SA available
0 invalid outbound packets
0 outbound packets failed due to insufficient memory
0 outbound packets with no route
ESP output packets
des : 4571170
3des : 124667606
AH output packets
md5 : 4763456
ike:
IKE input packets
Identity Protection : 107
Informational : 3682
Quick : 7310
IKE output packets
Identity Protection : 108
Informational : 10
Quick : 3663
Copyright © 1994-2005, Network Appliance, Inc. All rights
reserved.
Part No. 210-01082_B0
File: ipsec4.htm
Last updated: 08-Dec-2005 13:27:22