The free version of avast is an anti-virus, it doesn’t have a firewall.
The avast Internet Security (AIS) and avast Premier versions have firewalls, but they are paid options.