Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

How can I remove a single filter?

tc filter show dev peth1

shows

filter parent 1: protocol ip pref 16 u32
filter parent 1: protocol ip pref 16 u32 fh 800: ht divisor 1
filter parent 1: protocol ip pref 16 u32 fh 800::800 order 2048 key ht 800 bkt 0 flowid 1:2 match 5bd6aaf9/ffffffff at 12

Why does that not work?:

tc filter del dev peth1 pref 1 protocol ip handle 800:800 u32
share|improve this question

1 Answer 1

up vote 1 down vote accepted

Old post, but for reference, it wouldn't work for a few reasons:

  • The priority should be 16 and not 1
  • The filter handle should be 800::800 and not 800:800
  • You must supply the parent qdisc that the filter is attached to

This should work:

tc filter del dev peth1 parent 1: handle 800::800 prio 16 protocol ip u32
share|improve this answer
    
I did not think that I ever get an answer :D Thank you! –  Vince Sep 5 at 6:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.