HTB and IPv6

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Title: HTB and IPv6

Hi,

I'm trying to use HTB for IPv6 packets. In the LARTC archive I found a thread on this issue where a solution was described. The idea is to mark a user-defined chain then use the fwmark for filtering. However my attempt wasn't successful. I'm thinking of trying my luck with the u32 filter. This is what I did, any comment is greatly appreciated. Thank you all.

tc qdisc add dev eth0 root handle 1: htb default 15
tc class add dev eth0 parent 1:  classid 1:1 htb rate 100kbit ceil 100kbit
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 30kbit ceil 100kbit
tc class add dev eth0 parent 1:1 classid 1:11 htb rate 10kbit ceil 100kbit
tc class add dev eth0 parent 1:1 classid 1:12 htb rate 60kbit ceil 100kbit
ip6tables -t mangle -N queue1
ip6tables -t mangle -A queue1 -j MARK --set-mark 0x10
ip6tables -t mangle -A queue1 -j ACCEPT
ip6tables -t mangle -A OUTPUT -d 2001:411:1:1:2:: -j queue1
ip6tables -t mangle -N queue2
ip6tables -t mangle -A queue2 -j MARK --set-mark 0x20
ip6tables -t mangle -A queue2 -j ACCEPT
ip6tables -t mangle -A OUTPUT -d 2001:411:2:1:2:: -j queue2
ip6tables -t mangle -N queue3
ip6tables -t mangle -A queue3 -j MARK --set-mark 0x30
ip6tables -t mangle -A queue3 -j ACCEPT
ip6tables -t mangle -A OUTPUT -d 2001:411:3:1:2:: -j queue3
tc filter add dev eth0 protocol ipv6 parent 1:0 prio 1 handle 0x10 fw flowid 1:10
tc filter add dev eth0 protocol ipv6 parent 1:0 prio 1 handle 0x20 fw flowid 1:11
tc filter add dev eth0 protocol ipv6 parent 1:0 prio 1 handle 0x30 fw flowid 1:12
tc qdisc add dev eth0 parent 1:10 handle 20: pfifo limit 5
tc qdisc add dev eth0 parent 1:11 handle 30: pfifo limit 5
tc qdisc add dev eth0 parent 1:12 handle 40: pfifo limit 5



_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux