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 '17, 03:02 kdani |
One Answer:
The parameter "-N" and "--pnat=" are the same (just long and short version). Therefore just specify one of them, e.g.
answered 11 Sep '17, 04:54 Uli 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 '17, 23:39) kdani |
Note that tcprewrite doesn't come from the Wireshark developers; it's from these people.