Welches Kernel Modul für "tc filter"

Einrichten des lokalen Netzes, Verbindung zu anderen Computern und Diensten.
Antworten
marting
Beiträge: 61
Registriert: 30.09.2008 17:31:05

Welches Kernel Modul für "tc filter"

Beitrag von marting » 30.08.2014 17:01:39

Hi,

ich muss in einem openvz Container tc (traffic control) verwenden. Für
/sbin/tc qdisc add dev eth1.1 root handle 1: htb default 10
RTNETLINK answers: No such file or directory
muss ich auf dem Host das entsprechende Modul laden:
modprobe sch_htb

Nun habe ich aber ds Problem, dass ich nicht finde, welches Modul tc filter benötigt:
tc filter add dev eth1.1 [....]
RTNETLINK answers: No such file or directory
We have an error talking to the kernel

Kann mir jemand sagen, welches Modul ich hierfür laden muss?

Viele Grüße
Martin

marting
Beiträge: 61
Registriert: 30.09.2008 17:31:05

Re: Welches Kernel Modul für "tc filter"

Beitrag von marting » 30.08.2014 17:43:36

Das Modul braucht man nicht für filter, sondern für fw. Kaum denkt man noch mal logisch nach, schon findet man eine gute Lösung für das Problem

Code: Alles auswählen

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
modprobe cls_fw ist also, was ich gesucht hatte

Antworten