HP-UX IPSec Version A.03.02.02 Administrator's Guide HP-UX 11i version 2 and HP-UX 11i version 3 (762800-001, April 2014)
file, which is shipped with HP-UX IPSec. In most topologies, you can use the default values supplied
in the /var/adm/ipsec/.ipsec_profile file.
HP-UX IPSec also has internal default values that are the same as the values in the /var/adm/
ipsec/.ipsec_profile file shipped with the product. If the /var/adm/ipsec/
.ipsec_profile file does not exist and the user does not specify an alternate profile file, HP-UX
IPSec uses its internal default values.
Using a profile file with 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. The profile argument is illegal inside
batch files (you cannot specify the profile argument as part of a statement inside a batch file).
See the ipsec_config_batch(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 this 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 appropriate 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 nodes, you can change the source parameter
value to match any IPv6 address and any port number (0::0/0/0 ) in the HostPolicy-Defaults and
TunnelPolicy-Defaults sections of the profile file. You can also change the remote parameter value
in the IKEV2Policy-Defaults or IKEPolicy-Defaults section to match any IPv6 address (0::0/0).
Multihomed nodes with private interfaces
If the local system is multihomed with one public IP interface and one or more private IP interfaces,
you may want to secure only the one public IP interface. In this case, you can set the default source
parameter value to the address of the public IP interface in the HostPolicy-Defaults and
TunnelPolicy-Defaults sections of the profile file.
Dynamic configuration updates
The ipsec_config utility dynamically updates the configuration database. If HP-UX IPSec is
running, ipsec_config also updates its runtime policy cache in the kernel.
Dynamic deletions
If you delete an object while HP-UX IPSec is running, HP-UX IPSec deletes it from its runtime policy
cache. If you delete an IPsec policy, HP-UX IPSec also deletes any associated IPsec SAs. If you
60 Configuring HP-UX IPSec