Miguel, sorry for the delay. While IPRewriter does not support this directly, it should be relatively easy to modify to do so. The code -- in the new rewriter version -- is in elements/ip/iprwpattern.cc:rewrite_flowid.
Eddie Miguel Naranjo wrote: > Hello, I'm trying to use IPRewriter to modify both source IP and > destination IP (same with TCP ports). > > I can change the destination IP to a static value that I know. However I > need the source IP to be rewritten to the former destination IP (same > for tcp source port). > Is it possible to write a pattern which has access to the source IP > address of the incoming packet? > > Something like: > IPRewriter(pattern $packet_dest_ip $packet_dest_port 10.0.0.5 50000 0 1); > > Thank you. > > Miguel Naranjo > _______________________________________________ > click mailing list > [email protected] > https://amsterdam.lcs.mit.edu/mailman/listinfo/click _______________________________________________ click mailing list [email protected] https://amsterdam.lcs.mit.edu/mailman/listinfo/click
