HP-UX IPFilter Version A.03.05.14 Administrator's Guide
Installing and Configuring HP-UX IPFilter
Step 5: Loading IPFilter and NAT Rules
Chapter 110
Step 5: Loading IPFilter and NAT Rules
This section describes how to install rules in the HP-UX IPFilter and
NAT rules file to run on your system.
Loading IPFilter Rules
NOTE The following is a list of commands and file names, some of which are
very similar:
• ipfboot—The startup script for the ipf module.
• /etc/rc.config.d/ipfconf—The configuration file for the ipfboot
startup script.
• /etc/opt/ipf/ipf.conf—The default IPFilter rules file. Any rules
present in this file are automatically loaded at bootup by the
ipfboot startup script.
The configuration file, ipfconf, contains information that determines
how HP-UX IPFilter starts when the system is rebooted. When HP-UX
IPFilter is installed, the ipfconf file is put in the /etc/rc.config.d
directory. The HP-UX IPFilter ipfboot startup script reads ipfconf.
By default, HP-UX IPFilter starts on bootup and the rules from the
/etc/opt/ipf/ipf.conf file are processed. If you do not want the rules
to load on bootup, place your rules in an alternate location and then
manually load the rules using the ipf command.
• Add new rules to your rules file using the -f option of the ipf
command:
ipf -f <
rules file
>
NOTE When a rule has been loaded, it takes effect immediately. For
example, if you add a rule to block all traffic and load it using ipf -f
<
rules file
>, you will be blocked from X-Windows and networking
processes.