Difference between revisions of "Rewrite PCAPs"
From Observer GigaFlow Support | VIAVI Solutions Inc.
Kevin Wilkie (Talk | contribs) (Created page with "The below will change the pcap. Reading from the file Denver_10.238.12.30_10MinsNAT.pcap Writing to the file Denver_10.238.12.30_10MinsNATTo15_1.pcap Changing the destination ...") |
Kevin Wilkie (Talk | contribs) |
||
Line 1: | Line 1: | ||
The below will change the pcap. | The below will change the pcap. | ||
+ | |||
Reading from the file Denver_10.238.12.30_10MinsNAT.pcap | Reading from the file Denver_10.238.12.30_10MinsNAT.pcap | ||
+ | |||
Writing to the file Denver_10.238.12.30_10MinsNATTo15_1.pcap | Writing to the file Denver_10.238.12.30_10MinsNATTo15_1.pcap | ||
+ | |||
Changing the destination mac (enet-dmac) to 00:e0:4c:71:78:d3 (this should be changed to the mac address of the server) | Changing the destination mac (enet-dmac) to 00:e0:4c:71:78:d3 (this should be changed to the mac address of the server) | ||
+ | |||
Changing the destination ip (dstipmap) to 172.21.1.1 (this should be changed to the ip address of the server) | Changing the destination ip (dstipmap) to 172.21.1.1 (this should be changed to the ip address of the server) | ||
tcprewrite --enet-dmac=00:e0:4c:71:78:d3 --dstipmap=0.0.0.0/0:172.21.1.1/32 --infile=Denver_10.238.12.30_10MinsNAT.pcap --outfile=Denver_10.238.12.30_10MinsNATTo15_1.pcap -C | tcprewrite --enet-dmac=00:e0:4c:71:78:d3 --dstipmap=0.0.0.0/0:172.21.1.1/32 --infile=Denver_10.238.12.30_10MinsNAT.pcap --outfile=Denver_10.238.12.30_10MinsNATTo15_1.pcap -C |
Latest revision as of 15:34, 27 September 2023
The below will change the pcap.
Reading from the file Denver_10.238.12.30_10MinsNAT.pcap
Writing to the file Denver_10.238.12.30_10MinsNATTo15_1.pcap
Changing the destination mac (enet-dmac) to 00:e0:4c:71:78:d3 (this should be changed to the mac address of the server)
Changing the destination ip (dstipmap) to 172.21.1.1 (this should be changed to the ip address of the server)
tcprewrite --enet-dmac=00:e0:4c:71:78:d3 --dstipmap=0.0.0.0/0:172.21.1.1/32 --infile=Denver_10.238.12.30_10MinsNAT.pcap --outfile=Denver_10.238.12.30_10MinsNATTo15_1.pcap -C