Configuring HP-UX IPSec

Using ipsec_config

Using a Profile File with a Batch File

The profile argument is illegal inside batch files (you cannot specify the profile argument as part of a statement inside a batch file). You can specify the profile argument as part of the ipsec_config batch command line and ipsec_config will apply it to all entries in the batch file. Refer to the ipsec_config (1M) manpage for more information.

Profile File Structure

The profile file is separated into sections that contain default parameter values for different configuration objects. For example, the HostPolicy-Defaults section contains defaults for host IPSec policies, which are created using the ipsec_config add host command. Each section is delimited by BEGIN and END statements.

Creating a Customized Profile File

In most topologies, you can use the default values in /var/adm/ipsec/.ipsec_profile. If you want to create a customized profile file, make a copy of the /var/adm/ipsec/.ipsec_profile file and edit the copy with a text editor.

You may want to create a customized profile file to change the default source address parameter (source parameter) in the following topologies:

IPv6 networks

Multihomed nodes with private interfaces

The default source address parameter values in /var/adm/ipsec/.ipsec_profile are 0.0.0.0/0/0 (IPv4 address 0.0.0.0, address prefix length 0, port 0). This matches any IPv4 address and any port number. In most topologies, this is appropriates since the default source (local) address will be any IPv4 address on the local system.

IPv6 Networks If you have a network that primarily contains IPv6 addresses, you can change the source parameter value to match any IPv6 address and any port number (0:0/0/0) in the HostPolicy-Defaults, GWPolicy-Defaults, and TunnelPolicy-Defaults sections of the profile file. You can also change the remote parameter value in the IKEPolicy-Defaults section to match any IPv6 address (0::0/0).

64

Chapter 3