OpenVZ Forum


Home » General » Support » Use "tc filter add" in Container (Which kernel module to load?)
Use "tc filter add" in Container [message #51636] Sat, 30 August 2014 15:25 Go to next message
martin_g is currently offline  martin_g
Messages: 2
Registered: August 2014
Junior Member
From: *dip0.t-ipconnect.de
Hi,

I have to use tc in vz containers. I was able to get htb working by "modprobe sch_htb" on host system. But I am not for filtering.

tc filter add dev eth1.1 protocol ip handle 1 fw flowid 1:10
RTNETLINK answers: No such file or directory
We have an error talking to the kernel
tc filter show dev eth1.1 root

Filter show stays without error message but I am not able to add a filter. Is there any other kernel module I have to load?

Regards Martin
Re: Use "tc filter add" in Container [message #51637 is a reply to message #51636] Sun, 31 August 2014 07:56 Go to previous message
martin_g is currently offline  martin_g
Messages: 2
Registered: August 2014
Junior Member
From: *dip0.t-ipconnect.de
After some thinking about I found the solution by using it on the host system

root@shproxmox2:~# lsmod | sed 's/\s.*$//' > pre_htb
root@shproxmox2:~# tc qdisc add dev eth0.1 root handle 1: htb default 10
root@shproxmox2:~# lsmod | sed 's/\s.*$//' > post_htb
root@shproxmox2:~# diff pre_htb post_htb
1a2
> sch_htb
root@shproxmox2:~# lsmod | sed 's/\s.*$//' > pre_filter
root@shproxmox2:~# tc filter add dev eth0.1 protocol ip handle 1 fw flowid 1:10
root@shproxmox2:~# lsmod | sed 's/\s.*$//' > post_filter
root@shproxmox2:~# diff pre_filter post_filter
1a2
> cls_fw


So it is cls_fw (need for fw and not for filter)
Previous Topic: logging to syslog?
Next Topic: Kernel module missing (in host, outside openvz environment)
Goto Forum:
  


Current Time: Sat May 26 15:40:53 GMT 2018