Configuring HP-UX IPSec

Step 1: Configuring Host IPSec Policies

Automatic Priority Increment

You can explicitly set the priority of an IPSec policy with the priority argument, or you can use the automatic priority increment value for host policies in the profile file (the priority parameter value in the HostPolicy-Defaultssection of the profile file). If you do not specify a priority argument, ipsec_config assigns a priority value that is set to the current highest priority value (lowest priority) in the configuration data base, incremented by the automatic priority increment value for host policies. The result is that the new policy will be the last policy evaluated before the default policy. The default automatic priority increment value (priority) is 10.

If you are configuring the first host IPSec policy and do not specify a priority argument, ipsec_config assigns the automatic priority increment value as the priority.

ipsec_config add host Syntax

If you are not using manual keys, you can use the following ipsec_config add host syntax in most installations:

ipsec_config add host host_policy_name

[-sourceip_addr[/prefix][/port_numberservice_name]]]

[-destinationip_addr[/[prefix][/port_numberservice_name]]]

[-protocolprotocol_id] [-prioritypriority_number]

[-action PASSDISCARDtransform_list] [-flags flags]

HP recommends that you use an ipsec_config batch file to configure HP-UX IPSec. To specify an add host operation for an ipsec_config batch file, use the above syntax without the ipsec_config command name:

add host host_policy_name

[-sourceip_addr[/[prefix][/port_numberservice_name]]]

[-destinationip_addr[/prefix][/port_numberservice_name]]]

[-protocolprotocol_id] [-prioritypriority_number]

[-action PASSDISCARDtransform_list] [-flags flags]

The full ipsec_config add host syntax specification also allows you to specify the following arguments:

nocommit (verify the syntax but do not commit the information to the database)

profile (alternate profile file)

70

Chapter 3