Can't see external IPs in Wireshark when I use NAT, I know there's a command but I don't remember
Posted: 6. Jul 2017, 17:19
I have a Linux VM that is using NAT with port 4444 forwarded from the host. I have forwarded this port on my router and when I use Wireshark I can see that I am receiving connections from the outside.
The problem is that the source address of those connections is always set to 10.0.2.1 instead of their actual IP (the gateway used in NAT mode, the VM's IP is 10.0.2.15).
I have encountered this problem in the past and I could solve it by shutting down the machine and running a command that went like this:
But this is all I remember. Anyone know the rest of the command?
The problem is that the source address of those connections is always set to 10.0.2.1 instead of their actual IP (the gateway used in NAT mode, the VM's IP is 10.0.2.15).
I have encountered this problem in the past and I could solve it by shutting down the machine and running a command that went like this:
Code: Select all
VBoxManage --natalias or --nataliasmode <something>