Problem with traffic control with tc in Nano

Hi,
I want to use following rules in Nano. I enabled almost all kernel modules related to tc in kernel and then I compiled and installed the new kernel alongside with the generated modules.
Now when I apply these rules, it show errors for match in tc

sudo tc class add dev tun2 parent 1: classid 1:1 htb rate 95mbit
alias tclass='sudo tc class add dev tun1 parent 1:1'
tclass classid 1:10 htb rate 50kbit ceil 50kbit prio 1
tclass classid 1:20 htb rate 200kbit ceil 200kbit prio 2
tclass classid 1:30 htb rate 10mbit ceil 10mbit prio 3
sudo tc qdisc add dev tun1 parent 1:10 fq_codel
sudo tc qdisc add dev tun1 parent 1:20 fq_codel
sudo tc qdisc add dev tun1 parent 1:30 fq_codel

sudo tc filter add dev tun1 parent 1: basic match 'meta(priority eq 6)' classid 1:10
sudo tc filter add dev tun1 parent 1: basic match 'meta(priority eq 4)' classid 1:20

The list of loaded kernel modules:

sch_netem              10268  0
sch_tbf                 7864  0
bnep                   19078  2
xt_conntrack            3979  1
ipt_MASQUERADE          2634  1
nf_nat_masquerade_ipv4     3993  1 ipt_MASQUERADE
nf_conntrack_netlink    33497  0
xt_addrtype             3915  2
iptable_filter          3008  1
iptable_nat             3423  1
nf_conntrack_ipv4      14222  2
nf_defrag_ipv4          2129  1 nf_conntrack_ipv4
nf_nat_ipv4             8176  1 iptable_nat
nf_nat                 25276  2 nf_nat_masquerade_ipv4,nf_nat_ipv4
nf_conntrack          136973  6 nf_conntrack_ipv4,nf_conntrack_netlink,nf_nat_masquerade_ipv4,xt_conntrack,nf_nat_ipv4,nf_nat
br_netfilter           17784  0
zram                   29761  4
overlay                53326  0
userspace_alert         6606  0
nvgpu                1713465  18
spidev                 14635  0
bluedroid_pm           16123  0
ip_tables              21475  2 iptable_filter,iptable_nat
x_tables               38080  5 ip_tables,iptable_filter,ipt_MASQUERADE,xt_addrtype,xt_conntrack

The error is:

sudo tc filter add dev tun1 parent 1: basic match 'meta(priority eq 6)' classid 1:10
RTNETLINK answers: No such file or directory
We have an error talking to the kernel
$ sudo tc filter add dev tun1 parent 1: basic match 'meta(priority eq 4)' classid 1:20
RTNETLINK answers: No such file or directory
We have an error talking to the kernel

Sory for the late response, is this still an issue to support?

Thanks

Hi,

Sorry that we don’t have experience with this driver. Maybe other user can share their experience.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.