diff --git a/Shorewall-common/firewall b/Shorewall-common/firewall index e8a8364a5..b767a5cc7 100755 --- a/Shorewall-common/firewall +++ b/Shorewall-common/firewall @@ -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!" ;; diff --git a/Shorewall-common/lib.config b/Shorewall-common/lib.config index 01d31c84c..6fd41f5ea 100644 --- a/Shorewall-common/lib.config +++ b/Shorewall-common/lib.config @@ -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"