I don’t understand why you aren’t simply allowing avast! access through your firewall ???
You either trust your AV or, find a different one IMHO.