A hardware firewall is a device that stands between your network and your gateway. A software firewall is an internal programme that works with ports and apps.