tc filter add dev $IF_LOCAL protocol ip parent 1: pref 100 u32 \
match ip src 192.168.1.0/24 \
match ip dst 192.168.2.0/24 flowid 1:2

I need an alternative way, or the correct way for this command, to add a filter by both source address and destination address. Thx

The error i get is RTNETLINK answers: Invalid argument

PS: Is this a correct alternative:
iptables -A PREROUTING -t mangle -s 192.168.1.0/24 -d 192.168.2.0/24 -j MARK --set-mark 254
tc filter add dev $IF_LOCAL parent 1: protocol ip handle 254 pref 100 fw classid 1:2