Dec 19, 2012

openSUSE Forums: I can't get SuSEfirewall2-custom to load rules during startup/boot

openSUSE Forums
openSUSE Forums
I can't get SuSEfirewall2-custom to load rules during startup/boot
Dec 19th 2012, 22:36

I'm trying to get some custom firewall rules to load during startup and have tried the following:

Code:

prrd-fossgis:~ # grep FW_CUSTOMRULES /etc/sysconfig/SuSEfirewall2
#FW_CUSTOMRULES="/etc/sysconfig/scripts/SuSEfirewall2-custom"
FW_CUSTOMRULES="/etc/sysconfig/scripts/SuSEfirewall2-custom"

And then in /etc/sysconfig/scripts/SuSEfirewall2-custom (fw_custom_after_finished() section) I have:

Code:

fw_custom_after_finished() {
    # these are the rules to be loaded after the firewall is fully configured
    iptables -I INPUT -d 192.168.16.18
    iptables -I OUTPUT -s 192.168.16.18
    true
}

Those rules don't get loaded on boot, and I can't see them in the output of either iptables -L INPUT or iptables -L OUTPUT until I manually load them.

Is there something else I need to do to get those rules loaded on startup?
Those specific rules are required for package "munin" to record TCP/UDP traffic and so I need them to be loaded at boot/startup.

System info:
openSUSE 12.2 w/ KDE 4.8.5, 64bit.

Thanks for any help!

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

No comments: