How to filter the traffic

In my router, br-lan receives wlan and eth packets, I want to drop the incoming eth packets in mangle & nat table or filter table.
bypass ethernet packets

iptables -t mangle -A TPROXY -p udp -s ${IP_RANGE} ! -d ${IP_RANGE}
--match multiport ! --dports ${UDP_NON_INTERCEPT} -j REDIRECT --to-port 1228

iptables -t nat -A NATTCP -p tcp -s ${IP_RANGE} ! -d ${IP_RANGE}
--match multiport ! --dports ${TCP_NON_INTERCEPT} -j REDIRECT --to-port 1226

In this Iptable command want to pass only wlan packets

for packets coming from specific interface, you need to add -i in these rules

Hi laiba , since both ethernet and wifi packets are via br-lan , how can we specify -i interface which will only pass the wlan packets?

did you test these rule? what is the output?

Yes i did . I'm receiving both ethernet and wlan packets. Ex: If i did iperf transfer in wired mode that is also seen in 1226 port. But here i don't want the iperf to be redirected to 1226 and want to bypass any ethernet traffic

And i cannot specify -i br-lan as this will receive both eth and wlan interfaces packets.

Its your problem solved?
if not, then you can try it with IP and add rules which traffic you want to redirect.

ip command will print the br-lan interface, it will not give the actual interface from where the packets are coming it ex from wlan or ethernet