What version of comodo firewall do you have ?
This problem with the comodo firewall and web shield redirect to the localhost proxy is meant to be fixed in the latest version/s. I don’t use it so I don’t know what version number that is, but by all accounts the latest version of comodo firewall has other firewall issues (not related to avast).