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)
committerAaron Goodman <aaronjg@stanford.edu>
Mon, 20 Jul 2020 03:18:22 +0000 (23:18 -0400)
silencing failing rules makes debugging more difficult

Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
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
 }