mwan3: don't send iptable setup failures to /dev/null
authorAaron Goodman <aaronjg@stanford.edu>
Thu, 16 Jul 2020 06:09:11 +0000 (02:09 -0400)
committerFlorian Eckert <fe@dev.tdt.de>
Mon, 27 Jul 2020 10:19:03 +0000 (12:19 +0200)
silencing failing rules makes debugging more difficult

Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
(cherry picked from commit 702a104f9c516fdddd5e71207d1ad91eb70f9a41)

net/mwan3/files/lib/mwan3/mwan3.sh

index 96fdca966a5bb40b0e731aea7145b3158fc27ae4..f4bfc37e9a8f1d059994ac64fd1ade26b668f067 100644 (file)
@@ -1023,7 +1023,7 @@ mwan3_set_user_iptables_rule()
                                     ${dest_port:+-m} ${dest_port:+multiport} ${dest_port:+--dports} $dest_port \
                                     -m mark --mark 0/$MMX_MASK \
                                     -m comment --comment "$1" \
-                                    -j LOG --log-level "$loglevel" --log-prefix "MWAN3($1)" &> /dev/null
+                                    -j LOG --log-level "$loglevel" --log-prefix "MWAN3($1)"
                        }
 
                        $IPT -A mwan3_rules \
@@ -1035,7 +1035,7 @@ mwan3_set_user_iptables_rule()
                             ${src_port:+-m} ${src_port:+multiport} ${src_port:+--sports} $src_port \
                             ${dest_port:+-m} ${dest_port:+multiport} ${dest_port:+--dports} $dest_port \
                             -m mark --mark 0/$MMX_MASK \
-                            -j $policy &> /dev/null
+                            -j $policy
                done
        fi
 }