Hello
Je cherche a classer par prioriter celon la taille des paquets. le débit importe peux (rate est cependant exiger)
Je fait donc 1 classe dans le qu’elle je places les “classe fille” qui elle on des prioriter.
1 ere question comment afficher le suivi des paque dans la table mangle ?
voila ce que j’utilise:
echo "==================== table filter =================== " && tc -s filter ls dev eth0 && echo "==================== Les class =================== " && tc -s class ls dev eth0 && echo "==================== La table mangle =============== "&& iptables -t mangle -L MONLIMITEUR-OUT && echo "==================== Iptables =================== "
et j’obtien:
==================== table filter ===================
filter parent 1: protocol ip pref 1 fw
filter parent 1: protocol ip pref 1 fw handle 0x15 classid 1:11
filter parent 1: protocol ip pref 2 fw
filter parent 1: protocol ip pref 2 fw handle 0x16 classid 1:12
filter parent 1: protocol ip pref 3 fw
filter parent 1: protocol ip pref 3 fw handle 0x17 classid 1:13
filter parent 1: protocol ip pref 4 fw
filter parent 1: protocol ip pref 4 fw handle 0x18 classid 1:14
filter parent 1: protocol ip pref 5 fw
filter parent 1: protocol ip pref 5 fw handle 0x19 classid 1:15
filter parent 1: protocol ip pref 6 fw
filter parent 1: protocol ip pref 6 fw handle 0x1a classid 1:16
filter parent 1: protocol ip pref 7 fw
filter parent 1: protocol ip pref 7 fw handle 0x1b classid 1:17
filter parent 1: protocol ip pref 49152 fw
filter parent 1: protocol ip pref 49152 fw handle 0x14 classid 1:10
==================== Les class ===================
class htb 1:20 root prio 0 rate 31281Mbit ceil 31281Mbit burst 0b cburst 0b
Sent 101061 bytes 1436 pkt (dropped 0, overlimits 0 requeues 0)
rate 12264bit 21pps backlog 0b 0p requeues 0
lended: 1436 borrowed: 0 giants: 0
tokens: 0 ctokens: 0
==================== La table mangle ===============
Chain MONLIMITEUR-OUT (1 references)
target prot opt source destination
MARK tcp -- anywhere anywhere length 0:32 MARK set 0x14
MARK tcp -- anywhere anywhere length 33:50 MARK set 0x15
MARK tcp -- anywhere anywhere length 51:70 MARK set 0x16
MARK tcp -- anywhere anywhere length 71:100 MARK set 0x17
MARK tcp -- anywhere anywhere length 101:500 MARK set 0x18
MARK tcp -- anywhere anywhere length 501:1000 MARK set 0x19
MARK tcp -- anywhere anywhere length 1001:1200 MARK set 0x1a
MARK tcp -- anywhere anywhere length 1201:1500 MARK set 0x1b
MARK all -- anywhere anywhere mark match 0x0 MARK set 0x14
==================== Iptables ===================
Donc je n’ai que les statistique de la classe ! La table mangle ne fourni que règle des marcage des paquets
Doit-je faire une classe par branche et attribuer les priorités aux classe ?
Ou est-ce que la méthode utilisée ici est la bonne ?
Enfin est ce possible de voir les paquet (comme la classe) marquer par la table mangle et pas juste les règles
Merci d’avance