I have a problem in which I need to process some packets and send out to more than one interface/network.
My solution is to send the packet to a loopback/dummy interface and based on the Linux routing table packet shall be forwarded to corresponding interface/network.
Problem: packets from the application are sent to loopback/dummy interface but its not forwarded based on routing table.
Is there any way to forward a packet from loopback/dummy interface based on routing table.?
I have tried accept the packet in FORWARD chain in iptables, but packet was not coming here. I tired enabling /ipv4/ip_forwarding, this also didnt help.
edit My device is an intermediate device that collect packet from One interface (WAN) and manipulates each packet and forward it to proper destination (different LAN). Now my problem is I don't know which interface to send as there are n number of out interface. I need to direct the packet based on the ip.dst in the incoming packet.