HP-UX IPFilter Version A.03.05.14 Administrator's Guide
HP-UX IPFilter Configuration Examples
nat-setup
Appendix A176
Or if you wanted to allocate subnets to each IP#, you might do:
map ppp0 10.1.1.0/24 -> 209.23.1.2/32 portmap tcp/udp
10000:40000
map ppp0 10.1.2.0/24 -> 209.23.1.3/32 portmap tcp/udp
10000:40000
map ppp0 10.1.3.0/24 -> 209.23.1.4/32 portmap tcp/udp
10000:40000
map ppp0 10.1.1.0/24 -> 209.23.1.2/32 portmap
map ppp0 10.1.2.0/24 -> 209.23.1.3/32 portmap
map ppp0 10.1.3.0/24 -> 209.23.1.4/32 portmap
*** NOTE: NAT rules are used on a first-match basis only!
Filtering with NAT.
-------------------
IP Filter will always translate addresses in a packet _BEFORE_
it checks its access list for inbound packets and translates
addresses _AFTER_ it has checked the access control lists for
outbound packets.
For example (using the above NAT rules), if you wanted to
prevent all hosts in the 10.1.2.0/24 subnet from using NAT, you
might use the following rule with ipf:
block out on ppp0 from 10.1.2.0/24 to any
block in on ppp0 from any to 10.1.2.0/24
and use these with ipnat:
map ppp0 10.1.0.0/16 -> 209.23.1.0/28 portmap tcp/udp
10000:40000
map ppp0 10.1.0.0/16 -> 209.23.1.0/28 portmap