| United States-English |
|
|
|
![]() |
HP-UX IPSec version A.02.00 Administrator's Guide: HP-UX 11i version 1 and HP-UX 11i version 2 > Chapter 5 Troubleshooting HP-UX
IPSecTroubleshooting Procedures |
|
This section describes the following troubleshooting procedures: HP-UX IPSec has five main modules:
The following command verifies the status of these modules: ipsec_admin -status This command sends status check messages to the IPSec daemons and checks kernel parameters to see if the kernel IPSec components are enabled. You can also use the following command to get status information: ipsec_report -all [-file filename] This command will show some HP-UX IPSec activity even if there is no peer system running HP-UX IPSec. The -file option saves the output to the specified filename. This command performs the following tasks:
If you are unsure whether an application problem is being caused by HP-UX IPSec, you can still enable layer 4 (TCP, UDP, IGMP) tracing. This will capture outbound data packets before they are encrypted by HP-UX IPSec and inbound packets after they are decrypted by HP-UX IPSec. Because layer 4 tracing provides a possible security breach, it is disabled when HP-UX IPSec is started and can only be enabled using the ipsec_admin utility, which requires root capability and the HP-UX IPSec administrator password. To enable layer 4 tracing, use the following command: ipsec_admin -traceon [ tcp | udp | igmp | all ] Tracing output will go to /var/adm/ipsec/nettl.TRC0 and /var/adm/ipsec/nettl.TRC1 if nettl tracing is not already enabled. If it is, the trace files will be those already in use by nettl. There are two methods for determining which policy HP-UX IPSec uses for a packet:
Use the ipsec_policy command to determine which IPSec policy will be used for a given packet. For example, on system 15.1.1.1, you want to determine which host policy HP-UX IPSec will use for outbound telnet requests to 15.2.2.2 (the local system 15.1.1.1 is the telnet client). Use the following command: ipsec_policy -sa 15.1.1.1 -sp 65535 -da 15.2.2.2 -dp 23 To determine which host policy HP-UX IPSec will use for inbound telnet requests to 15.1.1.1 from system 15.2.2.2 (the local system 15.1.1.1 is the telnet server), you can use the following command: ipsec_policy -da 15.1.1.1 -dp 23 -sa 15.2.2.2 -sp 65535 Refer to the ipsec_policy(1M) manpage for more information.
To determine the actual IPSec policy used for a packet, examine the output from the ipsec_report -cache command to find the cached policy decision for the packet, then use the Cookie field from the ipsec_report -cache entry to find the matching entry in the ipsec_report -host output. The cache entry below is for an attempted outbound telnet session from system 192.1.1.1 to system 192.1.1.3. The host policy on 192.1.1.1 is misconfigured, so the system sends the packets in clear text. The output from the ipsec_report -cache command shows the following entry: -------------------Cache Policy Rule ----------------------- The output from the ipsec_report -host command shows the following entry. In this configuration, Cookie 1 corresponds to the default host IPSec policy, with the action PASS. ---------------- Active Host Policy Rule ------------------- You can configure or set the following HP-UX IPSec audit parameters:
You can change the audit parameters while HP-UX IPSec is active using the ipsec_admin command. To change the audit parameters used every time HP-UX IPSec starts, use the ipsec_config add startup command. You can also specify audit parameters with the ipsec_admin start command. The HP-UX IPSec audit levels are defined as follows:
The audit levels are shown in ascending order. If you set the audit level to a higher level, all lower levels are also included. For example, if you set the audit level to informative, the audit daemon also records all alert, error and warning messages. The default audit level is error, which includes alert messages. By default, the audit daemon will create a new audit file when the size reaches 100 Kbytes. The audit daemon will continue creating new audit files until the file system for the audit directory are full. For this reason, you may want to mount the audit directory on a separate file system.The default audit directory is /var/adm/ipsec. If HP-UX IPSec is running, you can dynamically set the audit parameters by entering the following command: ipsec_admin [-al audit_level] [-au audit_directory] audit _level can be alert, error, warning, informative, or debug. A selected audit level includes all the lower audit levels. audit_directory is the fully-qualified path name for the audit directory. max_size is the maximum size for each audit file, in kilobytes. The range is 1 - 4294967294. To set the audit parameters used every time HP-UX IPSec starts, modify the startup record in the configuration database by entering a command similar to the following: ipsec_config add startup [-autoboot ON|OFF] audit _level can be alert, error, warning, informative, or debug. A selected audit level includes all the lower audit levels. audit_directory is the fully-qualified path name for the audit directory. max_size is the maximum size for each audit file, in kilobytes. The range is 1 - 4294967294. When you modify startup parameters in the configuration database, the changes do not take effect until the next time HP-UX IPSec starts. The startup configuration object includes other operating parameters. Any parameters you do not specify are re-set to the default values, including the autoboot flag, which determines if HP-UX IPSec starts automatically at system startup time. To configure HP-UX IPSec to start automatically at system startup time, include the option -autoboot ON in the ipsec_config add startup command. You must use the ipsec_report utility to view audit files.First, determine the current audit file: ipsec_admin -status Then use the -audit option of ipsec_report to display the file: ipsec_report -audit audit_file You can filter the audit file output so ipsec_report shows only entries recorded by specified entities. ipsec_report -audit audit_file -entity entity_name [entity_name ...] where entity_name is one of the following names: ikmpd
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||