It isn't editing packets; it's changing the port. And that is where the problem occurs.