Fix Yes/No values for IP_FORWARDING

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6103 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-04-24 18:26:38 +00:00
parent 30c5dbf2f7
commit dba25b5137
2 changed files with 3 additions and 3 deletions

View File

@ -378,11 +378,11 @@ stop_firewall() {
done
case "$IP_FORWARDING" in
On|on|ON)
On|on|ON|Yes|yes|YES)
echo 1 > /proc/sys/net/ipv4/ip_forward
progress_message2 "IP Forwarding Enabled"
;;
Off|off|OFF)
Off|off|OFF|No|no|NO)
echo 0 > /proc/sys/net/ipv4/ip_forward
progress_message2 "IP Forwarding Disabled!"
;;

View File

@ -1853,7 +1853,7 @@ do_initialize() {
if [ -n "$IP_FORWARDING" ]; then
case "$IP_FORWARDING" in
On|Off|Keep|on|off|keep|ON|OFF|KEEP)
On|Off|Yes|No|Keep|on|off|yes|no|keep|ON|OFF|YES|NO|KEEP)
;;
*)
startup_error "Invalid value ($IP_FORWARDING) for IP_FORWARDING"