Firewall vs Antivirus: What Each Does and Why You Need Both
A firewall controls which network connections are allowed into and out of a device or network, based on rules about addresses, ports, protocols and applications. Antivirus inspects files and running programs on a device to detect and remove malware.