Windows 10: Firewall blocking access from Hyper-V VM to host over Internal network even though there is...

Discus and support Firewall blocking access from Hyper-V VM to host over Internal network even though there is... in Windows 10 Network and Sharing to solve the problem; I have a Linux VM which is using a Internal network to connect to the host with NAT enabled. The host IP address is 192.168.215.1 and the Linux VM has... Discussion in 'Windows 10 Network and Sharing' started by Mark Sztainbok, May 21, 2020.

  1. Firewall blocking access from Hyper-V VM to host over Internal network even though there is...


    I have a Linux VM which is using a Internal network to connect to the host with NAT enabled. The host IP address is 192.168.215.1 and the Linux VM has an IP address of 192.168.215.2.


    I have the following firewall rule which allows access from the Hyper-V subnet to the host:

    Firewall blocking access from Hyper-V VM to host over Internal network even though there is... 994d50b4-ba32-400f-8935-c7cb403922f7?upload=true.png


    However when I try to access the host from the VM, the packets are being dropped:

    Firewall blocking access from Hyper-V VM to host over Internal network even though there is... 545039e0-2ddf-4928-aee8-e7b13793caca?upload=true.png


    I've looked at the WFP filters and it's being dropped by this filter even though there is a filter above it which represents the rule:

    <item>

    <filterKey>{97969ea2-81ed-486d-94fd-1e7aa27a8e70}</filterKey>

    <displayData>

    <name>Query User</name>

    <description>Prompt the User for a decision corresponding this Inbound Traffic</description>

    </displayData>

    <flags/>

    <providerKey>{decc16ca-3f33-4346-be1e-8fb4ae0f3d62}</providerKey>

    <providerData>

    <data>ab43000000000000</data>

    <asString>.C......</asString>

    </providerData>

    <layerKey>FWPM_LAYER_ALE_AUTH_RECV_ACCEPT_V4</layerKey>

    <subLayerKey>{b3cdd441-af90-41ba-a745-7c6008ff2301}</subLayerKey>

    <weight>

    <type>FWP_UINT8</type>

    <uint8>8</uint8>

    </weight>

    <filterCondition numItems="1">

    <item>

    <fieldKey>FWPM_CONDITION_ORIGINAL_PROFILE_ID</fieldKey>

    <matchType>FWP_MATCH_EQUAL</matchType>

    <conditionValue>

    <type>FWP_UINT32</type>

    <uint32>1</uint32>

    </conditionValue>

    </item>

    </filterCondition>

    <action>

    <type>FWP_ACTION_BLOCK</type>

    <filterType/>

    </action>

    <rawContext>0</rawContext>

    <reserved/>

    <filterId>142780</filterId>

    <effectiveWeight>

    <type>FWP_UINT64</type>

    <uint64>9223372036854791168</uint64>

    </effectiveWeight>

    </item>


    The odd thing is that I can access 192.168.50.81 which is the IP address of the Ethernet connection of the host but not the actual IP address of the virtual network adapter i.e. 192.168.215.1.


    Any thoughts about what is blocking the access to the host IP address in the virtual network and how to fix it?

    :)
     
    Mark Sztainbok, May 21, 2020
    #1
  2. HP2294 Win User

    Hyper-V host cannot RDP into local clients running in an internal network

    I have installed Hyper-V on my Windows 10 machine and are running a few different test machines on it. My test machines have two Nics -- One is disabled and primarily used when I need them to connect with the internet for various downloads etc. The other
    Nic is connected to an internal switch on the host with hardcoded IP's allowing the VMs to always communicate with each other.

    My problem is when I attempt to RDP into the VMs from the host machine I am not able to reach them. IF I log into the machines first through the Hyper-V console and toggle a Nic (i.e. disable/enable one of the nics) I am able to RDP into the VM until it
    is rebooted again (My host is a laptop so they are being shutdown nightly).

    I did mess around with the network settings on a previous setup and had it working -- but I am unable to reproduce the same settings. Currently the host is all "auto" setup by the system with three switches:

    • External linked to my Wireless Nic
    • External Linked to my Physical Nic
    • Internal switch used for the VM's communicate amongst each other
    Any ideas on what network settings I am missing that will allow me to connect to the VM's instantly through an RDP connection? (I can console connect but prefer using RDCMan).

    Thanks,

    HP
     
    HP2294, May 21, 2020
    #2
  3. Nikhar_K Win User
    Get access to VM machine on Hyper-V from login screen of Host PC

    Hi Steven,

    Thank you for writing to Microsoft Community Forums.

    I understand that you want to get access to the VM machine on Hyper-V from the login screen of the host PC. However, as you are using Hyper-V and VM, I suggest you to post your query in

    TechNet forums
    , where we have support professionals who are well equipped with the knowledge on Hyper-V and VM’s.

    Hope it helps.

    Nikhar Khare

    Microsoft Community - Moderator
     
    Nikhar_K, May 21, 2020
    #3
  4. Dave Win User

    Firewall blocking access from Hyper-V VM to host over Internal network even though there is...

    Providing Network Access to a Windows 10 Pro Guest Under Hyper-V Using an Internal Virtual Switch

    I am running Windows 10 Pro 1903 on a physical machine. On that machine, I am running Hyper-V. I have a Windows 10 Pro 1903 guest running under Hyper-V.

    I would like the guest to have network access beyond the host (i.e. access to my LAN and to the Internet). This should be possible in three ways:

    1. The Hyper-V NAT-based default virtual switch
    2. A Hyper-V external switch
    3. A Hyper-V internal switch

    Hyper-V NAT-Based Default Virtual Switch

    The usual way to provide network access to a guest is to bind the guest's NIC to the Hyper-V default switch. This gives network access via NAT.

    I prefer to not do this for two reasons:

    1. When I perform network captures at various places in my network, traffic from the host and traffic from the guest are indistinguishable since all guest traffic gets NATed to have a source IP equal to that of the host.
    2. Connections to the guest cannot be made without getting into port forwarding configuration via PowerShell.

    Hyper-V External Virtual Switch

    Network access can be provided by binding the guest's NIC to a Hyper-V external switch. This will put the guest directly on the physical LAN.

    This solution works only if the host has a wired Ethernet connection. It does not work if the host's network connectivity is via Wi-Fi. Hence, this is not an option for me.

    Hyper-V Internal Virtual Switch

    It seems that one should be able to provide network access to a guest using these steps:

    1. Binding the guest's NIC to a Hyper-V internal virtual switch that is shared with the host
    2. Designating the host as the guest's default gateway
    3. Enabling IP forwarding on the host

    I have set up this configuration but have been unable to get it to work.

    Unsure if IP Forwarding is Properly Enabled

    To enable IP forwarding on the host, I made this registry setting:

    • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\IPEnableRouter
    • REG_DWORD
    • 1

    I also enabled the Routing and Remote Access service.

    My experience on Windows 7 and earlier was that only the registry modification was necessary. For Windows 10, I've seen many references that one must also enable Routing and Remote Access. I am unsure what the proper way to enable IP forwarding in Windows 10 is since I haven't seen it work with either the registry modification or the enabling of Routing and Remote Access, alone or in combination.

    Firewall on Host

    I have added / enabled both inbound and outbound firewall rules on the host that explicitly allow all traffic from the guest.

    I had already tried disabling the firewall on the host and found no difference in behavior. So, I did not expect this to make a difference, and indeed it did not.

    Request for Help

    Is anybody able to see where I may be going wrong in attempting to provide network access to the guest via a Hyper-V internal switch?

    If additional information is needed, I will be glad to provide it.

    Thank you in advance for any assistance provided.
     
Thema:

Firewall blocking access from Hyper-V VM to host over Internal network even though there is...

Loading...
  1. Firewall blocking access from Hyper-V VM to host over Internal network even though there is... - Similar Threads - Firewall blocking access

  2. Hyper-V VM is not able to access its network?

    in Windows 10 Network and Sharing
    Hyper-V VM is not able to access its network?: I have created Windows 10 VM under a Windows 10 host. The VM was created using just the preconfigured "Windows 10 Dev Environment" template. It used to work before, but something changed, and now it's not working. Looking at the VM settings, it shows that the VM is configured...
  3. Hyper-V guest VM blocks host's network connection

    in Windows 10 Customization
    Hyper-V guest VM blocks host's network connection: Hi, I have a weird issue on my Windows 10 Enterprise and I've spent hours to solve it in vain. I have HyperV enabled with several VMs created. I have an external virtual switch created for my Wifi connection that is used by the VMs. Everything was running just fine for a...
  4. HYPER-V RDP to a VM on the same host

    in Windows 10 Installation and Upgrade
    HYPER-V RDP to a VM on the same host: Hi folks particularly @Kari (the expert on HYPER-V) !!!! I've got a test Linux VM on a laptop running with HYPER-V. I've installed XRDP on it so I was wondering would es RDP from the host to the VM enable me to get sensible resolution on the vm - Needs a bit of fiddling on...
  5. Remote access to Hyper-V VM

    in Windows 10 Virtualization
    Remote access to Hyper-V VM: I have a Hyper-V VM created with a Windows OS running in it. Is there a way I can connect to the VM via Remote Desktop from a computer other than the host computer? Thanks! John 130025
  6. Get access to VM machine on Hyper-V from login screen of Host PC

    in Windows 10 Customization
    Get access to VM machine on Hyper-V from login screen of Host PC: Hello everyone, I bought W10 pro last week. I've set up some VM's for whom i had some older Windows keys for. My question is, i want to use these VM's as a sort of user. Because my real Local user accounts have important software that i want to keep seperate (like one is a...
  7. @KARI access Linux HDD's in HYPER-V VM

    in Windows 10 Virtualization
    @KARI access Linux HDD's in HYPER-V VM: Hi there particularly @Kari. I'm playing around now with HYPER-V. I want to access 1 X 9 TB and 1 X 7 TB Linux internal HDD's from a HYPER-V VM (Centos 7). I'm running HOST W10 pro x-64. I've taken the two HDD's offline to the HOST but can't seem to get the VM to...
  8. Hyper-V VM shows host taskbar

    in Windows 10 Virtualization
    Hyper-V VM shows host taskbar: Today, mysteriously both my Hyper-V vms are showing the taskbar of the host instead of the vm in enhanced session mode. They have always shown vm's taskbar until today. I can use the Windows key to bring up vm's task bar, but this is really annoying. Does anyone have an idea...
  9. How can Hyper-V VM access shared Host PC drive/folder?

    in Windows 10 Virtualization
    How can Hyper-V VM access shared Host PC drive/folder?: I have just installed Hyper-V and Windows 10 on both Host & VM, and set up a wifi virtual switch so the VM can connect to the internet. Fine. But the Network icon in the Folders only shows its own desktop and "tsclient" but not the host PC. How do I get the VM to see the...
  10. Copying files from external drive to internal Hyper-V VM much faster.

    in Windows 10 Virtualization
    Copying files from external drive to internal Hyper-V VM much faster.: I always found it very slow copying files as a network share from Host to PC e.g. at 10 MB/s. Today, I had to copy a file, and it blitzed along at 80 MB/S which is not far off my hard drive maximum speed. This is using 16299 Fast/Slow Ring build. As an aside, I...