Firewalls can be classified into the following types, based on their operation and the method used to inspect the packet: