Intrusion Detection Systems (IDS) monitors a network for malicious activities and policy violations so that analysts or incident responders can investigate or respond to potential issues but it does not not safeguard an endpoint or network. The Firewall analyses incoming and outgoing network traffic and builds a barrier to prevent viruses and attackers that it identifies from entering the network or device.