[Click] IPRewriter Patterns
Miguel Naranjo
M.Naranjo-Perea at cs.ucl.ac.uk
Tue Aug 5 12:01:41 EDT 2008
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
More information about the click
mailing list