Community discussions

MikroTik App
 
User avatar
floaty
Member
Member
Topic Author
Posts: 370
Joined: Sat Oct 20, 2018 1:24 am
Location: 52°08'32.34"N 14°39'05.0"E
Contact:

tools traffic-generator pcap-injection

Wed Nov 04, 2020 11:57 pm

.
Just tried to inject some modified packets into my home-network, but had no luck wenn I tried with externally captured traffic (wireshark, tcpdump).
So question: which format an injectable capture-file should be written in, to have allowance to pass by to the wire ?
Is only with a mikrotik-device captured traffic suitable or would be something from the list below a candidate ?
.
list.png
.
according to these slides:https://mum.mikrotik.com/presentations/ ... 963921.pdf
pcapng-format should work ... but not for me ?
.
[admin@chr-7-1] > tool traffic-generator inject-pcap pcap-file=test.pcap.pcapng once interface=71-e2-vlan100 without-paging 
   iteration: 1
  tx-packets: 0
    tx-bytes: 0

[admin@chr-7-1] > 
You do not have the required permissions to view the files attached to this post.
 
User avatar
floaty
Member
Member
Topic Author
Posts: 370
Joined: Sat Oct 20, 2018 1:24 am
Location: 52°08'32.34"N 14°39'05.0"E
Contact:

Re: tools traffic-generator pcap-injection

Thu Nov 05, 2020 9:42 am

.
with traffic captured on a MTik devices it works ... not a big deal;
but to replay "a situation" from somewhere else it would be nice to import such traffic !?
.
[admin@chr-7-1] > 
[admin@chr-7-1] > tool traffic-generator inject-pcap pcap-file=ntest.pcap once interface=71-e2-vlan100 
   iteration: 1
  tx-packets: 2
    tx-bytes: 140
[admin@chr-7-1] > 
[admin@chr-7-1] > tool traffic-generator inject-pcap pcap-file=ntest.pcap once interface=ether1
   iteration: 1
  tx-packets: 2
    tx-bytes: 140
[admin@chr-7-1] >
 
User avatar
floaty
Member
Member
Topic Author
Posts: 370
Joined: Sat Oct 20, 2018 1:24 am
Location: 52°08'32.34"N 14°39'05.0"E
Contact:

Re: tools traffic-generator pcap-injection  [SOLVED]

Thu Nov 05, 2020 1:14 pm

.
updated wireshark -> 3.4 ... tried again ... standard-wireshark-pcap works ... maybe mouse-jitter when I saved the pcap-file with the previous-version : |
.
[admin@chr-7-1] > tool traffic-generator inject-pcap pcap-file=ping-req#.pcap once interface=71-e2-vlan100 
   iteration: 1
  tx-packets: 1
    tx-bytes: 74
[admin@chr-7-1] > 
.
std-wshark.png
.
case closed
You do not have the required permissions to view the files attached to this post.