Hi!
Is there any way that can copy packets from a network card to another network card in a PC? Don't tell me use a hub, I need to this in software way in a PC!
For example, when wlan0 received a packet, how to copy that packet to wlan1, pretends it's wlan1 received that packet???
I already wrote a TARGET module for iptables to change IP destination.
For example, if wlan0 is 192.168.0.1, wlan1 is 192.168.1.1, I change every packets' (arrive at wlan0) IP destination to 192.168.1.1, but it's not working!! wlan1 didn't receive anything(checksum is correct). I check /proc/sys/net/ipv4/ip_forward is 1.
Could someone give me a hand? Thanks!