I'm new to networking, so sorry in advance if my question is unclear. I have auto generated pcaps, each with one TCP flow which I would like to transmit using a traffic generator. The problem is that on those pcaps both the peers have the same IP, which is something the traffic generator does not like. So, I tried to change the IPs using tcprewrite --endpoints. It worked for some pcaps. For others I got a strange behavior where the sender is always IP1 and the receiver is always IP2, (i.e the traffic always goes from IP1 to IP2, instead of being bidirectional). For example:
Also now I have 2 flows, since the IPs got scrambles in relation to the ports (the ports stayed the same as they were). Any idea what might cause this problem? Or is there a way to achieve what I want without tcprewrite? Thanks Alot asked 11 Jun '17, 07:04 eladw |