mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 02:42:58 +02:00
firewall: Initialize basic ruleset before entering runlevel 3.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user