Can't connect from outside to guest [VirtualBox]

11,123

The problem solved itself. Today I tried the virtio-net adapter type and suddenly I could connect from other network machines to the guest. Afterwards I switched the setting back and it was still working.

I suppose the reason for my problem wasn't the corporate's firewall rather the last VirtualBox update.

Edit: I experienced the problem again today. Not all packets could get through from the outside to the VM. One network bridge adapter and one NAT adapter were enabled. I had to disable the NAT adapter in order to successfully connect to the VM.

Share:
11,123
TheLostOne
Author by

TheLostOne

Updated on June 04, 2022

Comments

  • TheLostOne
    TheLostOne almost 2 years

    In my workplace all machines' MAC addresses need to be extra unlocked by the IT staff in order to access the network and internet.

    I want to setup a test server in a VM in VirtualBox which should be accessible from inside the network/subnet. In order to achieve this I thought about using a bridged network adapter with a manually specified MAC address borrowed from a currently turned off machine.

    This results in the following signal flow:

    [HOST] <--> [GUEST]: ping to guest isn't working but accessing the guest through other means works

    [Outside HOST] --> [GUEST]: connecting to the guest from other network machines doesn't work at all.

    The GUEST correctly gets an IP-address in the correct subnet and can also connect to the Internet.

    The machine of which I borrowed the MAC address normally can connect to the HOST and vice-versa.

    I've tried both Windows & Mac OS X hosts and Windows & Linux guest with the same result.

    I've tried exactly the same configuration at home and here it's possible to connect to the VM from other network machines.

    I know I could use a NAT adapter with port forwarding, what indeed works, but it's cumbersome to manually add all of the used ports.

    Is it possible that the strict network restriction at my workplace can somehow detect that two MAC addresses are being used through one NIC on the HOST (the one from the virtual adapter and the physical one) and thus blocking the incoming traffic?

    If yes is is it possible to trick the corporate firewall to think that the VM is a legitimate physical machine?

    Thank you

  • vehsakul
    vehsakul over 5 years
    Saved my day, at least half. Thanks!