HP-UX IPFilter V18.0 Administrator Guide for HP-UX 11i v3
remote server 192.168.1.254,8000
remote server 192.168.1.1,9
6.5 Bidirectional mapping: bimap
The bimap keyword creates two map entries for the rule: one for inbound and one for outbound.
Unlike the map keyword, an initial inbound packet is not required to create the outbound rule.
The bimap keyword allows IPFilter to map IP addresses bidirectionally. You can use this when you
want the IP address of a particular device on the NAT-supported system to appear to have a
different IP address outside the system. For example:
bimap lan0 192.168.1.1/32 -> 20.20.20.1/32
In this example, the interface with IP address 192.168.1.1 on the NAT-supported system appears
to have the IP address 20.20.20.1 outside the system.
6.6 Loading NAT rules
To load IPFilter NAT rules:
1. Add NAT rules to the /etc/opt/ipf/ipnat.conf file, or to another NAT rules file you
select. For information and instructions, see Section 10.2 (page 70).
2. To manually load the NAT rules:
ipnat -CF -f /etc/opt/ipf/ipnat.conf
This command flushes any current mappings and NAT rules, and reads NAT rules from the
specified rules file.
48 Configuring and loading NAT rules