Er... Switching ip addr is enough, I'm replaying the traffic in a
openvswitch switch, I want the traffic to generate flows, which requires
the destination IP to be accessible. I can replace the IP to be addresses
in my network, but that means I can only generate flows whose destination
is inner IPs, while traffic from these inner IPs still cannot generate
flows. And that's why I want to exchange the ip addr, to generate flows for
traffic start from inner IPs.

2016-07-09 0:52 GMT+08:00 Aaron Turner <synfina...@gmail.com>:

> Nope, there isn't any "swap source & dest" option.  I can maybe sorta
> understand swapping the src/dst IP, but I have no idea why anyone
> would want to do the same for the port.  Care to share your use case?
>
>
> --
> Aaron Turner
> https://synfin.net/         Twitter: @synfinatic
> Those who would give up essential Liberty, to purchase a little temporary
> Safety, deserve neither Liberty nor Safety.
>     -- Benjamin Franklin
>
>
> On Fri, Jul 8, 2016 at 4:56 AM, Big Strong <fangtu...@gmail.com> wrote:
> > is it possible to use tcprewrite to exchange the src ip/port and dst
> > ip/port? I mean exchange all the packets automatically, instead of one by
> > one handcraft modification for each packet.
> >
> >
> ------------------------------------------------------------------------------
> > Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> > Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> > present their vision of the future. This family event has something for
> > everyone, including kids. Get more information and register today.
> > http://sdm.link/attshape
> > _______________________________________________
> > Tcpreplay-users mailing list
> > Tcpreplay-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/tcpreplay-users
> > Support Information: http://tcpreplay.synfin.net/trac/wiki/Support
>
>
> ------------------------------------------------------------------------------
> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
> _______________________________________________
> Tcpreplay-users mailing list
> Tcpreplay-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tcpreplay-users
> Support Information: http://tcpreplay.synfin.net/trac/wiki/Support
>
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Tcpreplay-users mailing list
Tcpreplay-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tcpreplay-users
Support Information: http://tcpreplay.synfin.net/trac/wiki/Support

Reply via email to