Just documenting this for my own sanity in case I need to find it again later. The steps might also be the same on Solaris 10 but I haven’t tested them on older version.
Usage: You want to do a very simple port redirect for whatever reason.
From the global zone:
svcadm disable svc:/network/ipfilter:default
Edit file /etc/ipf/ipnat.conf
Add line like this:
rdr ipmp0 10.97.26.140 port 3600 -> 10.97.26.140 port 3601 tcp
where: ipmp0 is the nic on which the ip address lives. (Use the main nic name, not ipmp0:2 or whatever the zone uses) 10.97.26.140 is the ip address we want to modify. 3600 is the port we want to change. 3601 is the port we want to redirect to.
Now enable filter:
svcadm enable svc:/network/ipfilter:default