Configuring Port ACLs in Windows Server 2012 Hyper-V Virtual Machine

ACLs (Access Control Lists) are essentially a list of permit or deny statements that control network access to enforce a security policy. ACLs are an integral part of end-to-end security solution. Windows Server 2012 Hyper-V introduces new feature called Port ACLs. Using Port ACLs, rules can be applied to a Hyper-V switch port. The rules specify whether packets are allowed or denied on their way in or out of the VMs. So Port ACLs will act as Cisco router ACLs, where we define the direction, address and action for network rules. But Windows Server 2012 Hyper-V Port ACLs will not block the network traffic based on source and destination ports. For this feature we have to install third party software such as 5NINE software in Hyper-V host. To configure Port ACLS in Hyper-V, we use PowerShell.  There is no GUI (Graphical User Interface) till now.

Configuring Port ACLs

There are three available commands to configure Port ACLs in Hyper-V.

1.  Get-VMNetworkAdapterAcl                —     View the existing ACLs

2.  Add-VMNetworkAdapterAcl              —      Add the new ACLs

3.  Remove-VMNetworkAdapterAcl      —      Remove the existing ACLs

Port ACL

In Kathmandu lab scenario:

  • LEG-VM1 will be accessed only from Legal Dept. network (
  • Block access to LEG-VM1 from HR Dept. network ( and Admin Dept. single IP Address (


Port ACL Apply

PS Port ACL Final

5NINE software Console




With Port ACLs , we have basic virtual firewall  for virtual machines. For the granular filtering for virtual machines, we need 5nine software.

Related Post  Connecting App Controller to the System Center Virtual Machine Manager 2012 R2 Server

Leave a Reply

Your email address will not be published. Required fields are marked *