A device that monitors and controls incoming and outgoing network traffic based on user-defined security rules is Firewall.
Explanation:-
A Firewall is a network security device that monitors and filters incoming and outgoing network traffic based on an organization's previously established security policies.