0

I use HTB for TC and mark packets with iptables. First I mark a range of IPs (like 192.168.1.0/24). Now I want to apply a htb class to each of these IPs separately. If I add a class and a filter for this mark, this filter applies to all IPs in this range. But I want to apply this class to each of IPs separately. I don't want to mark each of these IPs one by one. I'd be glad if you suggest me another solution. this is my code right now. it applied to all of IPs in range. Not each IP - one by one -in that range.

``` tc class add dev ens37 parent 1:1 classid 1:8 htb rate 1mbit ceil 1mbit
iptables -t mangle -A POSTROUTING -o br0 -d 192.168.1.1/24 -j MARK --set-mark 0x108
tc filter add dev ens37 protocol ip parent 1:0 prio 0 handle 0x108 fw flowid 1:8 ```

but I want each ip in range has 1mbit rate .

3

0

You must log in to answer this question.

Browse other questions tagged .