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