There are several NAT and firewall solutions.
Sun has recently made SunScreen lite available for free from
Sun's home page and as part of Solaris 8.
Solaris 9 ships with the full edition of SunScreen 3.2.
Alternatively, there's Darren Reed's ipfilter package.
Ipfilter is the default firewall for Solaris 10.