mirror of
https://gitlab.com/shorewall/code.git
synced 2025-05-31 06:55:42 +02:00
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:
parent
30c5dbf2f7
commit
dba25b5137
@ -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!"
|
||||
;;
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user