Home > Articles

This chapter is from the book

This chapter is from the book

Apply Your Knowledge

Exercises

3.1: Configuring Windows 2000 Server IP Filtering

This exercise demonstrates how to configure IP filtering on a Windows 2000 Server using the Local Security Settings MMC console. Windows 2000 has built-in security controls that can help restrict certain traffic from entering the server or the network segment it is servicing. This should not be used as an alternative to hardware firewalls, but the idea is similar.

The following assumptions are made in this exercise: The server is a member or a standalone box, there is a DMZ segment, the server was built to host the company Web site, and HTTP is not being used.

Estimated Time: 7 minutes

  1. Select Start, Programs, Administrative Tools, Local Security Settings.

  2. In the navigation tree, right-click IP Security Policies on Local Machine, and then select Manage IP Filter Lists and Filter Actions. The configuration applet appears.

  3. Before you can define IP filter lists, you need to create a new filter action. Click the Manage Filter Action tab.

  4. On the Manage Filter Action page, click Add. A wizard dialog box pops up. Click Next.

  5. In the Name text box, type Block and click Next.

  6. From the Filter Action list, select Block and click Next. Click Finish. The filter action for rejecting unwanted traffic is created. Now you can use it to define access lists.

  7. Switch back to the Manage IP Filter Lists tab, and click Add. On the IP Filter List page, click Add again to define a new IP filter.

  8. A wizard dialog box appears; click Next. In the source address drop-down box, select Any IP Address. Click Next.

  9. In the Destination IP Address drop-down box select My IP Address. Click Next.

  10. In Protocol Type, select TCP and click Next.

  11. On the IP Protocol Port page, leave the From This Port option unchanged. Click To This Port, and type 80 for the Web server port; then click Next.

  12. Click Finish. The IP filter for Web traffic has been created.

  13. Repeat steps 7–12 one more time to add definitions for port 3389 to allow terminal server connections for remote server management.

  14. When you're finished, type the name for your list and click Close. Click Close again to go back to the Local Security Settings MMC console.

  15. Now that you have IP filter lists and filter actions defined, you can create an IP security policy. Right-click IP Security Policies on Local Machine and select Create IP Security Policy.

  16. A wizard appears. Click Next. Type the name for your policy and click Next.

  17. Uncheck the Activate the Default Response Rule check box and click Next. Click Finish to create the new policy, and the policy properties window will appear.

  18. Uncheck the Use Wizard check box at the bottom of the page and click Add.

  19. On the following page, select the All ICMP Traffic rule and click the Filter Action tab. Select Block Action and click OK. Notice that the policy has been updated with the new rule.

  20. Repeat steps 18 and 19 for all IP traffic (assign a block action) and your custom IP filter list (assign a Permit action). Click Close to finish and go back to the MMC. Note that a new policy has been created in the right pane.

  21. To activate the policy, right-click the policy and select Assign. The policy takes effect immediately. Now test that the only traffic allowed to the box is Web and Terminal Services traffic.

This exercise shows how to protect a Web server from receiving unwanted traffic. If planned carefully, all servers of significance, at least in the DMZ, should have a similar security control implemented as a second line of defense in addition to the firewall. This ensures that the servers are still hard to crack on an individual basis even if the firewall is compromised.

You can use the import/export feature of the IP Filtering snap-in to define policies once per each server type and then distribute them to other boxes that have the same functions to save time. Please note that this type of security does restrict unwanted traffic to the box, but that is all it does. Web server security should be carefully considered and implemented, including the Web server software and the Web applications the server is running. For IP filtering to work, you must have the IPSEC Agent service running.

3.2: Configuring an IP Access List on a Cisco Router

This exercise is an extension of the previous exercise, and it demonstrates how to create a similar IP access list on a Cisco router.

This exercise assumes that a router running IOS software has a minimum of two network interfaces, one of which is connected to the Web server segment of the DMZ. The DMZ interface has an IP of 10.1.1.3/24, and the Web segment interface has an IP of 10.1.20.1/24.

Estimated Time: 5 minutes

  1. Start a Telnet session and connect to the router's IP address (10.1.1.3/24). Log in and switch to the privileged mode by typing enable.

  2. Enter configuration mode by typing config t.

  3. Define an access list by issuing the following command:

    access-list 110 permit tcp any 10.1.20.0 0.0.0.255 eq www
  4. This command creates access list 110 (if no access lists were previously defined as number 110) and adds a permit rule to allow Web traffic from any host to pass into the Web segment.

  5. For detailed access-list usage syntax, type access-list ?.

  6. You might want to add more traffic rules to allow Terminal Services management traffic in. For example, type the following:

    access-list 110 permit tcp any 10.1.20.0 0.0.0.255 eq 3389
  7. Don't forget that an implicit access-list 110 deny ip any any exists at the end of any IP list. To make troubleshooting easier later in the process, you might want to add this command, too.

  8. Enter DMZ interface configuration mode (assuming it is the first Ethernet interface on the box, type int e0).

  9. To assign access list 110 to interface e0 to screen all incoming traffic out (and prevent it from being forwarded to the Web segment interface), type ip access-group 110 in.

  10. To save the configuration changes, exit the interface and terminal configuration modes and type write mem to copy running configuration into startup configuration. Test your setup.

Review Questions

  1. What is the purpose of a firewall and what are the three main architectures of firewalls?

  2. What are the three basic security topologies created using firewalls?

  3. What is the purpose of an IDS? How is it different from a firewall?

  4. What are the main architectures of IDSs?

  5. What is the purpose of access lists employed on routing devices?

  6. Explain NAT functionality and the reasons for using NAT.

  7. Describe the protocols used in network monitoring and management.

  8. What are the basic physical access security controls? Explain each.

Exam Questions

  1. Your company is in the process of setting up a DMZ segment. You have to allow file sharing and Windows management console traffic from internal systems to enter the DMZ segment. Which TCP ports do you have to open? (Choose two.)

    1. 110

    2. 139

    3. 135

    4. 161

    5. 131

    6. 23

  2. Your company is in the process of setting up a DMZ segment. You have to allow FTP and Web browser requests from internal systems to enter the DMZ segment. Which TCP ports do you have to open? (Choose three.)

    1. 20

    2. 21

    3. 25

    4. 80

    5. 110

    6. 135

  3. During regular security audits and log checking, you suspect that the organization is under attack and someone is using or is attempting to use resources on the internal network. You are confused because the IP addresses in the log files belong to trusted partner companies. Which of the following is likely to be happening?

    1. Hijacking

    2. Replaying

    3. Spoofing

    4. Social engineering

  4. During regular security audits and log checking, you notice that one of your users is accessing files after midnight, when she is normally never active on the network outside normal business hours. When you ask her whether she has been working late at night, she denies having done so. Which of the following is most likely to explain what's occurring?

    1. Hijacking

    2. Replaying

    3. Spoofing

    4. Social engineering

  5. You are securing the network with firewall technologies. You want to prevent certain types of traffic from certain IP addresses and subnets from entering your secured segment of the network. Which technology should be used to achieve this?

    1. NAT

    2. VLAN

    3. Static packet filter

    4. IDS

  6. What type of firewall technique monitors the connection throughout the communication session, checking the validity of IP packet streams?

    1. Static inspection

    2. Stateful inspection

    3. Dynamic inspection

    4. Non-stateful inspection

  7. Your company has a firewall that talks exclusively to an intermediary host that verifies the validity of requests at the Application level, authenticates and hides user identity, and serves as a communications portal. In addition to the firewall, what else is used in this setup?

    1. Switch

    2. Router

    3. Subnet screener

    4. Application gateway

Answers to Review Questions

  1. A firewall is a hardware device or a software application installed on the border of secured networks with the purpose of examining and controlling incoming and outgoing network communications. Firewalls are the first line of network defense. The three basic architectures of the firewalls are packet filtering, circuit level, and application level. One more architecture type includes all three of the basic types: stateful inspection.

  2. A bastion host is a dual-homed device (a device with two network interfaces). Any routing between the interfaces on that device is disabled, and specialized software (IP Security policies in Win2K, Cisco IOS, and so on) is configured to allow certain types of traffic in while keeping the rest out of the network.

    A screened host gateway is a packet-filtering device, usually also a router, which communicates only with a designated application gateway inside the secured network. No other traffic is allowed in or out of the screened host gateway. Basic functionality is the same as a bastion host. If a data stream is deemed safe (based on the configuration), it is forwarded to the application gateway. The application gateway then determines how to handle the stream.

    A screened subnet gateway includes two screened host gateway devices that isolate the LAN from the Internet, creating what is known as a screened subnet or demilitarized zone (DMZ) between them. The architecture also includes a proxy server (bastion host). This architecture is essentially a combination of the bastion host architecture and screened host gateway architecture.

  3. An IDS is an intrusion detection system. Its purpose is to detect known attack patterns in communication streams. An IDS is designed to detect more sophisticated attacks than those that firewalls can handle on-the-fly. Firewalls are designed to prevent attacks before they happen by keeping offending traffic offsite. If attackers are smart enough to get through a tightly locked down firewall, this is where the IDS comes into play: It detects attacks in progress that were able to penetrate the first line of defense. Usually, IDS does not prevent attacks but generates alarms about attacks in progress, acting as a safety net for firewalls.

  4. Active or passive analysis, host or network analysis, and anomaly or misuse analysis are three main IDS architectures.

  5. Access lists can be configured on routing devices to effectively act like packet-filtering firewalls. This should not be used as the first line of defense, but it certainly can be used to create security fallback mechanisms in the network in case of a firewall compromise.

  6. NAT is used to enable address translation between private, nonroutable addresses and external public address for communication in the public network. This is achieved using mappings that the NAT device creates and maintains. Each outgoing request dynamically creates a mapping on the NAT device, and NAT proceeds with the outgoing request, acting as a proxy. When it gets the reply, the NAT device looks up the mapping and forwards the information back to the original requester. In the same fashion, static mappings can be created to instruct NAT to forward certain requests to certain hosts on the inside network. By using NAT, you can preserve scarce public routable IP addresses and provide an additional layer of security because internal systems are not directly accessible using public addresses. Also, in the event of a service provider change, you do not have to reassign new IP addresses to your internal networks.

  7. The Simple Network Management Protocol (SNMP) was developed as a temporary solution to network management requirements arising from growing network infrastructures. The purpose of SNMP is to enable the flow or exchange of management information between network nodes and to enable a network management environment. Three versions of SNMP are available. The most recent version, SNMPv3, provides authentication and data integrity safeguards that the first two versions do not have. The Remote Monitoring (RMON) specification can be considered an extension to the SNMP standard. It is based on similar standards to SNMP and relies on Management Information Base (MIB) structures and SMI. The purpose of RMON is to deliver network information grouped into nine major monitoring elements. Availability of RMON statistics and information can prove pivotal in designing and assessing network security.

  8. To secure infrastructure equipment from potential theft and unauthorized physical access, all vital equipment (servers, routers and switches, cable patch panels, modems, backup devices and removable media, and so on) must be stored in an isolated location with controlled and restricted access. This location must be humidified and ventilated and should be monitored by video surveillance systems.

Answers to Exam Questions

  1. B, C. To enable file transfer using Windows sharing, traffic for port 139 needs to be allowed to pass through the firewall. You might want to consider opening ports 137 and 138 to allow NetBIOS traffic for name resolution to work, but port 139 is sufficient for sharing if you are planning to reference DMZ servers by IP addresses or use manual WINS entries or lmhosts files in the internal segment. Port 135 must be open to allow RPC traffic (remote procedure calls are used extensively by Windows management tools).

  2. A, B, D. Ports 20 and 21 are associated with FTP, where 20 is used for file transfer data and 21 for command and control data. Port 80 is associated with HTTP, the protocol Web browsers use to request service and receive responses. Port 25 (answer C) is associated with the Simple Mail Transfer Protocol and is not mentioned in the requirements. Port 110 (answer E) is associated with POP3, the protocol many email clients use to download email from a server to a local machine.

  3. C. Spoofing is the most likely reason for this confusion. Spoofing allows attackers to misrepresent the source of the requests and masquerade as valid sources. Hijacking (answer A) involves taking over an existing session by seeking to anticipate next-packet sequence values and "jumping into" a traffic stream before the legitimate user can respond. Replaying (answer B) involves capturing and reusing historical (previously legitimate) traffic to try to compromise security and gain unauthorized access. Social engineering (answer D) involves an attempt to talk human users into divulging access information (accounts, passwords, and so forth) to enable unauthorized users to compromise security and use legitimate credentials to gain access.

  4. D. Social engineering involves an attempt to talk human users into divulging access information (accounts, passwords, and so forth) to enable unauthorized users to compromise security and use legitimate credentials to gain access. Somebody has obtained this user's account and password information and is using it to access resources to which she's entitled. At the bare minimum, disabling this account and providing her with a new account/password combination is warranted (and it might make sense to monitor the old account to try to locate or identify the malefactor). Hijacking (answer A) involves breaking into active sessions, which does not match the pattern you've observed. Replaying (answer B) involves capturing and replaying previous legitimate network activity to compromise system security; this doesn't match the pattern, either. Spoofing (answer C) involves reporting a network address that doesn't actually match the intruder's real address; it doesn't match the pattern, either.

  5. C. Static packet filtering is the simplest solution available to implement basic filtering of network traffic based on source, destination addresses, and protocol types.

  6. B. Stateful inspection monitors the connection throughout the communication session, checking the validity of the IP packet stream.

  7. D. An application gateway is used in some security topologies to act as the intermediary between users and services. Application gateways communicate and service all requests through the firewall.

Suggested Readings and Resources

Online Material

  1. HOW TO: Harden the TCP/IP Stack Against Denial of Service Attacks in Windows 2000 (http://support.microsoft.com/default.aspx?scid=kb;en-us;q315669).

  2. Keeping Your Site Comfortably Secure: An Introduction to Internet Firewalls (http://csrc.nist.gov/publications/nistpubs/800-10/node1.html).

  3. Local Area Detection of Incoming War Dial Activity (http://www.att.com/isc/docs/war_dial_detection.pdf).

  4. White Paper: Internet Security for Small Businesses (http://www.cisco.com/warp/public/cc/pd/rt/800/prodlit/fire_wp.htm).

  5. White Paper: The Science of Intrusion Detection System Attack Identification (http://www.cisco.com/warp/public/cc/pd/sqsw/sqidsz/prodlit/idssa_wp.htm).

Publications

  1. Chappell, Laura. Advanced Cisco Router Configuration. Indianapolis, IN: Cisco Press, 1998.

  2. Microsoft Corporation. Windows 2000 Server TCP/IP Core Networking Guide. Redmond, WA: Microsoft Press, 2002.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020