Skip to contentSkip to conversation

PCAP file to iptables

DISCUSSION andrey 2 participants 2 messages Jun 22, 2011

lore
Share & tools
lore

andrey

author
#0 lore raw

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

#1 lore raw
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.