veeam_firewall_configuration_for_hyper-v
This is an old revision of the document!
Table of Contents
Veeam Firewall Configuration for Hyper-V
To allow Veeam Backup & Replication to manage and back up a Hyper-V host, you must open specific ports on the target Hyper-V host.
1. Required Ports for Veeam & Hyper-V
| Port(s) | Protocol | Purpose |
|---|---|---|
| 135, 445 | TCP | RPC Endpoint Mapper & SMB (Component deployment) |
| 137-139 | UDP/TCP | NetBIOS (Naming and discovery) |
| 6160 | TCP | Veeam Installer Service |
| 6162 | TCP | Veeam Transport Service |
| 6163 | TCP | Veeam Hyper-V Integration Service |
| 2500-3300 | TCP | Data transmission channels (VBR v10+) |
| 49152-65535 | TCP | Dynamic RPC ports for WMI management |
For more details, see the official Veeam Used Ports Guide.
2. PowerShell Script to Open Ports
Run the following script as an Administrator on the Hyper-V host to automate the creation of these firewall rules: Define port ranges and names
$params = @{ DisplayName = $Rule.Name Direction = "Inbound" Action = "Allow" Protocol = $Rule.Protocol LocalPort = $Rule.Port Description = "Required for Veeam Backup & Replication" Group = "Veeam Networking" } New-NetFirewallRule @params # Apply rules foreach ($Rule in $VeeamPorts) { New-NetFirewallRule -DisplayName $Rule.Name -Direction Inbound -Action Allow -Protocol $Rule.Protocol -LocalPort $Rule.Port -Description "Required for Veeam Backup & Replication" -Group "Veeam Networking" }
3. Verification
You can verify the rules are active by running this command:
Get-NetFirewallRule -Group "Veeam Networking" | Select-Object DisplayName, Enabled, Direction
Note: If your environment is a Workgroup, ensure you have also added the Veeam server to the host's TrustedHosts list.
veeam_firewall_configuration_for_hyper-v.1774017770.txt.gz · Last modified: 2026/03/20 14:42 by oso
