how to save iptables

i do this :
su -l
/usr/sbin/iptables -A OUTPUT -p tcp -d 192.168.1.100 --dport 11900 -j DROP

and

iptables-save

and it works ,but after reboot rules a restored!

How to save changes properly?

On 2012-05-08 19:06, NikolaiSS wrote:
> How to save changes properly?

Use custom rules file in SuSEfirewall2.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

>Use custom rules file in SuSEfirewall2.<

OK ,but how exactly!?

On 2012-05-09 15:56, NikolaiSS wrote:
>
>> Use custom rules file in SuSEfirewall2.<
>
> OK ,but how exactly!?

Exactly, I do not know. I’m not an iptables expert.

In the firewall file there is an entry for a custom file, you have activate it:


## Type:        string
#
# Do you want to load customary rules from a file?
#
# This is really an expert option. NO HELP WILL BE GIVEN FOR THIS!
# READ THE EXAMPLE CUSTOMARY FILE AT
/etc/sysconfig/scripts/SuSEfirewall2-custom
#
FW_CUSTOMRULES="/etc/sysconfig/scripts/SuSEfirewall2-custom"
#FW_CUSTOMRULES=""

Just look at file for examples.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)