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!
No comments:
Post a Comment