pfSense as an awesome open source firewall

A firewall is typically installed at a network perimeter and access is provided to services using a policy based network path which the firewall implements. The firewall prevents access to services in an unauthorized manner by implementing rules.

Read about recommendations on what firewall to implement here.