I am trying to configure the firewall on my OES SP2 Linux box to allow a specific application to run.

I know the FW_TRUSTED_NETS="ip range, tcp/udp, port number" syntax but I am not sure where to place this.

I have to add 3 lines and if I place them in the SuSEfirewall2 file in \etc\sysconfig, all but 1 rule will disappear if the firewall is stopped/restarted for any reason.

I also noticed there is a FW_CUSTOMRULES="yes/no" option which uses the /etc/sysconfig/scripts/SuSE-customrules file. I created a file with just my 3 lines of FW_TRUSTED_NETS="..." inside this file and then set the FW_CUSTOMRULES="yes" in the SuSEFirewall2 file.

When I turn the firewall back on, it does not seem to block anything. If I remove the FW_CUSTOMRULES, the firewall starts blocking traffic.

Where is the best place to set my 3 custom lines and have them save?

Do I need to basically copy everything from SuSEfirewall2 and place that inside the SuSe-customrules and then set the FW_ CUSTOMRULES="yes" ?