© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 1 Implementing Secure Converged Wide Area Networks (ISCW)

Slides:



Advertisements
Similar presentations
Access Control List (ACL)
Advertisements

Network and Application Attacks Contributed by- Chandra Prakash Suryawanshi CISSP, CEH, SANS-GSEC, CISA, ISO 27001LI, BS 25999LA, ERM (ISB) June 2006.
Chapter 9: Access Control Lists
1 Topic 2 – Lesson 4 Packet Filtering Part I. 2 Basic Questions What is packet filtering? What is packet filtering? What elements are inside an IP header?
© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—4-1 Managing IP Traffic with ACLs Configuring IP ACLs.
© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—4-1 Managing IP Traffic with ACLs Introducing ACLs.
Computer Security Fundamentals by Chuck Easttom Chapter 4 Denial of Service Attacks.
Firewalls and Intrusion Detection Systems
Computer Security and Penetration Testing
WXES2106 Network Technology Semester /2005 Chapter 10 Access Control Lists CCNA2: Module 11.
Standard, Extended and Named ACL.  In this lesson, you will learn: ◦ Purpose of ACLs  Its application to an enterprise network ◦ How ACLs are used to.
© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L8 1 Implementing Secure Converged Wide Area Networks (ISCW)
Review for Exam 4 School of Business Eastern Illinois University © Abdou Illia, Fall 2006.
FIREWALLS & NETWORK SECURITY with Intrusion Detection and VPNs, 2 nd ed. 6 Packet Filtering By Whitman, Mattord, & Austin© 2008 Course Technology.
Implementing Standard and Extended Access Control List (ACL) in Cisco Routers.
CCNA2 Routing Perrine modified by Brierley Page 18/6/2015 Module 11 Access Control Non e0e1 s server.
1 Semester 2 Module 11 Access Control Lists (ACLs) Yuda college of business James Chen
Denial of Service Attacks: Methods, Tools, and Defenses Authors: Milutinovic, Veljko, Savic, Milan, Milic, Bratislav,
FIREWALL TECHNOLOGIES Tahani al jehani. Firewall benefits  A firewall functions as a choke point – all traffic in and out must pass through this single.
Common forms and remedies Neeta Bhadane Raunaq Nilekani Sahasranshu.
1 © 2005 Cisco Systems, Inc. All rights reserved. 111 © 2004, Cisco Systems, Inc. All rights reserved.
Interior Gateway Routing Protocol (IGRP) is a distance vector interior routing protocol (IGP) invented by Cisco. It is used by routers to exchange routing.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.1 ISP Responsibility Working at a Small-to-Medium Business or ISP – Chapter 8.
Packet Filtering. 2 Objectives Describe packets and packet filtering Explain the approaches to packet filtering Recommend specific filtering rules.
FIREWALL Mạng máy tính nâng cao-V1.
Being an Intermediary for Another Attack Prepared By : Muhammad Majali Supervised By : Dr. Lo’ai Tawalbeh New York Institute of Technology (winter 2007)
Chapter 6: Packet Filtering
© 2002, Cisco Systems, Inc. All rights reserved..
1 The Firewall Menu. 2 Firewall Overview The GD eSeries appliance provides multiple pre-defined firewall components/sections which you can configure uniquely.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 9: Access Control Lists Routing & Switching.
Access Control List ACL. Access Control List ACL.
Access Control Lists (ACLs)
Access Control List (ACL) W.lilakiatsakun. ACL Fundamental ► Introduction to ACLs ► How ACLs work ► Creating ACLs ► The function of a wildcard mask.
1 CHAPTER 3 CLASSES OF ATTACK. 2 Denial of Service (DoS) Takes place when availability to resource is intentionally blocked or degraded Takes place when.
Packet Filtering Chapter 4. Learning Objectives Understand packets and packet filtering Understand approaches to packet filtering Set specific filtering.
1 © 2004 Cisco Systems, Inc. All rights reserved. CCNA 2 v3.1 Module 11 Access Control Lists (ACLs)
Access Control List (ACL)
Access-Lists Securing Your Router and Protecting Your Network.
ACLs ACLs are hard. Read, read, read. Practice, practice, practice ON TEST4.
© 2006 Cisco Systems, Inc. All rights reserved. Cisco IOS Threat Defense Features.
Access Control List ACL’s 5/26/ What Is an ACL? An ACL is a sequential collection of permit or deny statements that apply to addresses or upper-layer.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 Filtering Traffic Using Access Control Lists Introducing Routing and Switching.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Access Control Lists Accessing the WAN – Chapter 5.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Filtering Traffic Using Access Control Lists Introducing Routing and Switching.
Saeed Darvish Pazoki – MCSE, CCNA Abstracted From: Cisco Press – ICND 2 – 6 IP Access Lists 1.
CHAPTER 3 Classes of Attack. INTRODUCTION Network attacks come from both inside and outside firewall. Kinds of attacks: 1. Denial-of-service 2. Information.
Page 1 Chapter 11 CCNA2 Chapter 11 Access Control Lists : Creating ACLs, using Wildcard Mask Bits, Standard and Extended ACLs.
Network Security Chapter 11 powered by DJ 1. Chapter Objectives  Describe today's increasing network security threats and explain the need to implement.
Security and Firewalls Ref: Keeping Your Site Comfortably Secure: An Introduction to Firewalls John P. Wack and Lisa J. Carnahan NIST Special Publication.
ACCESS CONTROL LIST.
Tracking Rejected Traffic.  When creating Cisco router access lists, one of the greatest downfalls of the log keyword is that it only records matches.
DoS/DDoS attack and defense
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Filtering Traffic Using Access Control Lists Introducing Routing and Switching.
Access Control Lists Mark Clements. 17 March 2009ITCN 2 This Week – Access Control Lists What are ACLs? What are they for? How do they work? Standard.
CCNA4 Perrine / Brierley Page 12/20/2016 Chapter 05 Access Control Non e0e1 s server.
Access Control List (ACL) W.lilakiatsakun. Transport Layer Review (1) TCP (Transmission Control Protocol) – HTTP (Web) – SMTP (Mail) UDP (User Datagram.
Firewalls. Overview of Firewalls As the name implies, a firewall acts to provide secured access between two networks A firewall may be implemented as.
Chapter 8.  Upon completion of this chapter, you should be able to:  Understand the purpose of a firewall  Name two types of firewalls  Identify common.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Access Control Lists Accessing the WAN – Chapter 5.
Polytechnic University Firewall and Trusted Systems Presented by, Lekshmi. V. S cos
Instructor Materials Chapter 4: Access Control Lists
Working at a Small-to-Medium Business or ISP – Chapter 8
Managing IP Traffic with ACLs
Introduction to Networking
Chapter 4: Access Control Lists (ACLs)
* Essential Network Security Book Slides.
Chapter 4: Access Control Lists
Access Control Lists CCNA 2 v3 – Module 11
Firewalls Chapter 8.
Session 20 INST 346 Technologies, Infrastructure and Architecture
Presentation transcript:

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 1 Implementing Secure Converged Wide Area Networks (ISCW)

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 2 Lesson 7 – Module 5 – ‘Cisco Device Hardening’ Mitigating Threats and Attacks with Access Lists

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 3 Module Introduction  The open nature of the Internet makes it increasingly important for businesses to pay attention to the security of their networks. As organisations move more of their business functions to the public network, they need to take precautions to ensure that attackers do not compromise their data, or that the data does not end up being accessed by the wrong people.  Unauthorised network access by an outside hacker or disgruntled employee can wreak havoc with proprietary data, negatively affect company productivity, and stunt the ability to compete.  Unauthorised network access can also harm relationships with customers and business partners who may question the ability of companies to protect their confidential information, as well as lead to potentially damaging and expensive legal actions.

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 4 Objectives  At the completion of this seventh lesson, you will be able to: Describe various network attack techniques that use distributed clients Design and write access lists that mitigate well known network attacks Apply these ACLs to routers within the network

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 5 Cisco ACL Overview  An ACL is simply a list of statements  Each statement defines a pattern that would be found in an IP packet. As each packet comes through an interface with an associated ACL, the list is scanned from top to bottom and in the exact order in which the list was entered, for a pattern that matches the incoming packet  A permit or deny rule associated with the pattern determines what then happens to that packet  Cisco routers use ACLs as packet filters to decide which packets can access a router service, or which packets can be allowed through an interface Packets that are allowed across an interface are known as permitted packets; those that are not allowed known as denied packets.

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 6 Cisco ACL Overview  Router security depends upon well-written and previously considered ACLs to restrict access to router network services and to filter packets as the packets traverse the router  Cisco routers support three types of IP ACLs: 1.standard, 2.extended, and 3.enhanced IP ACLs.  Standard IP ACLs: A standard ACL only allows permission or denial of traffic from specific IP addresses. The destination of the packet and the ports that are involved do not matter.  Extended IP ACLs: An IP extended ACL is a list of statements that can filter IP packets based on several attributes (protocol type, source and IP address, destination IP address, source TCP or User Datagram Protocol [UDP] ports, destination TCP or UDP ports, or optional protocol type information for finer granularity of control).

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 7 Identifying ACLs  Either a number or a name can identify Cisco ACLs and the protocols that they filter  Using numbered ACLs is effective on smaller networks that do not have as wide a range of traffic types as do larger networks. There can be up to 99 standard IP ACLs in the numbered range from 1 to 99 The extended IP ACL number range is assigned from 100 to 199 and from 2000 to 2699  ACLs can also be identified with an alphanumeric string (a name) rather than a number. Named ACLs allow configuration of more ACLs in a router than if using numbered ACLs alone If the ACL is identified with a name rather than a number, the mode and command syntax for the ACL are slightly different. Currently, only packet and route filters can use a named ACL

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 8 Guidelines for Developing ACLs  Before you start to develop any ACLs, consider these basic rules: Base your ACLs on your security policy: Unless the ACL is anchored in a comprehensive security policy, you cannot be absolutely certain that the ACL will effectively control access in the way access needs to be controlled. Write the ACL out: Never sit down at a router and start to develop an ACL without first spending some time in design. The best ACL developers suggest that you write out a list of things you want the ACL to accomplish. Starting with something as simple as, “This ACL must block all Simple Network Management Protocol (SNMP) access to the router except for the SNMP host at ” Order of statements within an ACL is critical: Once a match is found, no more statements will be checked. For example, “the most restrictive statements should be first.”

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 9 Guidelines for Developing ACLs #2  Before you start to develop any ACLs, consider these basic rules: Set up a development system: Whether you use a laptop PC or a dedicated server, a place is required to develop and store ACLs. Word processors or text editors of any kind are suitable, as long as the files are saved in ‘vanilla’ ASCII text format Build a library of your most commonly used ACLs and use the saved ACLs as sources for new files. ACLs can be pasted into the router running configuration (via console or Telnet access), or can be stored in a router configuration file for transfer by TFTP A hacker can discover a lot about a network from looking at these easily read text files. For this reason, it is imperative that the system where you choose to develop and store your ACL and router files be a secure system Test: If possible, test the ACLs in a secure environment before placing them into production. Testing is a common-sense approach to any router configuration changes. While testing may appear to be an unnecessary cost, testing can save a great amount of time, money and heartache!

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 10 Applying ACLs to Router Interfaces  Packet-filtering ACLs must be applied to a router interface to take effect. It is important to note that ACLs are applied to an interface based on the direction of the data flow  Consider the simple concept of how to apply the ACL to incoming packets (an “in” ACL) or outgoing packets (an “out” ACL), as follows: Inbound (in): The packet filtering ACL applies to packets received on the router interface Outbound (out): The packet filtering ACL applies to packets transmitted out of the router interface. For outbound ACLs, the filter need only be setup on one outgoing interface rather than on individual incoming interfaces. This configuration improves performance because only the network being protected will force a lookup on the ACL

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 11 Applying ACLs to Router Interfaces Inbound (in): Data flows toward router interface Outbound (out): Data flows away from router interface

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 12 Using Traffic Filtering with ACLs  Always apply the following general rules when deciding how to handle router services, ports, and protocols: Disable unused services, ports, or protocols. In the case where no machine, including the router itself, needs to use an enabled service, port, or protocol, disable that service, port, or protocol Limit access to services, ports, or protocols In the case where a limited number of users or systems require access to an enabled router service, port, or protocol, limit access to that service, port, or protocol using ACLs ACLs are important because they act as traffic filters between the corporate (trusted) network and the Internet (untrusted network). Using ACLs, the router enforces corporate security policies by rejecting protocols and restricting port use

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 13 Using Traffic Filtering with ACLs Use ACLs to filter ingress and egress from routers and firewall appliances. Use ACLs to disable and limit services, ports, and protocols.

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 14 Filtering Network Traffic to Mitigate Threats  ACLs can be used to mitigate many threats: 1.IP address spoofing – Inbound 2.IP address spoofing – Outbound 3.Denial of service (DoS) TCP SYN attacks – Blocking external attacks 4.DoS TCP SYN attacks – Using TCP Intercept 5.DoS Smurf attacks 6.Filtering Internet Control Message Protocol (ICMP) messages – Inbound 7.Filtering ICMP messages – Outbound 8.Filtering traceroute

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 15 IP Address Spoofing Mitigation: Inbound R2(config)#access-list 150 deny ip any log R2(config)#access-list 150 deny ip any log R2(config)#access-list 150 deny ip any log R2(config)#access-list 150 deny ip any log R2(config)#access-list 150 deny ip any log R2(config)#access-list 150 deny ip any log R2(config)#access-list 150 deny ip host any log R2(config)#access-list 150 permit ip any R2(config)#interface e0/0 R2(config-if)#ip access-group 150 in R2(config-if)#exit

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 16 IP Address Spoofing Mitigation: Outbound “Be a good citizen and prevent your network from being spoofed.” R2(config)#access-list 105 permit ip any R2(config)#access-list 105 deny ip any any log R2(config)#interface e0/1 R2(config-if)#ip access-group 105 in R2(config-if)#end

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 17 DoS TCP SYN Attack Mitigation: Blocking External Access R2(config)#access-list 109 permit tcp any established R2(config)#access-list 109 deny ip any any log R2(config)#interface e0/0 R2(config-if)#ip access-group 109 in R2(config-if)#end

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 18 DoS TCP SYN Attack Mitigation: Using TCP Intercept R2(config)#ip tcp intercept list 110 R2(config)#access-list 110 permit tcp any R2(config)#access-list 110 deny ip any any R2(config)#interface e0/0 R2(config-if)#ip access-group 110 in R2(config-if)#end

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 19 DoS Smurf Attack Mitigation R2(config)#access-list 111 deny ip any host log R2(config)#access-list 111 permit ip any log R2(config)#access-list 112 deny ip any host log R2(config)#access-list 112 permit ip any log R2(config)#interface e0/0 R2(config-if)#ip access-group 111 in R2(config-if)#end R2(config)#interface e0/1 R2(config-if)#ip access-group 112 in R2(config-if)#end

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 20 Filtering Inbound ICMP Messages R2(config)#access-list 112 deny icmp any any echo log R2(config)#access-list 112 deny icmp any any redirect log R2(config)#access-list 112 deny icmp any any mask-request log R2(config)#access-list 112 permit icmp any R2(config)#interface e0/0 R2(config-if)#ip access-group 112 in R2(config-if)#end

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 21 Filtering Outbound ICMP Messages R2(config)#access-list 114 permit icmp any echo R2(config)#access-list 114 permit icmp any parameter- problem R2(config)#access-list 114 permit icmp any packet- too-big R2(config)#access-list 114 permit icmp any source- quench R2(config)#access-list 114 deny icmp any any log R2(config)#interface e0/1 R2(config-if)#ip access-group 114 in R2(config-if)#end

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 22 Filtering UDP Traceroute Messages R2(config)#access-list 120 deny udp any any range log R2(config)#access-list 120 permit ip any log R2(config)#interface e0/1 R2(config-if)#ip access-group 120 in R2(config-if)#end

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 23 Mitigating DDos Attacks  The next slide shows how a DDoS attack occurs: Behind a Client is a person who launches the attack. A Handler is a compromised host that is running the attacker program. Each Handler is capable of controlling multiple Agents An Agent is a compromised host that is running the attacker program. Each Agent is responsible for generating a stream of packets that is directed toward the intended victim  Generally, routers cannot prevent all DDoS attacks, but they can help reduce the number of occurrences of attacks by building ACLs that filter known attack ports. Methods used to block DDoS by blocking selected ports aim at stopping TRIN00, Stacheldraht, Trinity v3, and SubSeven  ACL rules are generally applied to inbound and outbound traffic between the protected network and the Internet

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 24 Basics of DDoS Attacks DDoS attacks exploit specific ports. ACLs can control access on a port-by-port basis.

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 25 Mitigate DDoS Using Martian Filters  RFC 2827 * recommends that ISPs police their customer traffic by dropping traffic that enters their networks from a source address that the customer network is not legitimately using  The filtering includes, but is not limited to, traffic whose source address is a “Martian address”—a reserved address that includes any address within /8, /8, /8, /12, /16, /4, or /4.  The reasoning behind this ingress filtering procedure is that DDoS attacks frequently spoof source addresses of other systems, placing a random number in the field * RFC 3704 is the update to RFC 2827

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 26 Mitigate DDoS Using Martian Filters RFC 3704 is update to RFC 2827

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 27 TRIN00 attack  TRIN00 is a distributed SYN DoS attack  The attack method is a UDP flood  The TRIN00 attack sets up communications between clients, handlers, and agents using these ports: 1524 tcp tcp udp udp  The mitigation tactic for the TRIN00 attack, as well as for the other DoS attacks, is to block both interfaces in the in direction. The goal is to prevent infected outside systems from sending messages to an internal network and to prevent any infected internal systems from sending messages out of an internal network to the vulnerable ports

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 28 DDoS Attack Mitigation: TRIN00 R2(config)#access-list 190 deny tcp any any eq 1524 log R2(config)#access-list 190 deny tcp any any eq log R2(config)#access-list 190 deny udp any any eq log R2(config)#access-list 190 deny udp any any eq log R2(config)#interface e0/0 R2(config-if)#ip access-group 190 in R2(config-if)#end R2(config)#interface e0/1 R2(config-if)#ip access-group 190 in R2(config-if)#end

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 29 Stacheldraht attack  Stacheldraht is a DDoS tool that first appeared in 1999 and combines features of TRIN00 and Tribe Flood Network (TFN)  Stacheldraht also contains some advanced features such as encrypted attacker-master communication and automated agent updates  Possible Stacheldraht attacks are similar to the attacks of TFN; namely, ICMP flood, SYN flood, UDP flood, and smurf attacks A Stacheldraht attack sets up communication between clients, handlers, and agents using these ports: tcp tcp

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 30 DDoS Attack Mitigation: Stacheldraht R2(config)#access-list 190 deny tcp any any eq log R2(config)#access-list 190 deny tcp any any eq log R2(config)#interface e0/0 R2(config-if)#ip access-group 190 in R2(config-if)#end R2(config)#interface e0/1 R2(config-if)#ip access-group 190 in R2(config-if)#end

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 31 Trinity  Trinity is capable of launching several types of flooding attacks on a victim site including UDP, fragment, SYN, restore (RST), acknowledgement (ACK), and other floods  Communication from the handler or intruder to the agent is accomplished via Internet Relay Chat (IRC) or ICQ from AOL  Trinity appears to use primarily TCP port 6667 and also has a backdoor program that listens on TCP port 33270

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 32 DDoS Attack Mitigation: Trinity v3 R2(config)#access-list 190 deny tcp any any eq log R2(config)#interface e0/0 R2(config-if)#ip access-group 190 in R2(config-if)#end R2(config)#interface e0/1 R2(config-if)#ip access-group 190 in R2(config-if)#end

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 33 SubSeven  SubSeven is a backdoor Trojan that targets Windows machines  Once a machine is infected, the attacker can take complete control over the system and has full access as if they were a local user  The attacker can then use the victim’s machine to launch DDoS attacks  Depending on the version, an attacker will try to exploit the following TCP ports: 1243, 2773, 6711, 6712, 6713, 6776, 7000, 7215, 16959, 27374, 27573, and 54283

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 34 DDoS Attack Mitigation: SubSeven R2(config)#access-list 190 deny tcp any any eq 1243 log R2(config)#access-list 190 deny tcp any any eq 2773 log R2(config)#access-list 190 deny tcp any any range log R2(config)#access-list 190 deny tcp any any eq 6776 log R2(config)#access-list 190 deny tcp any any eq 7000 log R2(config)#access-list 190 deny tcp any any eq 7215 log R2(config)#access-list 190 deny tcp any any eq log R2(config)#access-list 190 deny tcp any any eq log R2(config)#access-list 190 deny tcp any any eq log R2(config)#interface e0/0 R2(config-if)#ip access-group 190 in R2(config-if)#end R2(config)#interface e0/1 R2(config-if)#ip access-group 190 in R2(config-if)#end

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 35 Combined ACL Configuration File (1 of 6) hostname R2 ! interface Ethernet0/0 ip address ip access-group 126 in ! interface Ethernet0/1 ip address ip access-group 128 in ! router rip network ! no access-list 126 ! Apply ACL 126 to traffic coming into the network. Apply ACL 128 to traffic coming out of the network. Delete ACL 126 to make sure that you create a new ACL.

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 36 Combined ACL Configuration File (2 of 6) access-list 126 deny ip any log ! access-list 126 deny ip any log access-list 126 deny ip any log access-list 126 deny ip any log access-list 126 deny ip any log access-list 126 deny ip any log ! access-list 126 deny ip any host log access-list 126 deny ip any host log ! access-list 126 permit tcp any established ! Prevent spoofing using internal addresses. Prevent spoofing using invalid source addresses. Deny packets destined to the remote access LAN. Permit TCP return traffic to the remote access LAN.

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 37 Combined ACL Configuration File (3 of 6) access-list 126 deny icmp any any echo log access-list 126 deny icmp any any redirect log access-list 126 deny icmp any any mask-request log access-list 126 permit icmp any ! access-list 126 permit udp host eq 512 ! access-list 126 deny tcp any any eq 1524 log access-list 126 deny tcp any any eq log access-list 126 deny tcp any any eq log access-list 126 deny tcp any any eq log access-list 126 deny tcp any any eq log access-list 126 deny tcp any any eq log ! access-list 126 permit tcp any eq gt 1023 ! Control ICMP traffic. Permit RIP updates. Block TRIN00, Stacheldraht, and Trinity. Allow FTP clients in the remote access LAN to use FTP.

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 38 Combined ACL Configuration File (4 of 6) access-list 126 deny udp any any eq log access-list 126 deny udp any any eq log ! access-list 126 deny udp any any range log ! access-list 126 permit udp any eq gt 1023 ! access-list 126 deny tcp any range any range log access-list 126 deny udp any range any range log access-list 126 deny ip any any log ! Block the TRIN00 UDP ports. Deny tracing of the remote access LAN. Allow return DNS traffic. Deny all remaining traffic and provide detailed logging information of denied traffic.

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 39 Combined ACL Configuration File (5 of 6) no access-list 128 ! access-list 128 permit icmp any echo access-list 128 permit icmp any parameter-problem access-list 128 permit icmp any packet-too-big access-list 128 permit icmp any source-quench ! access-list 128 deny tcp any any range 1 19 log access-list 128 deny tcp any any eq 43 log access-list 128 deny tcp any any eq 93 log access-list 128 deny tcp any any range log access-list 128 deny tcp any any eq 445 log access-list 128 deny tcp any any range log access-list 128 deny tcp any any eq 540 log ! Delete ACL 128 so it is not appended to new ACL. Permit needed ICMP messages. Block access to certain outside TCP services.

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 40 Combined ACL Configuration File (6 of 6) access-list 128 permit tcp gt 1023 any lt 1024 access-list 128 permit udp gt 1023 any eq 53 access-list 128 permit udp any range log ! access-list 128 deny tcp any range any range log access-list 128 deny udp any range any range log access-list 128 deny ip any any log Permit access to all remaining outside TCP services and to DNS (UDP/53) and allow tracing outside destinations. Deny all remaining access and provide detailed logging of denied access.

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 41 ACL Caveats StatementCaveat (Implicit) Deny AllYou may not see this statement, but the statement does exist. Standard ACL limitationYou may need to create extended ACLs to implement security policies. Statement evaluation order ACL statements are evaluated from top down, so always consider the order of the statements. Order of ACL statements Place more specific ACL statements higher in the ACL. Ensure that statements at the top of the ACL do not negate any statements found lower in the list. Directional filteringAlways double-check the direction (inbound or outbound) of data that your ACL is filtering.

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 42 ACL Caveats (Cont.) StatementCaveat Adding statementsAdding new statements may require a new ACL to be created. Special packetsIf filtering router-generated packets is part of the security policy, the packets must be acted upon by inbound ACLs on adjacent routers or through other router filter mechanisms using ACLs. Extended ACL placement Always consider placing extended ACLs on routers as close as possible to the source the ACLs are filtering. Standard ACL placement Always place standard ACLs as close to the destination as possible.

© 2007 Cisco Systems, Inc. All rights reserved.ISCW-Mod5_L7 43