Traffic Shaping – Using tc Filter to Catch All Traffic

filterqostctraffic-shaping

How Can I configure a "catch all" filter with tc filter?

I tested with the following code but it gave me the error: "Unknown filter "1:100", hence option "protocol" is unparsable":

tc filter add dev $IF_LAN parent 1:100 protocol ip prio 7 flowid 1:190

Thanks in advance.

Best Answer

Give something like this a try for a catch-all

tc filter add dev $IF_LAN parent 1: protocol ip prio 7 u32 match ip dst 0.0.0.0/0 flowid 1:190