Hello
I use it creating a dummy interface and replay the tzsp traffic to it with tcpreplay.
modprobe dummy
ip link set name eth10 dev dummy0
ifconfig eth10 192.168.42.42
trafr -s | tcpreplay --topspeed -i eth10 -
python sensor.py
python server.py
and chan chan chan chan....you can use maltrail using eth10
HTH
M.
Thanks you for share that, its sounds really good, but I have a problem. I am running under openvz container and I can't load module dummy, do you know how could I do it?
# modprobe dummy
modprobe: ERROR: ../libkmod/libkmod.c:507 kmod_lookup_alias_from_builtin_file() could not open builtin file '/lib/modules/2.6.32-openvz-042stab120.18-amd64/modules.builtin.bin'
modprobe: FATAL: Module dummy not found.
I tried loading iptables modules, netfilter... not luck.
=======================================================
I tried doing it in a VirtualBox server and I get this:
# ./trafr -s | tcpreplay --topspeed -i eth10 -
sending out eth10
processing file: -
Fatal Error in tcpreplay.c:replay_file() line 252:
Error opening pcap file: unknown file format
Thanks.