Firewalls are responsible for filtering the traffic flowing in and out of a network based on ‘a set of security rules’.
On the other hand, endpoint security is concerned not only with network filtering, but also involves other tasks such as patching, logging, monitoring, and so on.
Hence, firewalls are also a crucial part of endpoint security just like anti-virus solutions.
Though the number of devices protected and the model adopted (client/server) differ, the objective remains the same.