StefanScherer / packer-windows

Windows Templates for Packer: Windows 11, Windows 10, Windows Server 2022, 2019, 2016, also with Docker
MIT License
1.28k stars 430 forks source link

Reach winrm on public ip from anywhere #309

Closed mannahusum closed 2 years ago

mannahusum commented 2 years ago

I had trouble with this windows 10 box on a local Windows 10 Hyper-V. I was running this box on the „Default Network“ for its DHCP and trying to reach it from a WSL2 machine on the WSL virtual switch, which doesn't offer DHCP This way the Windows firewall was blocking me from access to WinRM

This patch opens WinRM on a Public IP to connections from anywhere