mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-14 13:02:58 +02:00
Merge remote-tracking branch 'amarx/BUG10620' into next
This commit is contained in:
@@ -499,6 +499,10 @@ sub buildrules {
|
||||
}
|
||||
}
|
||||
}
|
||||
#Reload firewall.local if present
|
||||
if ( -f '/etc/sysconfig/firewall.local'){
|
||||
run("/etc/sysconfig/firewall.local reload");
|
||||
}
|
||||
}
|
||||
|
||||
# Formats the given timestamp into the iptables format which is "hh:mm" UTC.
|
||||
|
||||
@@ -402,21 +402,11 @@ case "$1" in
|
||||
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|up)
|
||||
boot_mesg "Reloading firewall"
|
||||
iptables_red_up
|
||||
evaluate_retval
|
||||
|
||||
# run local firewall configuration, if present
|
||||
if [ -x /etc/sysconfig/firewall.local ]; then
|
||||
/etc/sysconfig/firewall.local reload
|
||||
fi
|
||||
;;
|
||||
down)
|
||||
boot_mesg "Disabling firewall access to RED"
|
||||
@@ -424,10 +414,6 @@ case "$1" in
|
||||
evaluate_retval
|
||||
;;
|
||||
restart)
|
||||
# run local firewall configuration, if present
|
||||
if [ -x /etc/sysconfig/firewall.local ]; then
|
||||
/etc/sysconfig/firewall.local stop
|
||||
fi
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
|
||||
Reference in New Issue
Block a user