Firewalls are classified by filtering depth as ___: the first decides by IP addresses, ports and connection state, the…