A firewall acts as a filtering device, stopping some network traffic based on a set of rules. Firewalls can limit traffic based on IP address, MAC address, TCP ports and in some cases actual traffic content.