Can't see external IPs in Wireshark when I use NAT, I know there's a command but I don't remember

This is for discussing general topics about how to use VirtualBox.
Post Reply
MReid
Posts: 1
Joined: 6. Jul 2017, 17:14

Can't see external IPs in Wireshark when I use NAT, I know there's a command but I don't remember

Post by MReid »

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:

Code: Select all

VBoxManage --natalias or --nataliasmode <something>
But this is all I remember. Anyone know the rest of the command?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Can't see external IPs in Wireshark when I use NAT, I know there's a command but I don't remembe

Post by Perryg »

This http://www.virtualbox.org/manual/ch09.h ... -adv-alias and other settings are defined in your users manual.
Post Reply