firewall: Initialize basic ruleset before entering runlevel 3.

This commit is contained in:
Michael Tremer
2014-02-14 12:48:11 +01:00
parent e7c5b9dabb
commit 7d7740a467
5 changed files with 9 additions and 3 deletions

View File

@@ -292,14 +292,20 @@ iptables_red() {
# See how we were called.
case "$1" in
start)
boot_mesg "Setting up firewall"
iptables_init
evaluate_retval
# run local firewall configuration, if present
if [ -x /etc/sysconfig/firewall.local ]; then
/etc/sysconfig/firewall.local start
fi
;;
reload)
boot_mesg "Reloading firewall"
iptables_red
evaluate_retval
# run local firewall configuration, if present
if [ -x /etc/sysconfig/firewall.local ]; then
/etc/sysconfig/firewall.local reload

View File

@@ -38,9 +38,6 @@ init_networking() {
rmmod nf_conntrack_h323
fi
boot_mesg "Setting up firewall"
/etc/rc.d/init.d/firewall start; evaluate_retval
/etc/rc.d/init.d/dnsmasq start
/etc/rc.d/init.d/static-routes start
}