OK, whilst I don’t use AIS and the avast firewall, if you open the firewall settings avastUI > Settings > Tools > Firewall have a little rummage round in there to see if you can find anything obvious.

If not on the top right of that window there should be a ? that gives access to a context sensitive help function.

You might also want to check out this FAQ article https://www.avast.com/faq.php?article=AVKB25#artTitle this talks about applications rules that I think is close to what you were asking for - e.g. if you remove the application rules they would have to be recreated/relearned.