An organization wants to implement a security device that can protect internal networks by filtering incoming and outgoing network traffic based on a set of user-defined rules. The device should be able to block traffic from certain IP addresses, manage traffic using port numbers, and provide both stateful and stateless packet inspection. Which device would be most appropriate to meet these requirements?
Layer 2 switch
Firewall
Router
Proxy server