diff --git a/qosmngr/files/common/lib/qos/ebtables.sh b/qosmngr/files/common/lib/qos/ebtables.sh index f99de85e9..d6294ae6e 100755 --- a/qosmngr/files/common/lib/qos/ebtables.sh +++ b/qosmngr/files/common/lib/qos/ebtables.sh @@ -389,7 +389,7 @@ handle_ebtables_rules() { } create_ebtables_chains() { - ebtables -t broute -N qos + ebtables -t broute -N qos 2> /dev/null ret=$? if [ $ret -eq 0 ]; then ebtables -t broute -I BROUTING -j qos diff --git a/qosmngr/files/common/lib/qos/iptables.sh b/qosmngr/files/common/lib/qos/iptables.sh index a5e42e51c..204a463fb 100755 --- a/qosmngr/files/common/lib/qos/iptables.sh +++ b/qosmngr/files/common/lib/qos/iptables.sh @@ -208,27 +208,27 @@ handle_iptables_rules() { } create_iptables_chains() { - iptables -w -t mangle -N qos_forward + iptables -w -t mangle -N qos_forward 2> /dev/null ret=$? [ $ret -eq 0 ] && iptables -w -t mangle -I FORWARD -j qos_forward - iptables -w -t mangle -N qos_prerouting + iptables -w -t mangle -N qos_prerouting 2> /dev/null ret=$? [ $ret -eq 0 ] && iptables -w -t mangle -I PREROUTING -j qos_prerouting - iptables -w -t mangle -N qos_output + iptables -w -t mangle -N qos_output 2> /dev/null ret=$? [ $ret -eq 0 ] && iptables -w -t mangle -I OUTPUT -j qos_output - ip6tables -t mangle -N qos_forward + ip6tables -t mangle -N qos_forward 2> /dev/null ret=$? [ $ret -eq 0 ] && ip6tables -t mangle -I FORWARD -j qos_forward - ip6tables -t mangle -N qos_prerouting + ip6tables -t mangle -N qos_prerouting 2> /dev/null ret=$? [ $ret -eq 0 ] && ip6tables -t mangle -I PREROUTING -j qos_prerouting - ip6tables -t mangle -N qos_output + ip6tables -t mangle -N qos_output 2> /dev/null ret=$? [ $ret -eq 0 ] && ip6tables -t mangle -I OUTPUT -j qos_output }