This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

tcprewrite -N --pnat=10.0.0.39/32:10.0.0.39/32,192.168.1.1/32:192.168.1.1/32 -i ./upload.pcap -o ./upload_ip1.pcap

and I get: Unable to parse as a vaild CIDR: --pnat=10.0.0.39

asked 11 Sep, 03:02

kdani's gravatar image

kdani
26559
accept rate: 0%

Note that tcprewrite doesn't come from the Wireshark developers; it's from these people.

(11 Sep, 22:49) Guy Harris ♦♦

The parameter "-N" and "--pnat=" are the same (just long and short version). Therefore just specify one of them, e.g.

tcprewrite -N 10.0.0.39/32:10.0.0.39/32,192.168.1.1/32:192.168.1.1/32 -i ./upload.pcap -o ./upload_ip1.pcap

permanent link

answered 11 Sep, 04:54

Uli's gravatar image

Uli
9031515
accept rate: 29%

actually - the right answer would be to use only 1 pair - this code replace the ip with itself - but you are correct about using both -n and --pnat

(11 Sep, 23:39) kdani
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×5
×2

question asked: 11 Sep, 03:02

question was seen: 364 times

last updated: 11 Sep, 23:39

p​o​w​e​r​e​d by O​S​Q​A