The 5 different types of firewalls explained

  • 3,000
  • Tác giả: admin
  • Ngày đăng:
  • Lượt xem: 3
  • Tình trạng: Còn hàng

Nearly 40 years after the concept of the network firewall entered the security conversation, the technology remains an essential tool in the enterprise network security arsenal. A mechanism to lớn filter out malicious traffic before it crosses the network perimeter, the firewall has proven its worth over the decades. But, as with any essential technology used for a lengthy period of time, developments have helped advance both the firewall's capabilities and its deployment options.

The firewall traces back to lớn an early period in the modern mạng internet era when systems administrators discovered their network perimeters were being breached by external attackers. A process that looked at network traffic for clear signs of cyberincidents was needed.

Steven Bellovin, then a fellow at AT&T Labs Research and currently a professor in the computer science department at Columbia University, is generally credited -- although not by himself -- with first using the term firewall to lớn describe the process of filtering out unwanted network traffic. The name was a metaphor, likening the device to lớn partitions that keep a fire from migrating from one part of a physical structure to lớn another. In the networking case, the idea was to lớn insert a filter of sorts between the ostensibly safe internal network and any traffic entering or leaving from that network's connection to lớn the broader mạng internet.

The term has grown gradually in familiar usage to lớn the point that no casual conversation about network security can take place without at least mentioning it. Along the way, the firewall has evolved into different types of firewalls.

This article looks at five key types of firewalls that use different mechanisms to lớn identify and filter out malicious traffic. But the exact number of options is not nearly as important as the idea that different kinds of firewall products tự rather different things. In addition, enterprises might need more than vãn one of the five firewalls to lớn best secure their systems. Or one single firewall could provide more than vãn one of these firewall types. In addition, the three different firewall deployment options should be considered, as well as firewall placement options, which is explored in further detail.

The following are the five types of firewalls:

  1. Packet filtering firewall.
  2. Circuit-level gateway.
  3. Application-level gateway, aka proxy firewall.
  4. Stateful inspection firewall.
  5. Next-generation firewall (NGFW).

Firewall devices and services can offer protection beyond standard firewall function -- for example, by providing an intrusion detection system (IDS) or intrusion prevention system (IPS), DoS attack protection, session monitoring and other security services to lớn protect servers and other devices within the private network. While some types of firewalls work as multifunctional security devices, they need to lớn be part of a multilayered architecture that executes effective enterprise security policies.

How tự the different types of firewalls work?

Firewalls are traditionally inserted inline across a network connection and look at all the traffic passing through that point. As they tự ví, they detect which network protocol traffic is benign and which packets are part of an attack.

Firewalls monitor traffic against a mix of predetermined rules designed to lớn sift out harmful nội dung. While no security product can perfectly predict the intent of all nội dung, advances in security technology make it possible to lớn apply known patterns in network data that have signaled previous attacks on other enterprises.

All firewalls apply rules that define the criteria under which a given packet or mix of packets in a transaction can safely be routed forward to lớn the intended recipient.

The five types of firewalls continue to lớn play significant roles in enterprise environments.

1. Packet filtering firewall

Packet filtering firewalls operate inline at junction points where devices such as routers and switches tự their work. However, these firewalls don't route packets; rather, they compare each packet received to lớn a mix of established criteria, such as the allowed IP addresses, packet type, port number and other aspects of the packet protocol headers. Packets flagged as troublesome are not forwarded and, thus, cease to lớn exist.

Packet filtering firewall advantages

  • A single device can filter traffic for the entire network.
  • Extremely fast and efficient in scanning traffic.
  • Inexpensive.
  • Minimal effect on other resources, network performance and end-user experience.

Packet filtering firewall disadvantages

  • Because traffic filtering is based entirely on IP address or port information, packet filtering lacks broader context that informs other types of firewalls.
  • Doesn't kiểm tra the payload and can be easily spoofed.
  • Not an ideal option for every network.
  • Access control lists can be difficult to lớn mix up and manage.

Packet filtering might not provide the level of security necessary for every use case, but there are situations in which this low-cost firewall is a solid option. For small or budget-constrained organizations, packet filtering provides a basic level of security that offers protection against known threats. Larger enterprises can also use packet filtering as part of a layered defense to lớn screen potentially harmful traffic between internal departments.

2. Circuit-level gateway

Using another relatively quick way to lớn identify malicious nội dung, circuit-level gateways monitor TCP handshakes and other network protocol session initiation messages across the network as they are established between the local and remote hosts to lớn determine whether the session being initiated is legitimate -- meaning, whether the remote system is considered trusted. They don't inspect the packets themselves, however.

Circuit-level gateway advantages

  • They only process requested transactions; all other traffic is rejected.
  • Easy to lớn mix up and manage.
  • Low cost and minimal impact on end-user experience.

Circuit-level gateway disadvantages

  • If they aren't used in conjunction with other security technology, circuit-level gateways offer no protection against data leakage from devices within the firewall.
  • No application layer monitoring.
  • Requires ongoing updates to lớn keep rules current.

While circuit-level gateways provide a higher level of security than vãn packet filtering firewalls, organizations should use them in conjunction with other systems. For example, circuit-level gateways are typically used alongside application-level gateways. This strategy combines attributes of packet- and circuit-level gateway firewalls with nội dung filtering.

Graphic with text listing the advantages and disadvantages of the five types of firewalls.
Compare the advantages and disadvantages of the five different types of firewalls to lớn find the ones that best suit your business needs.

3. Application-level gateway

This kind of device -- technically a proxy and sometimes referred to lớn as a proxy firewall -- functions as the only entry point to lớn and exit point from the network. Application-level gateways filter packets not only according to lớn the service for which they are intended -- as specified by the destination port -- but also by other characteristics, such as the HTTP request string.

While gateways that filter at the application layer provide considerable data security, they can dramatically affect network performance and can be challenging to lớn manage.

Application-level gateway advantages

  • Examines all communications between outside sources and devices behind the firewall, checking not just address, port and TCP header information, but the nội dung itself before it lets any traffic pass through the proxy.
  • Provides fine-grained security controls that can, for example, allow access to lớn a trang web but restrict which pages on that site the user can open.
  • Protects user anonymity.

Application-level gateway disadvantages

  • Can inhibit network performance.
  • Costlier than vãn some other firewall options.
  • Requires a high degree of effort to lớn derive the maximum benefit from the gateway.
  • Doesn't work with all network protocols.

Application-level firewalls are best used to lớn protect enterprise resources from trang web application threats. They block access to lớn harmful sites and prevent sensitive information from being leaked from within the firewall. They can, however, introduce a delay in communications.

4. Stateful inspection firewall

State-aware devices not only examine each packet, but also keep track of whether or not that packet is part of an established TCP or other network session. This offers more security than vãn either packet filtering or circuit monitoring alone, but exacts a greater toll on network performance.

A further variant of stateful inspection is the multilayer inspection firewall, which considers the flow of transactions in process across multiple protocol layers of the seven-layer Open Systems Interconnection model.

Stateful inspection firewall advantages

  • Monitors the entire session for the state of the connection, while also checking IP addresses and payloads for more thorough security.
  • Offers a high degree of control over what nội dung is let in or out of the network.
  • Does not need to lớn open numerous ports to lớn allow traffic in or out.
  • Delivers substantive logging capabilities.

Stateful inspection firewall disadvantages

  • Resource-intensive and interferes with the tốc độ of network communications.
  • More expensive than vãn other firewall options.
  • Doesn't provide authentication capabilities to lớn validate traffic sources aren't spoofed.

Most organizations benefit from the use of a stateful inspection firewall. These devices serve as a more thorough gateway between computers and other assets within the firewall and resources beyond the enterprise. They are also highly effective in defending network devices against particular attacks, such as DoS.

Photo of a Palo Alto Networks next-generation firewall.
An NGFW from Palo Alto Networks, which was among the first vendors to lớn offer advanced features, such as identifying the applications producing the traffic passing through and integrating with other major network components, lượt thích Active Directory.

5. Next-generation firewall

A typical NGFW combines packet inspection with stateful inspection and also includes some variety of deep packet inspection (DPI), as well as other network security systems, such as an IDS, IPS, malware filtering and antivirus.

While packet inspection in traditional firewalls looks exclusively at the protocol header of the packet, DPI looks at the actual data the packet is carrying. A DPI firewall tracks the progress of a trang web browsing session and can notice whether a packet payload, when assembled with other packets in an HTTP server reply, constitutes a legitimate HTML-formatted response.

NGFW advantages

  • Combines DPI with malware filtering and other controls to lớn provide an optimal level of filtering.
  • Tracks all traffic from Layer 2 to lớn the application layer for more accurate insights than vãn other methods.
  • Can automatically update to lớn provide current context.

NGFW disadvantages

  • To derive the biggest benefit, organizations need to lớn integrate NGFWs with other security systems, which can be a complex process.
  • Costlier than vãn other firewall types.

NGFWs are an essential safeguard for organizations in heavily regulated industries, such as healthcare or finance. These firewalls deliver multifunctional capability, which appeals to lớn those with a strong grasp on just how virulent the threat environment is. NGFWs work best when integrated with other security systems, which, in many cases, requires a high degree of expertise.

Firewall delivery methods

As IT consumption models have evolved, ví too have security deployment options. Firewalls today can be deployed as a hardware appliance, be software-based or be delivered as a service.

Hardware-based firewalls

A hardware-based firewall is an appliance that acts as a secure gateway between devices inside the network perimeter and those outside it. Because they are self-contained appliances, hardware-based firewalls don't consume processing power or other resources of the host devices.

Sometimes called network-based firewalls, these appliances are ideal for medium and large organizations looking to lớn protect many devices. Hardware-based firewalls require more knowledge to lớn configure and manage than vãn their host-based counterparts.

Software-based firewalls

A software-based firewall, or host firewall, runs on a server or other device. Host firewall software needs to lớn be installed on each device requiring protection. As such, software-based firewalls consume some of the host device's CPU and RAM resources.

Software-based firewalls provide individual devices significant protection against viruses and other malicious nội dung. They discern different programs running on the host, while filtering inbound and outbound traffic. This provides a fine-grained level of control, making it possible to lớn enable communications to lớn and from one program but prevent it to lớn and from another.

Cloud/hosted firewalls

Managed security service providers (MSSPs) offer cloud-based firewalls. This hosted service is configured to lớn track both internal network activity and third-party on-demand environments. Also known as firewall as a service, cloud-based firewalls can be entirely managed by an MSSP, making it a good option for large or highly distributed enterprises with gaps in security resources. Cloud-based firewalls are also beneficial to lớn smaller organizations with limited staff and expertise.

Firewall placement: Where to lớn position a firewall

Just as the types of firewalls have evolved, ví too have firewall placement options. The three most common firewall placements are the following:

  1. Between internal and external networks.
  2. Between external and DMZ networks.
  3. Between internal networks.

While some networks might only require a single firewall, many complex networks require multiple firewalls -- for example, a perimeter firewall to lớn protect from the external network, an internal firewall to lớn perform packet inspection at Level 3 and a third firewall to lớn protect data at Layer 2.

Graphic displaying multiple firewall deployments in a single network.
Using multiple firewalls helps boost security by protecting different network segments from each other, as well as the network as a whole from external networks.

How to lớn choose the right firewall for your organization

When evaluating which firewall to lớn deploy, organizations must consider what the firewall is protecting, what resources they can afford and how their infrastructure is architected. The best firewall for one network might not be a good fit for another.

Questions to lớn ask include the following:

  • What are the technical objectives for the firewall? Can a simpler product work better than vãn a firewall with more features and capabilities that may not be necessary?
  • How does the firewall fit into the organization's architecture? Consider whether the firewall is intended to lớn protect a low-visibility service exposed on the mạng internet or a trang web application.
  • What kinds of traffic inspection are necessary? Some applications require monitoring all packet contents, while others sort packets based on source and destination addresses and ports.

Many firewall implementations incorporate features of different types of firewalls, ví choosing a firewall is rarely a matter of finding one that fits neatly into any particular category. For example, an NGFW might incorporate new features, along with some of those from packet filtering firewalls, application-level gateways or stateful inspection firewalls.

Choosing the ideal firewall begins with understanding the architecture and functions of the private network being protected but also calls for understanding the different types of firewalls and firewall policies that are most effective for the organization.

Whichever type(s) of firewalls your organization chooses, keep in mind that a misconfigured firewall can, in some ways, be worse than vãn no firewall at all because it lends a dangerous false impression of security, while providing little to lớn no protection.

Amy Larsen DeCarlo has covered the IT industry for more than vãn 30 years, as a journalist, editor and analyst. As a principal analyst at GlobalData, she covers managed security and cloud services.