QoS uses ip6tables even on filter rules targeted to IPv4 addresses
Username: juanriccio
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=834
LEDE SNAPSHOT r4357-acc5ab6b / LuCI branch (git-17.152.82962-a9e8376)
I specified 2
QoS
rules to put all traffic from/to a certain LAN host in the Bulk class. The LAN is IPv4, but the generated script contained commands for ip6tablesbesides the appropriate commands for iptables.
$ /etc/init.d/qos restart
ip6tables v1.6.1: host/network 192.168.1.161' not found Try
ip6tables -h' or 'ip6tables --help' for more information.
ip6tables v1.6.1: host/network 192.168.1.161' not found Try
ip6tables -h' or 'ip6tables --help' for more information.
Here’s a part of the output from
/usr/lib/qos/generate.sh all
- ip6tables -w -t mangle -A qos_Default_ct -m mark --mark 0/0x0f -d 192.168.1.161 -m comment --comment TMP-delete -j MARK --set-mark 68/0xff
ip6tables v1.6.1: host/network
192.168.1.161' not found Try
ip6tables -h' or 'ip6tables --help' for more information. - ip6tables -w -t mangle -A qos_Default_ct -m mark --mark 0/0x0f -s 192.168.1.161 -m comment --comment TMP-delete -j MARK --set-mark 68/0xff
ip6tables v1.6.1: host/network
192.168.1.161' not found Try
ip6tables -h' or 'ip6tables --help' for more information.
(...)
- iptables -w -t mangle -A qos_Default_ct -m mark --mark 0/0x0f -d 192.168.1.161 -m comment --comment TMP-delete -j MARK --set-mark 68/0xff
- iptables -w -t mangle -A qos_Default_ct -m mark --mark 0/0x0f -s 192.168.1.161 -m comment --comment TMP-delete -j MARK --set-mark 68/0xff