So it worked when the firewall was off?
If so, remove the firewall, reboot and reinstall it. Setup the correct permissions for Avast and other applications. That will most likely solve it.