OpenVZ Forum


Home » General » Support » Use "tc filter add" in Container (Which kernel module to load?)
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
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)
 
Read Message
Read Message
Previous Topic: logging to syslog?
Next Topic: Kernel module missing (in host, outside openvz environment)
Goto Forum:
  


Current Time: Sat Aug 23 17:03:54 GMT 2025

Total time taken to generate the page: 0.11775 seconds