Hi !
I had the same problem in the past !!
1) In Avast, Settings, choose Troubleshoot.
2) In the "Restore factory", click button"restore" and confirm.
3) In Avast, Settings, Components, Firewall "Customize", Default Rules, use "Ask"
4) Restart your PC
JClaude
PS: Sorry for my poor english