Block port on hyper-v host

Silver BoY 1 Reputation point
2021-06-01T09:24:37.387+00:00

Hi,

I need a help on how to block port 25 for all hyper-v guests.

VMNetworkAdapterExtendedAcl is no use for me as all needs to be done manually.

Thank you

Windows for business | Windows Client for IT Pros | Storage high availability | Virtualization and Hyper-V
{count} votes

4 answers

Sort by: Most helpful
  1. Anonymous
    2021-06-02T02:44:56.607+00:00

    Hi,
    101505-image.png
    As in the above screenshot, you can block the ports by setting new rules to it:
    First you specify the certain type you want to set:
    101571-image.png
    Then the detailed settings:
    101572-image.png
    Then the action you want to take:
    101545-image.png
    Then the applying range:
    101546-image.png

    Hope this will help.
    Best regards,
    Danny

    -----------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Silver BoY 1 Reputation point
    2021-06-07T21:36:06.88+00:00

    Hi Danny,

    The firewall rule is not working for hyper-v guests.

    0 comments No comments

  3. Anonymous
    2021-06-08T01:21:09.54+00:00

    Hi,
    I’ve done some research, but most recommendations that concerns port 25 is to configure firewall rules while the rest is not to block it. Here’s an issue similar to yours, please take a look:
    https://community.spiceworks.com/topic/2319994-block-port-25-on-hyper-v-hosts?utm_campaign=item&utm_medium=rss&utm_source=channel
    Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.

    103134-image.png
    Would you check this and see if there’s any incorrect configuration?

    Thanks for your understanding.
    Best regards,
    Danny

    -----------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  4. cheong00 3,486 Reputation points Volunteer Moderator
    2021-06-08T03:22:48.577+00:00

    The basic rule for this question is that, your firewall in host would only be involved if your VM guests are using NAT-mode for networking. If your guest is using virtual NIC then you can't block in on host as all traffics would be bypassing the firewall.

    However this could be managed with port ACLs of Hyper-V management cmdlet.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.