nictrace and port forwarding issue
Posted: 2. Feb 2017, 22:52
I have a VM using NAT networking with a port forward rule. This works fine. However, when packet capturing using the nictrace setting I can see that the port forwarded packets not only have the port mapped, but the source IP address is also mapped to the default gateway of the VM.
E.g. Incoming connection packet from 555.0.0.1 (yes I know this isn't valid, it's just for demonstration purposes). The port mapping rule forwards it to the guest VM. The source IP is mapped to 10.0.2.2, so the VM sees the packet as coming from 10.0.2.2, not 555.0.0.1.
This is a problem for my packet analysis software as it wrongly attributes the incoming connection to 10.0.2.2.
Is there a way to stop this behaviour so that port forwarding maps the ports but leave the IP addresses alone?
Thanks.
Kerry
E.g. Incoming connection packet from 555.0.0.1 (yes I know this isn't valid, it's just for demonstration purposes). The port mapping rule forwards it to the guest VM. The source IP is mapped to 10.0.2.2, so the VM sees the packet as coming from 10.0.2.2, not 555.0.0.1.
This is a problem for my packet analysis software as it wrongly attributes the incoming connection to 10.0.2.2.
Is there a way to stop this behaviour so that port forwarding maps the ports but leave the IP addresses alone?
Thanks.
Kerry