Are you using the Avast Firewall in Avast Premium or the Windows 10 firewall ?
If using the Avast Firewall have you got it set as Home, Private/Trusted source ?
I don't use the Avast Firewall, so I'm unfamiliar with it.
I stopped using ccleaner many, many years ago (I never found it to make much difference, I don't have lots of cr4p on my systems), so I'm not sure if it has a means of reversing any changes made.