Firewall blocks virtual machine networking

The firewall causes the Hyper-v virtual machine to fail to connect to the network. How do I fix the settings?

Set the Avast Firewall to private mode and reboot.

Still not working

Try the Geek Area settings, mentioned here: https://forum.avast.com/index.php?msg=1505540

I enable “Internet Connection Sharing mode”
It will work fine
Thank you for your help

You’re welcome.