I would also like to ask which firewall you are trying to set avast up with as if it is a firewall that combines hips then there are three avast services that should be set to allow all in the applications list of your firewall,
( avast service, avast setup and avast gui ).