This document discusses configuring TCP/IP addressing and internet security. It covers IP addressing schemes like CIDR and subnetting, and how they address problems with classful addressing systems. It also discusses internet security threats like viruses, worms, and trojans. Finally, it covers configuring and managing Windows Firewall to protect systems, including enabling the firewall, setting exceptions, and monitoring logs and alerts.
This chapter addresses advanced TCP/IP addressing and Internet security. It introduces students to classless interdomain routing (CIDR) subnetting and subnet masks, and it explores the binary nature of IP addresses and the knowledge necessary to troubleshoot addressing issues. We will also introduce Windows XP Internet security features such as Windows Firewall. Proper configuration and operation of Windows Firewall can protect systems inexpensively.
This slide depicts the relationship between decimal number 179 and its binary equivalent. Many students will be familiar with the principles of the binary numbering system. Make sure that the others understand this slide. Without a basic understanding of binary numbering and the base 2 number system, students will not understand the next part of this chapter.
This slide shows the conversion of a dotted decimal IP address to its binary equivalent. Make it clear that IP operates at the binary level and that the dotted decimal representations we see are only for our convenience.
This slide shows the conversion of a binary IP address to its dotted decimal equivalent. Walk through the conversion with students.
This slide depicts the use of Calculator to convert the decimal number 179 to binary and back again. Stress the importance of maintaining leading zeros when converting numbers in this way. IP addresses require complete octets to be effective.
This slide shows a decimal subnet mask and the same subnet mask in binary form. Point out how the subnet mask designates the portion of the address that belongs to the network and the portion that belongs to the host.
This slide lists three disadvantages of classful IP addressing: Netblocks were rigid, so organizations needing a contiguous address space were assigned an address block that, in some cases, was vastly larger than they needed. One example was any organization assigned a Class A netblock. Who has 1.7 million public systems? The supply of netblocks was limited. The Class A networks were all taken, and Class B networks were getting scarce. To deal with the scarcity of Class B blocks, some organizations obtained multiple Class C blocks to support their requirements. This resulted in a proliferation of routing table entries because several entries would be required to support several Class C networks for a single organization.
This slide shows a Class A network being subnetted first into Class B networks and then into Class C networks. This is one solution to the scarcity of Class B networks. It creates 256 Class B subnetworks for each Class A network divided in this way. Each Class B network can then be divided into 256 Class C networks. The remaining problem with this method is that there is no provision for organizations that need 300 addresses (a fraction of a Class B) or 6 addresses (a fraction of a Class C). The next slide shows the solution. Find out how many of your students know the answer already.
Spend some time on this slide, which presents a lot of information. We are using a CIDR subnet mask to divide a Class B netblock into eight smaller netblocks, each with 8,190 addresses. Point out how the new network address combinations added by extending the subnet mask are used to generate the new network IDs. Also explain how the new netblock ranges are calculated by beginning with the network ID and ending with the value for a host portion of all 1s. Explain how the network ID and the broadcast are reserved, yielding 2n–2 possible addresses. Finally, point out the CIDR notation that is used to define the new subnet masks. Ask students how the scenario might differ if we used the subnet mask /18 or /20 .
This slide depicts the use of CIDR to create a supernet from eight Class C netblocks. Describe this process and have students calculate the number of addresses in the new network.
This slide introduces the section of Chapter 11 dealing with IP communications security. Conduct a discussion of current threats, and then explain how Windows XP deals with those threats. End with a discussion of security monitoring.
This slide lists the major categories of Internet threats. Discuss each in turn, and have students provide examples of each. Point out the persistent nature of worms. (All it takes to keep a worm alive is a single unattended Windows XP system somewhere.)
Computer viruses have been around since 1975, when John Walker released a program called Pervade to distribute a game he had invented. The game replicated itself to UNIVAC systems everywhere and, according to some accounts, eventually ended up on UNIVAC system distribution tapes. Since that time, many more virulent viruses have been written, and the damage they have caused in terms of time and money has been enormous. Corporations spend billions of dollars each year to protect themselves against viruses, and billions of dollars more when their protections fail.
Worms scan networks looking for systems that are running operating systems or applications with certain known vulnerabilities. When they find a vulnerability, they insert themselves into the vulnerable system and begin using it to scan for more victims. If a system is infected, any unpatched system connected to the network will be infected, repeating the cycle. Discuss any recent news-making worms. Describe their attack vector and their payload. Discuss how infections from that particular worm might be prevented.
Trojan horses rely on credulous victims. They appear on the Internet as useful programs or fun games. When they are executed on the victim’s system, they install a back door application to let hackers control the system or they launch a viral payload on the victim.
Some spyware is voluntarily installed by users as part of a marketing agreement. Other versions use viral or worm vectors to spread to target systems. Once installed, some versions simply collect demographic data. Others log keystrokes or redirect browsers to sites that pay a royalty to the author.
Zombies are planted and controlled by hackers to attack large sites. Fleets of zombies can be coordinated by one “zombie master” to direct large-scale attacks against targets.
Although well-publicized by the movie industry, direct interactive penetration by hackers is relatively rare because it takes time, patience, and skill to locate vulnerable components on the intended victim’s system. Many hackers prefer to use mass attacks such as worms, Trojan horses, and viruses to gain access to systems.
The technologies you can use to protect a Windows XP system range from the built-in Windows Firewall and ICS to third-party antivirus tools that can detect and defeat almost any known malware. In this section, we concentrate on the Windows tools. We also present the Security Center, an application that allows users to monitor security configuration on their systems.
This slide depicts the Security Center console. Demonstrate this console on a classroom system and show how it monitors the status of antivirus software, firewall software, and Automatic Updates. These are widely considered to be the three most important ways to defeat malicious software. Point out the numerous links to additional information on various aspects of system security.
This slide presents some common firewall terms. Discuss each briefly to ensure that students recognize them later during discussions of firewall configuration. Packet filtering The process of inspecting packet headers to determine whether they are allowed to enter the network. Those that do not conform with established rules for address, port, or protocol type are dropped. Stateful packet filtering A more advanced form of packet filtering where inbound packets must be received in response to an initial communication from the system. Outbound traffic is tracked in a “state table,” and inbound packets must conform to expected reply traffic to those communications. Exceptions Rules that allow some inbound traffic to enter your system. For example, to allow Remote Desktop to enter your system if you want to access your system from work or school, you would enable an exception. Allowed traffic Packet traffic that is allowed to pass the firewall. Rejected traffic Packet traffic that has not met acceptance rules and is dropped. Logging The process by which firewalls maintain a history of acceptance and rejection events. Logging is often used to discover penetration attempts or troubleshoot connectivity issues.
This slide presents some common firewall terms. Discuss each briefly to ensure that students recognize them later during discussions of firewall configuration. Packet filtering The process of inspecting packet headers to determine whether they are allowed to enter the network. Those that do not conform with established rules for address, port, or protocol type are dropped. Stateful packet filtering A more advanced form of packet filtering where inbound packets must be received in response to an initial communication from the system. Outbound traffic is tracked in a “state table,” and inbound packets must conform to expected reply traffic to those communications. Exceptions Rules that allow some inbound traffic to enter your system. For example, to allow Remote Desktop to enter your system if you want to access your system from work or school, you would enable an exception. Allowed traffic Packet traffic that is allowed to pass the firewall. Rejected traffic Packet traffic that has not met acceptance rules and is dropped. Logging The process by which firewalls maintain a history of acceptance and rejection events. Logging is often used to discover penetration attempts or troubleshoot connectivity issues.
This slide presents some common firewall terms. Discuss each briefly to ensure that students recognize them later during discussions of firewall configuration. Packet filtering The process of inspecting packet headers to determine whether they are allowed to enter the network. Those that do not conform with established rules for address, port, or protocol type are dropped. Stateful packet filtering A more advanced form of packet filtering where inbound packets must be received in response to an initial communication from the system. Outbound traffic is tracked in a “state table,” and inbound packets must conform to expected reply traffic to those communications. Exceptions Rules that allow some inbound traffic to enter your system. For example, to allow Remote Desktop to enter your system if you want to access your system from work or school, you would enable an exception. Allowed traffic Packet traffic that is allowed to pass the firewall. Rejected traffic Packet traffic that has not met acceptance rules and is dropped. Logging The process by which firewalls maintain a history of acceptance and rejection events. Logging is often used to discover penetration attempts or troubleshoot connectivity issues.
This slide shows the three main tabs of the Windows Firewall dialog box. Point out the settings as you step through the frames. If possible, demonstrate some of them on a classroom system.
This slide shows the configuration of firewall exceptions. Describe when an exception might be necessary to allow a system to provide a service or communicate with other systems using a nonstandard port or protocol. Point out the Change Scope feature, which allows you to designate which interface the exceptions apply to. Discuss how this might be important for file-sharing networks that also access the Internet.
This slide depicts the dialog boxes accessible from the Advanced tab of the Windows Firewall Properties dialog box. Point out how to designate which connections are protected by Windows Firewall and the services you can enable by using the Services tab. Explain why some of these settings might be used (for example, for a system that acts as a Web server for a small office). Describe how ICMP settings can be enabled and disabled, either per connection or globally. Refer students to the textbook for descriptions of the ICMP settings.
This slide introduces the topic of Internet security monitoring. Use the analogy of the Internet as a vast hotel or apartment building. Internet users lock their own doors for safety and privacy. They unlock them for room service or the maid but do not allow potential intruders to enter. They can hear if someone tries to pick their lock, and they can take appropriate action to call in the authorities or otherwise protect themselves. On the Internet, we also need a way to alert ourselves to attempted attacks. For this purpose, Windows Firewall has alerts and logs. Alerts notify the user when an attempt is made to open a restricted port. Logs record accepted and rejected traffic for later analysis. In addition, Internet services keep their own logs to track use of the service. These can often offer a clue as to the intent of an attacker.
Windows Firewall notifies users of new applications trying to communicate with their system and lets them take action to allow or block such applications. Describe the process and effects of adding exceptions to Windows Firewall.
This slide depicts the configuration and format of Windows Firewall logs. Point out the attempted attack on the HTTP port (the three dropped packets for port 80). If possible, open a logfile in class and examine its contents. Describe the entries and their implications.
This slide shows an excerpt of a Web server log for IIS in Windows XP. Point out the 403 (authentication) and 404 (file not found) errors. Discuss the implications of seeing a large number of these in your logs (hack attempts or searches for known vulnerabilities).
This list summarizes this chapter. As you discuss the items, return to the main points of your lecture. Make sure students understand the principles of CIDR subnet masks and CIDR notation. Stress the importance of having a strong understanding of IP addressing and security topics in real-world network designs.