Did you configure avast! to use the proxy server (Connections (Basic) > Details > Proxy)?

Not even a firewall?