Installing the Firewall Rule Set
You can install the firewall rule set manually by running it as a shell script. After changing the firewall rules, reinstall them by simply running the script again. It might be a good idea to preserve old versions of your firewall script, so you can reverse changes.
To verify which firewall rules are currently active, enter the following:
$ iptables -L
Refer to the iptables(8) manual page for display options.
With the release of this article, Sun released packages (RPM files) for the Linux platforms supported on Sun hardware. Sun keeps these packages current. The packages contain the sample firewall script described in this document and a system dependent script that installs this firewall rule set at boot time, before any network services are configured.
Consult the README file included with the package for details on installation and activation.