diff --git a/Shorewall/Perl/lib.core b/Shorewall/Perl/lib.core index 5cd66acdb..f11b94030 100644 --- a/Shorewall/Perl/lib.core +++ b/Shorewall/Perl/lib.core @@ -645,7 +645,15 @@ scale=8 $totalload - $load EOF ) - run_iptables -t mangle -A ~$interface -m statistic --mode random --probability $load -j MARK --set-mark $mark + + case $load in + .*|0.*) + run_iptables -t mangle -A ~$interface -m statistic --mode random --probability $load -j MARK --set-mark $mark + ;; + *) + run_iptables -t mangle -A ~$interface -j MARK --set-mark $mark + ;; + esac fi done fi