I have a setup that receives mirrored traffic from many IP addresses on my network card (eth0).
I wanted to send the received packets destined to a particular IP address(say 8.8.8.8) to a docker container running on the same host (say with IP 172.17.0.2)
Packet (dst 8.8.8.0 etc) -> eth0 -> Filter 8.8.8.8 using iptables -> docker container (172.17.0.2)
Since the packets are not destined to me I am unable to filter them using iptables and DNAT it to the docker container.
Since I am new to it, any help would be highly appreciated.
There had been one similar question but didn't really get it. Filter mirrored port traffic using iptables
Edit: The NIC is already in Promiscuous mode as I am simultaneously running tcpdump on it. I don't know if it helps in answering but the NIC is being used for the sole purpose of receiving mirrored traffic. And doesn't have an IPv4 assigned to it.