PCAP file to iptables
Hello,
I would like to get traffic that was captured to iptables.
I have tried tcpreplay, but tcpreplay cannot create traffic that is seen by iptables. Does anyone know how could I get data from a pcap file to iptables?
I'm using:
Ubuntu 10.10 32bit (Maverick)
iptables 1.4.4
Regards,
Andrey
Quoted 6 lines · andrey
Hello,
I would like to get traffic that was captured to iptables.
I have tried tcpreplay, but tcpreplay cannot create traffic that is seen by iptables.
Does anyone know how could I get data from a pcap file to iptables?
You already asked this -
http://marc.info/?l=netfilter&m=130832467126830&w=2
Because of that, receiver (logger) and sender (tcpreplay) need to work with two separate interfaces. You can realize that using real or virtual machines, or perhaps veth.ko.