Chapter 3. Fundamentals of Firewalls

Chapter Objectives

After reading this chapter and completing the exercises, you will be able to do the following:

Image Explain how firewalls work.

Image Evaluate firewall solutions.

Image Differentiate between packet filtering and stateful packet filtering.

Image Differentiate between application gateway and circuit gateway.

Image Understand host-based firewalls and router-based firewalls.

Introduction

The first two chapters of this book discussed threats to network security and ways to defend against those threats. This and the following two chapters will address security devices. One of the most fundamental devices used to implement network security is the firewall. This is a key part of any security architecture. In fact, other systems such as the proxy server, intrusion prevention systems (IPS) and intrusion detection systems (IDS) work in conjunction with the firewall and are to some extent dependent upon the firewall.

Most people have a general idea of what a firewall is. In this chapter we will examine firewalls in detail so you will have a deeper understanding of them. We will also look at some firewall products.

This chapter will explore the basics of how firewalls work to provide a basis for evaluating which firewall is most appropriate in a given situation.

What Is a Firewall?

A firewall is a barrier between your computer or your network and the outside world. Sometimes we would also refer to this separation as the area behind the DMZ (demilitarized zone) and the public facing side or the DMZ. A particular firewall implementation might use one or more of the methods listed here to provide that barrier.

Image Packet filtering

Image Stateful packet filtering

Image User authentication

Image Client application authentication

At a minimum a firewall will filter incoming packets based on parameters such as packet size, source IP address, protocol, and destination port. Figure 3.1 shows the essentials of the firewall concept.

Image

FIGURE 3.1 Basic firewall operations.

As you may already know, both Linux and Windows (this includes every Windows version since XP through the Windows 8 and the server editions) ship with a simple firewall built into the operating system. Norton and McAfee both offer personal firewall solutions for individual PCs. These firewalls are meant for individual machines. There are more advanced solutions available for networks. In an organizational setting, you will want a dedicated firewall between your network and the outside world. This might be a router that also has built-in firewall capabilities. (Cisco Systems is one company that is well-known for high quality routers and firewalls.) Or, it might be a server that is dedicated solely to running firewall software. There are a number of firewall solutions that you can examine, and Appendix B has some links to get you started. Selecting a firewall is an important decision. This chapter will give you the essential skills necessary for you to be able to select the appropriate firewall for your network.


FYI: High-Speed Home or Small Office Connections

With the growing popularity of cable, DSL (Digital Subscriber Line), and FIOS (FiOS, is purported to be a Gaelic word that means “knowledge”) connections for homes and small offices, more emphasis is being placed on securing computer systems in these locations. A general reference to this classification of design is called a Small Office and Home Office (SOHO) facility. Very inexpensive router-based firewalls for your high-speed Internet connection are available. Consumers can also purchase a router that is separate from the DSL or cable router or one that includes the functions of the cable or DSL router with the firewall. The following Web sites provide more information about these:

Image Linksys: https://www.linksys.com/en-us/home

Image Home PC Firewall Guide: www.firewallguide.com

Image Broadband Guide: www.firewallguide.com/broadband.htm


Types of Firewalls

Packet filtering firewalls are the simplest and often the least expensive type of firewalls. Several other types of firewalls offer their own distinct advantages and disadvantages. The basic types of firewalls are

Image Packet filter

Image Application gateway

Image Circuit level gateway

Image Stateful packet inspection

Packet Filter Firewall

The packet filter firewall is the most basic type of firewall. In a packet-filtering firewall, each incoming packet is examined. Only those packets that match the criteria you set are allowed through. Many operating systems, such as Windows 8 and many Linux distributions, include basic packet-filtering software with the operating system. Packet filter firewalls are also referred to as screening firewalls. They can filter packets based on packet size, protocol used, source IP address, and many other parameters. Many routers offer this type of firewall protection in addition to their normal routing functions.

Packet filtering firewalls work by examining a packet’s source address, destination address, source port, destination port, and protocol type. Based on these factors and the rules that the firewall has been configured to use, they either allow or deny passage to the packet. These firewalls are very easy to configure and inexpensive. Some operating systems, such as Windows 8 and Linux, include built-in packet filtering capabilities. Chapter 4 discusses specific firewall products in detail. Here is a brief summary of some commonly used packet filtering products:

Image Firestarter: This is a free packet filtering application for Linux available at www.fs-security.com. This software is installed on a Linux machine designed to be used as your network firewall.

Image Norton Personal Firewall: This product is inexpensive and is available for multiple operating systems. A free trial download is available from www.symantec.com.

Image McAfee Personal Firewall: This product is similar in price and basic function to Norton Personal Firewall. You can find out more about this product at us.mcafee.com.

Image Outpost Firewall: This product is designed for the home or small office user. It has both a free version and an enhanced commercial version. You can find out more about this product at www.agnitum.com/products/outpost/.

There are a few disadvantages to the screening/packet-filtering firewall solution. One disadvantage is that they do not actually examine the packet or compare it to previous packets; therefore, they are quite susceptible to either a ping flood or SYN flood. They also do not offer any user authentication. Because this type of firewall looks only at the packet header for information, it has no information about the packet contents. It also does not track packets, so it has no information about the preceding packets. Therefore, if thousands of packets came from the same IP address in a short period of time, a screened host would not notice that this pattern is unusual. Such a pattern often indicates that the IP address in question is attempting to perform a DoS attack on the network.

To configure a packet filtering firewall, simply establish appropriate filtering rules. A set of rules for a given firewall would need to cover the following:

Image What types of protocols to allow (FTP, SMTP, POP3, etc.)

Image What source ports to allow

Image What destination ports to allow

Image What source IP addresses to allow (you can block certain IP addresses if you wish)

These rules will allow the firewall to determine what traffic to allow in and what traffic to block. Because this sort of firewall uses only very limited system resources, is relatively easy to configure, and can be obtained inexpensively or even for free, it is frequently used. Although it is not the most secure type of firewall, you are likely to encounter it frequently.

Stateful Packet Inspection

The stateful packet inspection (SPI) firewall is an improvement on basic packet filtering. This type of firewall will examine each packet, denying or permitting access based not only on the examination of the current packet, but also on data derived from previous packets in the conversation. This means that the firewall is aware of the context in which a specific packet was sent. This makes these firewalls far less susceptible to ping floods and SYN floods, as well as being less susceptible to spoofing. SPI firewalls are less susceptible to these attacks for the following reasons:

Image They can tell whether the packet is part of an abnormally large stream of packets from a particular IP address, thus indicating a possible DoS attack in progress.

Image They can tell whether the packet has a source IP that appears to come from inside the firewall, thus indicating IP spoofing is in progress.

Image They can also look at the actual contents of the packet, allowing for some very advanced filtering capabilities.

SPI firewalls are an improved version of the packet filtering firewall. Most quality firewalls today use the stateful packet inspection method; when possible, this is the recommended type of firewall for most systems. In fact most home routers have the option of using stateful packet inspection. The name stateful packet inspection derives from the fact that in addition to examining the packet, the firewall is examining the packet’s state in relationship to the entire IP conversation. This means the firewall can refer to the preceding packets as well as those packets’ contents, source, and destination. As you might suspect, SPI firewalls are becoming quite common. We will examine several of them in Chapter 4. The following is a list of some well-known products:

Image SonicWALL (www.sonicwall.com/) makes a number of different SPI firewall products for various sized networks, in different price ranges. It is a well-known vendor of firewall products.

Image Linksys (www.linksys.com/) makes a number of small office/home office firewall router products that use SPI technologies. These are very inexpensive and easy to configure.

Image Cisco (www.cisco.com) is a very well-known and highly respected vendor for many different types of network products, including router based firewalls that use SPI technology.


FYI: Stateless Packet Filtering

Stateful packet inspection is clearly the preferred method. The natural follow-up question is: What about stateless packet filtering? This term is not generally used by security professionals; it merely denotes the standard packet filtering method.


Hybrid Firewalls

As you will see later in this chapter and Chapter 4, there are a growing number of manufacturers creating hybrid firewalls. These are firewalls that use a mix of approaches, rather than a single approach. This sort of mixed approach is often even more effective than any of the pure approaches.

One very powerful firewall approach is a design that uses both a circuit level gateway and stateful packet filtering. Such a configuration has the best firewall methods combined into a single unit. In Chapter 4, we will examine some real world examples of hybrid solutions.

Application Gateway

An application gateway (also known as application proxy or application-level proxy) is a program that runs on a firewall. This type of firewall derives its name from the fact that it works by negotiating with various types of applications to allow their traffic to pass the firewall. In networking terminology, negotiation is a term used to refer to the process of authentication and verification. In other words, rather than looking at the protocol and port the packet is using, it will examine the client application and the server side application to which it is trying to connect. It will then determine if that particular client application’s traffic is permitted through the firewall. This is significantly different from a packet filtering firewall, which examines the packets and has no knowledge of what sort of application sent them. Application gateways enable the administrator to allow access only to certain specified types of applications, such as Web browsers or ftp clients.

When a client program, such as a Web browser, establishes a connection to a destination service, such as a Web server, it connects to an application gateway, or proxy. The client then negotiates with the proxy server in order to gain access to the destination service. In effect, the proxy establishes the connection with the destination behind the firewall and acts on behalf of the client, hiding and protecting individual computers on the network behind the firewall. This process actually creates two connections. There is one connection between the client and the proxy server and another connection between the proxy server and the destination.

Once a connection is established, the application gateway makes all decisions about which packets to forward. Since all communication is conducted through the proxy server, computers behind the firewall are protected.

With an application gateway, each supported client program requires a unique program to accept client application data. This sort of firewall allows for individual user authentication, which makes them quite effective at blocking unwanted traffic. However, a disadvantage is that these firewalls use a lot of system resources. The process of authenticating client applications uses more memory and CPU time than simple packet filtering.


FYI: Unique Logons

Be aware that having a unique logon for each user is probably not the ideal solution for sites with a great deal of public traffic, such as an e-commerce site. On sites such as this, you want to attract a high volume of traffic, mainly from new customers. New visitors to your site will not have a logon ID or password. Making them go through the process of setting up an account just to visit your Web site will likely turn off many potential customers. However, this can be an ideal solution for a corporate network.


Application gateways are also susceptible to various flooding attacks (SYN flood, ping flood, etc.) for two reasons. The first potential cause of a flooding attack may be the additional time it takes for an application to negotiate authenticating a request. Remember that both the client application and the user may need to be authenticated. This takes more time than simply filtering packets based on certain parameters. For this reason, a flood of connection requests can overwhelm the firewall, preventing it from responding to legitimate requests. Application gateways may also be more susceptible to flooding attacks because once a connection is made, packets are not checked. If a connection is established, then that connection can be used to send a flooding attack to the server it has connected to, such as a Web server or e-mail server. This vulnerability is mitigated somewhat by authenticating users. Provided the user logon method is secure (appropriate passwords, encrypted transmission, etc.), the likelihood that someone can use a legitimate connection through an application gateway for a flooding attack is reduced.

Chapter 4 discusses specific firewall implementations; however, a brief summary of a few application gateway products is provided here:

Image The company Barracuda produces a number of robust firewall solutions https://www.barracuda.com/products/firewall?a=google-barracuda_firewall-preview&kw=%2Bfirewalls&gclid=CKKwzdSe37gCFenm7AodKygAlA

Image Firewalls.com provides a portal to learn about a number of different firewall solutions.

Image Watchguard Technologies offers several firewall solutions(www.watchguard.com/).

Circuit Level Gateway

Circuit level gateway firewalls are similar to application gateways but are more secure and generally implemented on high-end equipment. These types of firewalls also employ user authentication, but they do so earlier in the process. With an application gateway, first the client application is checked to see if access should be granted, and then the user is authenticated. With circuit level gateways, authenticating the user is the first step. The user’s logon ID and password are checked, and the user is granted access before the connection to the router is established. This means that each individual, either by username or IP address, must be verified before any further communication can take place.

Once this verification takes place and the connection between the source and destination is established, the firewall simply passes bytes between the systems. A virtual “circuit” exists between the internal client and the proxy server. Internet requests go through this circuit to the proxy server, and the proxy server delivers those requests to the Internet after changing the IP address. External users only see the IP address of the proxy server. Responses are then received by the proxy server and sent back through the circuit to the client. It is this virtual circuit that makes the circuit level gateway secure. The private secure connection between the client application and the firewall is a more secure solution than some other options, such as the simple packet filtering firewall and the application gateway.

While traffic is allowed through, external systems never see the internal systems. The differences between the application gateway and the circuit level gateway are shown in Figure 3.2.

Image

FIGURE 3.2 Application gateway vs. circuit level gateway.

While highly secure, this approach may not be appropriate for some communication with the general public, such as e-commerce sites. This type of firewall is also difficult to configure because each client must be set up to have a circuit connection with the firewall. One very interesting circuit level gateway is offered by Amrita labs.

PFSense is an open source firewall project (http://www.pfsense.org/). The source code for this firewall can be downloaded, compiled, and run in a network host-based configuration. The fact that this is open source and can be modified by the organization using it makes it an attractive choice for organizations that have sufficiently experienced staff programmers.

Hybrid Firewalls

As you will see later in this chapter and Chapter 4, there are a growing number of manufacturers creating hybrid firewalls. These are firewalls that use a mix of approaches, rather than a single approach. This sort of mixed approach is often even more effective than any of the pure approaches.

One very powerful firewall approach is a design that uses both a circuit level gateway and stateful packet filtering. Such a configuration has the best firewall methods combined into a single unit. In Chapter 4, we will examine some real world examples of hybrid solutions.

Implementing Firewalls

Administrators must be able to evaluate implementation issues to achieve a successful security solution for their systems. Understanding the type of firewall means knowing how the firewall will evaluate traffic and deciding what to allow and what not to allow. Understanding the firewall’s implementation means understanding how that firewall is set up in relation to the network it is protecting. The most widely used configurations include:

Image Network host-based

Image Dual-homed host

Image Router-based firewall

Image Screened host

Network Host-Based

In the network host-based scenario the firewall is a software solution installed on an existing machine with an existing operating system. The most significant concern in this scenario is that, no matter how good the firewall solution is, it is contingent upon the underlying operating system. In such a scenario, it is absolutely critical that the machine hosting the firewall have a hardened operating system. Hardening the operating system refers to taking several security precautions including:

Image Ensuring all patches are updated

Image Uninstalling unneeded applications or utilities

Image Closing unused ports

Image Turning off all unused services

Operating system hardening is covered in greater depth in Chapter 8.

In the network host-based implementation, you install the firewall software onto an existing server. Sometimes, the server’s operating system may come with such software. It is not at all uncommon for administrators to use a machine running Linux, configure its built-in firewall, and use that server as a firewall. The primary advantage to this option is cost. It is much cheaper to simply install firewall software onto an existing machine, and use that machine as your firewall.

Dual-Homed Hosts

A dual-homed host is a firewall running on a server with at least two network interfaces. The server acts as a router between the network and the interfaces to which it is attached. To make this work, the automatic routing function is disabled, meaning that an IP packet from the Internet is not routed directly to the network. The administrator can choose what packets to route and how to route them. Systems inside and outside the firewall can communicate with the dual-homed host, but cannot communicate directly with each other. Figure 3.4 shows a dual-homed host.

Image

FIGURE 3.4 The dual-homed host.

The dual-homed host configuration is simply an expanded version of the network host firewall implementation. That means it is also contingent on the security of the underlying operating system. Any time a firewall is running on a server of any kind, the security of that server’s operating system becomes even more critical than normal.

This option has the advantage of being relatively simple and inexpensive. The primary disadvantage is its dependency on the underlying operating system.

Router-Based Firewall

Administrators can implement firewall protection on a router. In larger networks with multiple layers of protection, this is often the first layer of protection. Although various types of firewalls can be implemented on a router, the most common type uses packet filtering. Users of a broadband connection in a home or small office can get a packet-filtering firewall router to replace the basic router provided by the broadband company.

In many cases this solution is also ideal for the firewall novice. A number of vendors supply router-based firewalls that can be preconfigured by the vendor based on the customer’s needs. The customer can then install it between her network and external Internet connection. Also, most of the more widely known brands (Cisco, 3Com, etc.) offer vendor-specific training and certifications in theirhardware, making it relatively easy to find qualified administrators or to train current staff.

Another valuable way to implement router-based firewalls is between sub-sections of a network. If a network is divided into segments, each segment needs to use a router to connect to the other segments. Using a router that also includes a firewall significantly increases security. If the security of one segment of the network is compromised, the rest of the network is not necessarily breached.

Perhaps the best advantage to router-based firewalls is the ease of setup. In many cases the vendor will even configure the firewall for you, and you simply plug it in. Most home based routers today, such as those from Linksys, Belkin, or Netgear, have a built in firewall. And in fact virtually all higher-end routers include firewall capability.

Screened Hosts

A screened host is really a combination of firewalls. In this configuration, a combination of a bastion host and a screening router is used. The combination creates a dual firewall solution that is effective at filtering traffic. The two firewalls can be different types. The bastion host might be an application gateway and the router packet screening (or vice versa). This approach (shown in Figure 3.5) gives the advantages of both types of firewalls and is similar in concept to the dual-homed host.

Image

FIGURE 3.5 Screened host.

The screened host has some distinct advantages over the dual-homed firewall. Unlike the dual-homed firewall, the screened needs only one network interface and does not require a separate subnet between the application gateway and the router. This makes the firewall more flexible but perhaps less secure because its reliance on only one network interface card means that it might be configured to pass certain trusted services to the application gateway portion of the firewall and directly to servers within the network.

The most significant concern when using the screened host is that it essentially combines two firewalls into one. Therefore any security flaw or misconfiguration affects both firewalls. When you use a DMZ there are physically two separate firewalls, and the likelihood of any security flaw being propagated to both is low.


FYI: Bastion Hosts

A bastion host is a single point of contact between the Internet and a private network. It usually will only run a limited number of services (those that are absolutely essential to the private network) and no others. The bastion host is often the packet-filtering firewall that is between the network and the outside world.


In addition to these firewall configurations, there are also different methods for how the firewall examines packets. Packet filters work at the network layer of the OSI model and simply block certain packets based on criteria such as protocol, port number, source address, and destination address. For example, a packet filter might deny all traffic on ports 1024 and up, or it might block all incoming traffic using the TFTP protocol. Incoming and outgoing filters can dictate what information passes into or out of the local network.

The screening router adds security by allowing you to deny or permit certain traffic from the bastion host. It is the first stop for traffic, which can continue only if the screening router lets it through.

Selecting and Using a Firewall

There is a variety of commercial firewall products from which you can choose. Many software vendors offer a basic packet-filtering solution. Major antivirus software vendors (including those previously mentioned in this chapter) often offer the firewall software as a bundled option with their antivirus software. Other companies, such as Zone Labs, sell firewall and intrusion-detection software. The major manufacturers of routers and hubs such as Cisco also offer firewall products.

The amount of security necessary for a particular system is always difficult to pinpoint. A bare minimum recommendation is to have a packet-filtering firewall/proxy server between your network and the Internet—but that is a bare minimum. As a rule of thumb, administrators should buy the most robust firewall that the budget allows. Chapter 4 examines some of the more widely used firewall solutions in detail.

Using a Firewall

The first rule in using a firewall is to configure it properly. Chapter 4 covers some of the more widely used firewall solutions and how to configure them. Thoroughly reading and understanding all documentation and manuals pertinent to your firewall solution is essential. Administrators should also consider the services of a consultant to assist in the initial setup and configuration. In addition, product-specific training is often available from the firewall vendor.

Firewalls are also excellent tools when attempting to ascertain what has happened after a security incident occurs. Almost all firewalls, regardless of type or implementation, log the various activities that occur on them. These logs can provide valuable information that can assist in determining the source of an attack, methods used to attack, and other data that might help either locate the perpetrator of an attack or at least prevent a future attack using the same techniques.

Reviewing the firewall logs in order to check for anomalous activities should be a part of every organization’s IT staff routine. Intrusion detection systems, which are covered in Chapter 5, can help a great deal with notifying the network administrator when anomalies occur, particularly anomalies that might indicate a potential attack. However, even with an IDS, it is still a good idea to periodically review the logs.

A study of the firewall logs during normal activity over a period of time will establish a baseline. That baseline should show average number of incoming and outgoing packets per hour, minute, and day. It should also identify the types of packets (for example, 73% of incoming packets are HTTP packets destined for your Web server). Defining normal activity on a firewall helps administrators notice abnormal activity, should it occur.

Using Proxy Servers

A proxy server is often used with a firewall to hide the internal network’s IP (Internet Protocol) address and present a single IP address (its own) to the outside world. A proxy server is a server that sits between a client application, such as a Web browser, and a real server. Proxy servers prevent hackers from seeing the IP addresses of internal machines, knowing how many machines are behind the proxy server, or learning anything about the network configuration. Proxy servers also provide a valuable control mechanism because most proxy servers log all outgoing traffic. This enables network administrators to see where employees go on the Internet. A proxy server normally runs as software on the same machine as your firewall.

The proxy server is configured to redirect certain traffic. For example, incoming traffic using the HTTP protocol is usually allowed through the proxy server but is redirected to the Web server. That means that all outgoing and incoming HTTP traffic first goes through the proxy server. A proxy server can be configured to redirect any traffic you want. If an e-mail server or ftp server is on the network, all incoming and outgoing traffic for that network will run through the proxy server.

Using a proxy server means that when a machine inside the network visits a Web site, the Web site will only detect that the proxy server visited it. In fact, if dozens of different machines on the network visit a site that logs the IP addresses of incoming connections, they will all be logged with the same IP address—that of the proxy server. For the most part this sort of proxy server has been supplanted by Network Address Translation, which we will examine in the next section. However, the term proxy server is still used, but with a different application. Now proxy servers work with the firewall to filter things such as web content. They allow a network administrator to block certain sites and to record all the websites a given user visits.

This hiding of the network is a very valuable service because knowledge of internal IP addresses can be used to execute certain forms of attack. For example, IP spoofing is contingent upon knowing the IP address of some internal server. Hiding those IP addresses is an important step in network security. It can also be very useful to know where employees go on the Internet. Proxy servers track such information, and many network administrators use this to restrict employees from using the company Internet connection for illicit purposes. This can also be a useful tool for stopping attacks. An employee that visits hacker Web sites might be a potential security risk. They may elect to try some of the techniques they read about on the network. Administrators can also detect potential industrial espionage. An employee who spends a lot of time on a competitor’s Web site might be considering a job change and might consider taking valuable data with him.

The WinGate Proxy Server

A number of proxy server solutions are available. Some are commercial products, while others are open source. In order to help you understand proxy servers better we will examine one such product. WinGate is an inexpensive commercial product that also offers a free trial download (available at www.wingate.com). This product has all of the standard features of a proxy server including:

Image Internet connection sharing

Image Hiding internal IP addresses

Image Allowing virus scanning

Image Filtering of sites

The free download option makes it ideal for students. You can use the 30-day trial version to learn how the proxy server works, without incurring any expense. The installation routine is simple, and the product has an easy-to-use graphical user interface.

Of course there are other proxy server solutions you can find, and many of them are quite good. This one is being shown because it is:

Image Easy to use

Image Inexpensive

Image Available as a free download

WinGate is also a good solution outside the classroom. The ability to filter certain Web sites is quite attractive to many companies. One way companies reduce abuse of system resources is by blocking sites they don’t want employees to use. The ability to also scan for viruses is valuable in any setting.

NAT

For many organizations, proxy servers have been superseded by a newer technology known as network address translation (NAT). First and foremost, NAT translates internal addresses and external addresses to allow communication between network computers and outside computers. The outside sees only the address of the machine running NAT (often the firewall). From this perspective it is functioning exactly like a proxy server.

NAT also provides significant security because, by default, it allows only connections that are originated on the inside network. This means that a computer inside the network can connect to an outside Web server, but an outside computer cannot connect to a Web server inside the network. You can make some internal servers available to the outside world via inbound mapping, which maps certain well-known TCP ports (80 for HTTP, 21 for FTP, etc.) to specific internal addresses, thus making services such as FTP or Web sites available to the outside world. However, this inbound mapping must be done explicitly; it is not present by default.

As you will see in subsequent chapters, NAT is frequently offered as a part of another product, such as a firewall. Unlike proxy servers, it is less likely to be found as a standalone product. However, Chapter 4 shows several firewall solutions that include a network address translation functionality feature.

Summary

It is absolutely critical that any network have a firewall and NAT between the network and the outside world. There are a number of firewall types and implementations to consider. Some are easy to implement and inexpensive. Others may be more resource intensive, difficult to configure, or more expensive. Organizations should use the most secure firewall that their circumstances allow. For some firewalls, vendor-specific training may be essential for proper configuration of the firewall. A poorly configured firewall can be as much of a security hazard as having no firewall at all.

We have examined the various types of firewalls (packet screening, application gateway, circuit level gateway, and stateful packet inspection) as well as the implementations (network host-based, router-based, dual-homed, and screened). Understanding how a firewall works is essential for selecting an appropriate solution for a network’s security needs.

Test Your Skills

Multiple Choice Questions

1. Which of the following are four basic types of firewalls?

A. Screening, bastion, dual-homed, circuit level

B. Application gateway, bastion, dual-homed, screening

C. Packet filtering, application gateway, circuit level, stateful packet inspection

D. Stateful packet inspection, gateway, bastion, screening

2. Which type of firewall creates a private virtual connection with the client?

A. Bastion

B. Dual-homed

C. Application gateway

D. Circuit-level gateway

3. Which type of firewall is considered the most secure?

A. Dual-homed

B. Stateful packet inspection

C. Circuit-level gateway

D. Packet screening

4. What four rules must be set for packet filtering firewalls?

A. Protocol type, source port, destination port, source IP

B. Protocol version, destination IP, source port, username

C. Username, password, protocol type, destination IP

D. Source IP, destination IP, username, password

5. What type of firewall requires individual client applications to be authorized to connect?

A. Screened gateway

B. Stateful packet inspection

C. Dual-homed

D. Application gateway

6. Why might a proxy gateway be susceptible to a flood attack?

A. It does not properly filter packets.

B. It does not require user authentication.

C. It allows multiple simultaneous connections.

D. Its authentication method takes more time and resources.

7. Why might a circuit level gateway be inappropriate for some situations?

A. It has no user authentication.

B. It blocks Web traffic.

C. It requires client-side configuration.

D. It is simply too expensive.

8. Why is an SPI firewall less susceptible to spoofing attacks?

A. It examines the source IP of all packets.

B. It automatically blocks spoofed packets.

C. It requires user authentication.

D. It requires client application authentication.

9. Why is an SPI firewall more resistant to flooding attacks?

A. It automatically blocks large traffic from a single IP.

B. It requires user authentication.

C. It examines each packet in the context of previous packets.

D. It examines the destination IP of all packets.

10. What is the greatest danger in a network host-based configuration?

A. SYN flood attacks

B. Ping flood attacks

C. IP spoofing

D. Operating system security flaws

11. Which of the following is an advantage of the network host-based configuration?

A. It is resistant to IP spoofing.

B. It is inexpensive or free.

C. It is more secure.

D. It has user authentication.

12. Which of the following can be shipped preconfigured?

A. Stateful packet inspection firewalls

B. Network host-based firewalls

C. Router-based firewalls

D. Dual-homed firewalls

13. Which of the following solutions is actually a combination of firewalls?

A. Screened firewalls

B. Router-based firewalls

C. Dual-homed firewalls

D. Bastion host firewalls

14. It should be routine for someone in the IT security staff to

A. Test the firewall by attempting a ping flood

B. Review firewall logs

C. Reboot the firewall

D. Physically inspect the firewall

15. A device that hides internal IP addresses is called

A. Screened host

B. Bastion firewall

C. Proxy server

D. Dual-homed host

16. What is the most important security advantage to NAT?

A. It blocks incoming ICMP packets.

B. It hides internal network addresses.

C. By default it blocks all ICMP packets.

D. By default it only allows outbound connections.

Exercises

Don’t use live systems for labs.

With all exercises you should use only lab computers specifically set up for the purpose of experimentation. Never perform these Lab exercises on live systems.

Exercise 3.1: Turning on Windows 2000 Packet Filtering

Note: This exercise requires access to a machine with Windows 2000.

1. Go to Start, choose Settings, and click Control Panel.

2. Double-click Network and Dial-up connections.

3. Right-click Local Area Connection and choose Properties.

4. Highlight Internet Protocol (TCP/IP) and then click Properties.

5. Click the button labeled Advanced.

6. Choose the tab labeled Options, highlight Filtering, and click the Properties button. You can now filter out any protocols you wish.

Exercise 3.2: Turning on the Windows XP Firewall

Note: This exercise requires access to a machine with Windows XP.

1. Start your computer and log on with an account that has full administrative privileges.

2. Click the Start button.

3. Click the Control Panel.

4. Double-click the Network Connections icon.

5. In the Network Connections window, right-click the connection that you want to protect with ICF (Internet Connection Firewall) and choose Properties.

6. In the Properties window, click the Advanced tab, and then check the Internet Connection Firewall box.

7. Click OK to make the change effective.

If you experience adverse effects or otherwise want to turn ICF off, follow the same steps above, but uncheck the box and click OK to make the change effective.

If your computer is not being used as a server, you can choose to block virtually all incoming packets. Blocking HTTP will not keep you from going to Web pages, it will just keep people from accessing your machine as a Web server.

Exercise 3.3: Linux Firewall

Note: This exercise requires access to a Linux machine. Given the various Linux distributions, it is not possible to list step-by-step instructions for all of them here.

1. Use the Web to find the firewall documentation for your particular Linux distribution.

The following sites might help you:

http://www.linuxfromscratch.org/blfs/view/6.3/postlfs/firewall.html

www.linux.com/

http://www.networkcomputing.com/unixworld/tutorial/013/013.part2.html

2. Use those instructions to turn on and configure your Linux firewall.

Exercise 3.4: Free Firewalls

There are many commercial firewall solutions, but free solutions are also available. In this exercise you should:

1. Find one of them on the Web. The following Web sites might be useful to you:

http://www.zonealarm.com/security/en-us/zonealarm-pc-security-free-firewall.htm

http://www.online-armor.com/products-online-armor-free.php

2. Download and install it.

3. Configure it.

Exercise 3.5: Free Proxy Servers

There are a number of proxy servers that are available for free (or at least offer a free trial version) on the Web. The following Web sites should help you locate one:

Analog Proxy: www.analogx.com/contents/download/network/proxy.htm

Proxy+: www.proxyplus.cz/

Free Downloads Center: http://www.proxy4free.com/

1. Download your chosen proxy server.

2. Install it.

3. Configure it according to vendor specifications.

Projects

Project 3.1: The Cisco Firewall

Using Web resources or documentation to which you have access, look up the detailed specifications of the Cisco PIX 500 series firewall. Determine what type of firewall it is and what implementation it is. Also note any specific advantages or disadvantages. The following Web sites will probably be useful to you:

http://www.cisco.com/en/US/products/ps5708/Products_Sub_Category_Home.html

http://www.cisco.com/en/US/products/ps6120/index.html

Project 3.2: Zone Labs Firewalls

Using Web resources or documentation to which you have access, look up the detailed specifications of the Zone Labs Check Point Integrity firewall. Determine what type of firewall it is and what implementation it is. Also note any specific advantages or disadvantages. The following Web sites will probably be useful to you:

http://www.zonealarm.com/security/en-us/zonealarm-pc-security-free-firewall.htm

www.checkpoint.com/products/integrity/

Project 3.3: Windows XP Firewall

Using Web resources or documentation to which you have access, look up the detailed specifications of the Windows XP service pack 2 firewall. Determine what type of firewall it is and what implementation it is. Also note any specific advantages or disadvantages.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.148.106.212