Timing: This chapter takes about 2 hours to cover.

Slides:



Advertisements
Similar presentations
1 A B C
Advertisements

AP STUDY SESSION 2.
1
David Burdett May 11, 2004 Package Binding for WS CDL.
Create an Application Title 1Y - Youth Chapter 5.
CALENDAR.
1 Click here to End Presentation Software: Installation and Updates Internet Download CD release NACIS Updates.
The 5S numbers game..
Student Guide Access List.
Media-Monitoring Final Report April - May 2010 News.
Welcome. © 2008 ADP, Inc. 2 Overview A Look at the Web Site Question and Answer Session Agenda.
Break Time Remaining 10:00.
Turing Machines.
PP Test Review Sections 6-1 to 6-6
Access Control Lists. Types Standard Extended Standard ACLs Use only the packets source address for comparison 1-99.
Access Control List (ACL)
CCENT Study Guide Chapter 12 Security.
What is access control list (ACL)?
Briana B. Morrison Adapted from William Collins
2000 Deitel & Associates, Inc. All rights reserved. Chapter 16 – Bits, Characters, Strings, and Structures Outline 16.1Introduction 16.2Structure Definitions.
Operating Systems Operating Systems - Winter 2010 Chapter 3 – Input/Output Vrije Universiteit Amsterdam.
Chapter 20 Network Layer: Internet Protocol
Configuring and Troubleshooting ACLs
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.1 Module 10 Routing Fundamentals and Subnets.
Adding Up In Chunks.
MaK_Full ahead loaded 1 Alarm Page Directory (F11)
Artificial Intelligence
Route Optimisation RD-CSY3021.
© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—1 Lab Guide.
Before Between After.
: 3 00.
5 minutes.
1 hi at no doifpi me be go we of at be do go hi if me no of pi we Inorder Traversal Inorder traversal. n Visit the left subtree. n Visit the node. n Visit.
Converting a Fraction to %
Numerical Analysis 1 EE, NCKU Tien-Hao Chang (Darby Chang)
Clock will move after 1 minute
famous photographer Ara Guler famous photographer ARA GULER.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.1 Module 9 TCP/IP Protocol Suite and IP Addressing.
Physics for Scientists & Engineers, 3rd Edition
Select a time to count down from the clock above
Copyright Tim Morris/St Stephen's School
1.step PMIT start + initial project data input Concept Concept.
1 Dr. Scott Schaefer Least Squares Curves, Rational Representations, Splines and Continuity.
TCP/IP Protocol Suite 1 Chapter 18 Upon completion you will be able to: Remote Login: Telnet Understand how TELNET works Understand the role of NVT in.
1 Non Deterministic Automata. 2 Alphabet = Nondeterministic Finite Accepter (NFA)
Chapter 9: Access Control Lists
Basic IP Traffic Management with Access Lists
© 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.
© 2007 Cisco Systems, Inc. All rights reserved.ICND2 v1.0—6-1 Access Control Lists Introducing ACL Operation.
CCNA2 Routing Perrine modified by Brierley Page 18/6/2015 Module 11 Access Control Non e0e1 s server.
© 2002, Cisco Systems, Inc. All rights reserved..
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 9: Access Control Lists Routing & Switching.
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 What Are Access Lists? –Standard –Checks Source address –Generally permits or denies entire protocol suite –Extended –Checks Source and Destination address.
Page 1 Chapter 11 CCNA2 Chapter 11 Access Control Lists : Creating ACLs, using Wildcard Mask Bits, Standard and Extended ACLs.
Chapter 3 Managing IP Traffic. Objectives Upon completion of this chapter you will be able to perform the following tasks: Configure IP standard access.
CCNA4 Perrine / Brierley Page 12/20/2016 Chapter 05 Access Control Non e0e1 s server.
Managing IP Traffic with ACLs
Access Control Lists.
Access Control Lists.
Managing IP Traffic with ACLs
© 2002, Cisco Systems, Inc. All rights reserved.
Introducing ACL Operation
Access Control Lists CCNA 2 v3 – Module 11
ACCESS CONTROL LIST Slides Prepared By Adeel Ahmed,
Presentation transcript:

Purpose: This chapter introduces access lists and then emphasizez IP access lists. Timing: This chapter takes about 2 hours to cover. Contents: The major sections of this chapter are: An overview of access lists and why to use them Access list functions and operation TCP/IP access lists Standard IP access lists Controlling vty access with access class entries Extended IP access lists Laboratory exercise Transition: The following section contains the chapter objectives

Objectives Upon completion of this chapter, you will be able to perform the following tasks: Identify the key functions and special processing of IP access lists Configure standard IP access lists Control virtual terminal access with access class Configure extended IP access lists Verify and monitor IP access lists Slide 1 of 1 Purpose: Discuss the objectives of this chapter with your students. Emphasize: They will learn to: Identify common situations and goals for access lists. They will distinguish key functional differences between standard and extended access lists. Summarize packet flows and parameter test processes, and permit or deny outcomes on a generic access list. Define key arguments and wildcard-matching to specify permit-or-deny criteria for traffic. Determine the preferred location for placing an extended access list in a multirouter environment. Configure and then test standard and extended access lists to control IP network traffic. Configure access class entries on vty terminals to control Telnet traffic. Transition: The first section of the chapter presents an overview of access list applications and uses.

Why Use Access Lists? Manage IP Traffic as network access grows Slide 1 of 2 Purpose: Emphasize: This graphic discusses the main reason a network administrator would employ access lists. Layer 1—Shows a single Ethernet, a Token Ring LAN, and a FDDI ring. The single workstation represents the administrator’s console to the router; begin by discussing the historical situation of LAN/WAN management on much smaller internets. Manage IP Traffic as network access grows

Why Use Access Lists? Manage IP traffic as network access grows 172.16.0.0 Internet Slide 2 of 2 Purpose: Emphasize: Access list is a mechanism for identifying particular traffic. One application of access list is for filtering traffic into or out of a router interface. 172.17.0.0 Manage IP traffic as network access grows Filter packets as they pass through the router

Access List Applications Transmission of packets on an interface Virtual terminal line access (IP) Slide 1 of 1 Purpose: This figure illustrates common uses for IP access lists. Emphasize: While this chapter focuses on IP access lists, the concept of access lists as mechanisms to control traffic in a network applies to all protocols. Note: An improved security solution is the lock-and-key access feature, which is available only with IP extended access lists. Lock-and-key access allows you to set up dynamic access lists that grant access per user to a specific source/destination host through a user authentication process. You can allow user access through a firewall dynamically, without compromising security restrictions. Transition: The following figure is the first of a 3-layer build that presents other uses of access lists specific to Cisco IOS features. Permit or deny packets moving through the router Permit or deny vty access to or from the router Without access lists all packets could be transmitted onto all parts of your network

Other Access List Uses Priority and custom queuing Queue List Slide 1 of 3 Purpose: This figure is the first of a 3-layer sequence. This layer presents the uses of access lists to prioritize and sort traffic for priority and custom queuing. Emphasize: Access lists are used to define input traffic to other technologies such as priority and custom queuing and to control the transmission of packets on serial interfaces. Note: NAT also uses access-list. Transition: The following figure is layer 2 of this build and adds DDR as a technology supported by access lists. Special handling for traffic based on packet tests

Other Access List Uses Priority and custom queuing Queue List Dial-on-demand routing Slide 2 of 3 Purpose: This figure is layer 2 of the build sequence. Emphasize: Access lists are used to define input traffic to select the interesting traffic that initiates a DDR connection. DDR will be covered in the ISDN chapter. Transition: The following figure is the last layer of the build and adds route filtering. Special handling for traffic based on packet tests

Other Access List Uses Priority and custom queuing Queue List Dial-on-demand routing Route filtering Slide 3 of 3 Purpose: This figure is the last layer of the build for other uses of access lists. Emphasize: Access lists are used to define input traffic for route filtering to restrict the contents of routing updates. Transition: The following figure is a 2-layer build to show the difference between inbound and outbound access lists. Routing Table Special handling for traffic based on packet tests

What Are Access Lists? Standard Checks Source address Access List Processes Outgoing Packet Incoming Packet Source Permit? S0 Standard Checks Source address Generally permits or denies entire protocol suite Slide 1 of 3 Purpose: Emphasize: This is a 3 layers slide. The first layer describe a Standard IP access list. The second layer describe an Extended IP access list. The third layer shows that an access list can be applied as an input or output access list on an interface.

What Are Access Lists? Standard Checks Source address Access List Processes Outgoing Packet Protocol Incoming Packet Source and Destination Permit? S0 Standard Checks Source address Generally permits or denies entire protocol suite Extended Checks Source and Destination address Generally permits or denies specific protocols Slide 2 of 3 Purpose: Describe IP extended access list. Emphasize:

What Are Access Lists? Standard Checks Source address Access List Processes Outgoing Packet Protocol Incoming Packet Source and Destination Permit? S0 Standard Checks Source address Generally permits or denies entire protocol suite Extended Checks Source and Destination address Generally permits or denies specific protocols Inbound or Outbound Slide 3 of 3 Purpose: Describe inbound versus outbound access list on an interface. Emphasize:

Outbound Access Lists Packet Choose S0 Interface Inbound Interface Packets Y Outbound Interfaces Routing Table Entry ? Access List ? N N Slide 1 of 3 Purpose: This figure (One of three layers) shows in more detail how an outbound access lists operate in a router. Emphasize: Transition: Shows packets coming in an inbound interface. This portion of the flowchart illustrates generic packet handling with or without access lists. The key outcome for the next layer is knowing which interface on the routing table indicates the best or next path. Is an access list associated with the interface? If not, the packet can route directly, for example, out the upper outgoing interface (the upper arrow). Note: The graphic does not mean that only interfaces with no access group can output packets; based on source and destination addresses, and other parameters, other packets could also pass the access list and be routed out on an interface. Y Packet Discard Bucket

Outbound Access Lists Packet Choose S0 Interface Inbound Interface Packets Y Outbound Interfaces Test Access List Statements Routing Table Entry ? E0 Packet Access List ? N N Y Permit ? Slide 2 of 3 Purpose: Emphasize: Shows the larger diamond. It contains words to summarize access list statements and permit/deny logic. This layer illustrates a permitted packet now sent to the outbound interface buffer for output (the lower arrow). Y Packet Discard Bucket

If no access list statement matches then discard the packet Outbound Access Lists Packet Choose Interface S0 Inbound Interface Packets Y Outbound Interfaces Test Access List Statements Routing Table Entry ? E0 Packet Access List ? N N Y Permit ? Slide 3 of 3 Purpose: Emphasize: Shows a deny result of the access list test. Now the packet is discarded into the packet discard bucket. The unwanted packet has been denied access to the outbound interface. The Notify Sender message shows a process like ICMP, returning an “administratively prohibited” message back to the sender. Y N Discard Packet Notify Sender Packet Discard Bucket If no access list statement matches then discard the packet

A List of Tests: Deny or Permit Match First Test ? Packets to interfaces in the access group Y Y Deny Permit Destination Interface(s) Slide 1 of 4 Purpose: Emphasize: This graphic explains in more detail the processes access list statements perform. Use the graphic’s diamond expanded from an earlier page to show individual access list statements. Shows packets coming into the large diamond. It represents an expanded graphical view from the previous page. Inside, smaller diamonds represent access list statements. They occur in sequential, logical order. Tell students the graphic represents a single access list. There can be only one access list per protocol per per direction per interface. Packet Discard Bucket Deny

A List of Tests: Deny or Permit Match First Test ? Packets to Interface(s) in the Access Group Y Y N Deny Permit Match Next Test(s) ? Y Y Deny Permit Destination Interface(s) Slide 2 of 4 Purpose: Emphasize: Adds the next test diamond. Packet Discard Bucket Deny

A List of Tests: Deny or Permit Match First Test ? Packets to Interface(s) in the Access Group Y Y N Deny Permit Match Next Test(s) ? Y Y Deny Permit Destination N Interface(s) Slide 3 of 4 Purpose: Emphasize: Adds the third diamond as the next test. Discuss the logical, ordered testing of packet conditions. One recommendation for the sequence of access list statements begins with the most specific of conditions to match at the beginning of the list; then continue with matches involving a larger group, such as entire subnets or networks. Finish with statements matching still larger groups. Match Last Test ? Y Y Deny Permit Packet Discard Bucket Deny

A List of Tests: Deny or Permit Match First Test ? Packets to Interface(s) in the Access Group Y Y N Deny Permit Match Next Test(s) ? Y Y Deny Permit Destination N Interface(s) Slide 4 of 4 Purpose: Emphasize: Shows the implicit “deny all.” Describe the final access list test to match any packets not covered by earlier access list statements. All remaining packets match the “Implicit Deny” and are discarded into the bit bucket. Match Last Test ? Y Y Deny Permit N Implicit Deny Packet Discard Bucket If no match deny all Deny

Access List Configuration Guidelines Access list numbers indicate which protocol is filtered One access list per interface, per protocol, per direction The order of access list statements controls testing Most restrictive statements should be at the top of list There is an implicit deny any as the last access list test—every list should have at least one permit statement Create access lists before applying them to interfaces Access list, filter traffic going through the router; they do not apply to traffic originated from the router Slide 1 of 1 Purpose: Emphasize:

Access List Command Overview Step 1: Set parameters for this access list test statement (which can be one of several statements) Router(config)# access-list access-list-number { permit | deny } { test conditions } Slide 1 of 2 Purpose: Emphasize: This graphic give your students a simplified perspective on how to use the two generalized commands in an access list process. Layer 1—Shows the general form of the global access list command. This declares the number of the list (which indicates the protocol and type of the list), the permit or deny treatment for packets that pass the test conditions, and the one or more test conditions themselves. In practice, you enter one or more of these statements.

Access List Command Overview Step 1: Set parameters for this access list test statement (which can be one of several statements) Router(config)# access-list access-list-number { permit | deny } { test conditions } Step 2: Enable an interface to use the specified access list Slide 2 of 2 Purpose: Emphasize: Layer 2—Adds the general form of the interface command. This links the previously specified interface to a group that will handle its packet for the protocol in the manner specified by the global access list statements. It can help student understanding to learn a generalized command as a simplified template common to most access list processes. However, the details for specific access lists vary widely. As you present the global access list command material that follows in this chapter, return to the template term “test conditions” if it helps your students associate variations to the general elements of this model. Emphasize that “test conditions” is an abstraction for this course. Use this abstraction as a generalization to assist teaching and learning. The words “test conditions” are not a Cisco IOS argument or parameter. Cisco IOS software also offers many variations for the second interface command. As you present these variations, refer your students to the template term “access group” and emphasize how each variation performs a link of the access list test conditions met and the interfaces that packets can use as a result. Router(config-if)# { protocol } access-group access-list-number {in | out} IP Access lists are numbered 1-99 or 100-199

How to Identify Access Lists Access List Type Number Range/Identifier IP Standard 1-99 Slide 1 of 3 Purpose: Emphasize: This graphic orients your students to the common numbering classification scheme. Layer 1—Shows the IP standard access lists and the number ranges for these types of access lists. Standard IP lists (1 to 99) test conditions of all IP packets from source addresses

How to Identify Access Lists Access List Type Number Range/Identifier IP Standard Extended 1-99 100-199 Slide 2 of 3 Purpose: Emphasize: Layer 2—Adds the IP extended access lists and the number ranges for these types of access lists. These are the most commonly used form of access list. This layer also adds the method for identifying IP access lists using an alphanumeric name rather than a number. An IP named access list can refer to either a standard or an extended IP access list. Standard IP lists (1 to 99) test conditions of all IP packets from source addresses Extended IP lists (100 to 199) can test conditions of source and destination addresses, specific TCP/IP protocols, and destination ports

How to Identify Access Lists Access List Type Number Range/Identifier IP Standard Extended Named 1-99 100-199, 1300-1999, 2000-2699 Name (Cisco IOS 11.2 and later) IPX Standard Extended SAP filters Named 800-899 900-999 1000-1099 Name (Cisco IOS 11.2. F and later) Slide 3 of 3 Purpose: Emphasize: Layer 3—Adds the Novell IPX access lists covered in the IPX chapter and the number ranges for these types of access lists. As of Release 11.2.4(F), IPX also supports named access lists. Point out that number ranges generally allow 100 different access lists per type of protocol. When a given hundred-number range designates a standard access list, the rule is that the next hundred-number range is for extended access lists for that protocol. Exceptions to the numbering classification scheme include AppleTalk and DECnet, where the same number range can identify various access list types. For the most part, number ranges do not overlap between different protocols. Note: With IOS 12.0, the IP access-lists range has been expanded to also include: <1300-1999> IP standard access list (expanded range) <2000-2699> IP extended access list (expanded range) Standard IP lists (1 to 99) test conditions of all IP packets from source addresses Extended IP lists (100 to 199) can test conditions of source and destination addresses, specific TCP/IP protocols, and destination ports Other access list number ranges test conditions for other networking protocols

Testing Packets with Standard Access Lists Frame Header (for example, HDLC) Packet (IP header) Segment (for example, TCP header) Data Source Address Slide 1 of 1 Purpose: Emphasize: This graphic gives an overview of the type of TCP/IP packet tests standard access lists can filter. It uses the encapsulation graphic and diamond decision graphic to remind students of material presented earlier in this course. Use access list statements 1-99 Deny Permit

Testing Packets with Extended Access Lists An Example from a TCP/IP Packet Frame Header (for example, HDLC) Packet (IP header) Segment (for example, TCP header) Data Port Number Protocol Use access list statements 1-99 or 100-199 to test the packet Source Address Slide 1 of 1 Purpose: Emphasize: This graphic gives an overview of the type of TCP/IP packet tests extended access lists can filter. It uses the encapsulation graphic and diamond decision graphic to remind students of material presented earlier in this course. Destination Address Deny Permit

Wildcard Bits: How to Check the Corresponding Address Bits Octet bit position and address value for bit 128 64 32 16 8 4 2 1 Examples check all address bits (match all) = = 1 ignore last 6 address bits = 1 ignore last 4 address bits = 1 check last 2 address bits Slide 1 of 2 Purpose: Emphasize: Introduce the wildcard bit process. Tell students the wildcard bit matching process is different than the IP subnet addressing mask covered earlier. This graphic describes the binary wildcard masking process. Illustrate how wildcard masking works using the examples shown in the graphic table. The term wildcard masking is a nickname for this access list mask-bit-matching process. This nickname comes from an analogy of a wildcard that matches any other card in a poker game. Emphasize the contrast between wildcard masks and subnet masks stated in the student guide note. The confusion over wildcard and subnet masks can be a key obstacle to learning if students fail to understand the different uses of binary 0 and binary 1 in the two mask types. Point out that the 1 bits in a wild card mask need not be contiguou while the 1 bits in a subnet mask need to be contiguous. Wildcard is like the DOS “*” character. = 1 do not check address (ignore bits in octet) 0 means check corresponding address bit value 1 means ignore value of corresponding address bit

Wildcard Bits to Match a Specific IP Host Address Test conditions: Check all the address bits (match all) An IP host address, for example: 172.30.16.29 Wildcard mask: 0.0.0.0 (checks all bits) Example 172.30.16.29 0.0.0.0 checks all the address bits Abbreviate this wildcard mask using the IP address preceded by the keyword host (host 172.30.16.29) Slide 1 of 1 Purpose: Emphasize: This graphic shows students how to use the host abbreviation in the extended access list wildcard mask. This abbreviation means check the bit value in all bit positions, which has the effect of matching only the specified IP host address in all bit positions.

Wildcard Bits to Match Any IP Address Test conditions: Ignore all the address bits (match any) Any IP address 0.0.0.0 Wildcard mask: 255.255.255.255 (ignore all) Accept any address: 0.0.0.0 255.255.255.255 Abbreviate the expression using the keyword any Slide 1 of 1 Purpose: Emphasize: This graphic shows students how to use the wildcard any abbreviation. This abbreviation means ignore any bit value in all bit positions, which has the effect of matching anything in all bit positions.

Wildcard Bits to Match IP Subnets Check for IP subnets 172.30.16.0/24 to 172.30.31.0/24 Address and wildcard mask: 172.30.16.0 0.0.15.255 Network .host 172.30.16.0 1 Slide 1 of 1 Purpose: This slide describes an example of how wildcard mask bits will match all hosts on subnets 172.30.16.0/24 to 172.30.31.0/24. Emphasize: This process requires a thorough understanding of binary numbering, what values to use in the power of two bit positions, and how to convert a number from decimal to binary. If some of your students seem to lack this understanding, tell them that responsibility for complex access list design is an advanced configuration skill. Later, this course offers a hands-on lab to allow practice designing simple access lists. If you feel that your students need another example to improve their understanding of the process, prepare another example as a chalk talk. Consider having students volunteer to help as you solve your own example that lines up the binary bits of the address and the binary bits of the wildcard mask. Wildcard mask: 0 0 0 0 1 1 1 1 |<---- match ---->|<----- don’t care ----->| 0 0 0 1 0 0 0 0 = 16 0 0 0 1 0 0 0 1 = 17 0 0 0 1 0 0 1 0 = 18 : : 0 0 0 1 1 1 1 1 = 31

Configuring Standard IP Access Lists © 1999, Cisco Systems, Inc. www.cisco.com 10-31

Standard IP Access List Configuration Router(config)# access-list access-list-number {permit|deny} source [mask] Sets parameters for this list entry IP standard access lists use 1 to 99 Default wildcard mask = 0.0.0.0 “no access-list access-list-number” removes entire access-list Slide 1 of 2 Purpose: This slide gives the specific command syntax for TCP/IP standard access list configuration. The access-list command creates an entry in a standard access list. Emphasize: The access-list field descriptions: list—identifies the list to which the entry belongs; a number from 1 to 99. address—source IP address. wildcard-mask—identifies which bits in the address field are matched. It has a 1 in positions indicating “don't care” bits, and a 0 in any position which is to be strictly followed.

Standard IP Access List Configuration Router(config)# access-list access-list-number {permit|deny} source [mask] Sets parameters for this list entry IP standard access lists use 1 to 99 Default wildcard mask = 0.0.0.0 “no access-list access-list-number” removes entire access-list Router(config-if)# Slide 2 of 2 Purpose: This layer shows the ip access-group command. Emphasize: The ip access-group command links an access list to an interface. Only one access list per interface per direction per protocol is allowed. The ip access-group field descriptions: list—number of the access-list to be linked to this interface. direction - default in outbound. Note: Create the access-list first before applying it to the interface. If it is applied to the interface before it is created, the action will be to permit all traffic. However, as soon as you create the first statement in the access list, the access list will be active on the interface. Since there is the implicit deny all at the end of every access list, the access-list may cause most traffic to be blocked on the interface. To remove an access-list, remove it from all the interfaces first, then remove the access-list. In older version of IOS, removing the access-list without removing it from the interface can cause problems. ip access-group access-list-number { in | out } Activates the list on an interface Sets inbound or outbound testing Default = Outbound “no ip access-group access-list-number” removes access-list from the interface

Standard IP Access List Example 1 Non- 172.16.0.0 172.16.3.0 172.16.4.0 S0 172.16.4.13 E0 E1 access-list 1 permit 172.16.0.0 0.0.255.255 (implicit deny all - not visible in the list) (access-list 1 deny 0.0.0.0 255.255.255.255) Slide 1 of 2 Purpose: This slide gives a specific TCP/IP example of a standard access list configuration. Emphasize: Describe each part of the standard access list to your students. The blue statements represent the implicit deny all. A good way to teach this material is to start with another similar configuration on the board. Set goals that will result in the example and have students tell you how to configure it. Have the students tell you what to write. After the configuration correct on the board, use the slide to review.

Standard IP Access List Example 1 Non- 172.16.0.0 172.16.3.0 172.16.4.0 S0 172.16.4.13 E0 E1 access-list 1 permit 172.16.0.0 0.0.255.255 (implicit deny all - not visible in the list) (access-list 1 deny 0.0.0.0 255.255.255.255) interface ethernet 0 ip access-group 1 out interface ethernet 1 Slide 2 of 2 Purpose: Emphasize: Because of the implicit deny all, all non 172.16.x.x traffic are blocked going out E0 and E1. Note: The red arrows represent the access-list is applied as an outbound access-list. Permit my network only

Standard IP Access List Example 2 Non- 172.16.0.0 172.16.3.0 172.16.4.0 S0 172.16.4.13 E0 E1 access-list 1 deny 172.16.4.13 0.0.0.0 Slide 1 of 3 Purpose: This slide gives another specific TCP/IP example of a standard access list configuration. Emphasize: Note: The wildcard mask of 0.0.0.0 is the default wildcard mask. It does not have to be specified. Deny a specific host

Standard IP Access List Example 2 Non- 172.16.0.0 172.16.3.0 172.16.4.0 S0 172.16.4.13 E0 E1 access-list 1 deny 172.16.4.13 0.0.0.0 access-list 1 permit 0.0.0.0 255.255.255.255 (implicit deny all) (access-list 1 deny 0.0.0.0 255.255.255.255) Slide 2 of 3 Purpose: Emphasize: Each access-list should have at least one permit statement in it to make it meaningful because of the implicit deny all statement at the end. Deny a specific host

Standard IP Access List Example 2 Non- 172.16.0.0 172.16.3.0 172.16.4.0 S0 172.16.4.13 E0 E1 access-list 1 deny 172.16.4.13 0.0.0.0 access-list 1 permit 0.0.0.0 255.255.255.255 (implicit deny all) (access-list 1 deny 0.0.0.0 255.255.255.255) interface ethernet 0 ip access-group 1 out Slide 3 of 3 Purpose: Emphasize: Only host 172.16.4.13 is blocked from going out on E0 to subnet 172.16.3.0. Ask the students what will happen if the access-list is placed as an input access-list on E1 instead - Host 172.16.4.13 will be blocked from going out to the Non 172.16.0.0 cloud as well as to subnet 172.16.3.0. Note: The red arrows represent the access-list is applied as an outbound access-list. Deny a specific host

Standard IP Access List Example 3 Non- 172.16.0.0 172.16.3.0 172.16.4.0 S0 172.16.4.13 E0 E1 access-list 1 deny 172.16.4.0 0.0.0.255 access-list 1 permit any (implicit deny all) (access-list 1 deny 0.0.0.0 255.255.255.255) Slide 1 of 2 Purpose: This slide gives another specific TCP/IP example of a standard access list configuration. Emphasize: This example features the use of the wildcard abbreviation any. Deny a specific subnet

Standard IP Access List Example 3 Non- 172.16.0.0 172.16.3.0 172.16.4.0 S0 172.16.4.13 E0 E1 access-list 1 deny 172.16.4.0 0.0.0.255 access-list 1 permit any (implicit deny all) (access-list 1 deny 0.0.0.0 255.255.255.255) interface ethernet 0 ip access-group 1 out Slide 2 of 2 Purpose: Emphasize: All hosts on subnet 172.16.4.0 is blocked from going out on E0 to subnet 172.16.3.0. Note: The red arrows represent the access-list is applied as an outbound access-list. Deny a specific subnet

Control vty Access With Access Class © 1999, Cisco Systems, Inc. www.cisco.com 10-41

Filter Virtual Terminal (vty) Access to a Router console e0 4 1 2 3 Console port (direct connect) Physical port e0 (Telnet) Virtual ports (vty 0 through 4) Five virtual terminal lines (0 through 4) Filter addresses that can access into the router’s vty ports Filter vty access out from the router Slide 1 of 1 Purpose: Emphasize: Instead of applying a standard access-list to a physical interface, now we will apply a standard access-list to the router’s vty ports. A vty port is a logical port on the router that can accept telnet sessions. Note: Access-class is used to filter incoming telnet session into the router’s vty ports and to filter outgoing telnet session from the router’s vty port. Access-class always use standard access-list to match the source address of the incoming telnet session and the destination address of the outgoing telnet session. The 2500 series router by default has 5 vty ports (vty 0 through 4). To configure more vty ports, use the following global configuration command: RouterB(config)#line vty 0 ? <1-188> Last Line number <cr>

How to Control vty Access 4 1 2 3 Physical port (e0) (Telnet) Router# Virtual ports (vty 0 through 4) Slide 1 of 1 Purpose: Emphasize: To filter incoming and outgoing telnet sessions to and from the router’s vty ports, standard access-list is used. If this is to block incoming telnet sessions into a router’s vty port, the standard access-list is used to match the source address of the host trying to telnet into the router’s vty port. If this is to block outgoing telnet sessions from the router’s vty ports to a host, the standard access-list is used to match the destination address of the host the router is trying to telnet into from its vty ports. Setup IP address filter with standard access list statement Use line configuration mode to filter access with the access-class command Set identical restrictions on all vtys

Virtual Terminal Line Commands Router(config)# line vty{vty# | vty-range} Enters configuration mode for a vty or vty range Router(config-line)# Slide 1 of 1 Purpose: Emphasize: Use “access-class” to apply the standard access-list to the vty port. The next slide will show a configuration example. access-class access-list-number {in|out} Restricts incoming or outgoing vty connections for address in the access list

Virtual Terminal Access Example Controlling Inbound Access access-list 12 permit 192.89.55.0 0.0.0.255 ! line vty 0 4 access-class 12 in Slide 1 of 1 Purpose: This example shows how to restrict incoming telnet sessions to the router’s vty ports. Emphasize: The access-class is applied as an input filter. Note: Ask the student the effect of changing the direction of the access-class to outbound instead of inbound. Now the router can accept incoming telnet sessions to its vty ports from all hosts but will block outgoing telnet sessions from its vty ports to all hosts except hosts in network 192.89.55.0. Once a user is telneted into a router’s vty port, the outbound access-class filter will prevent the user from telneting to other hosts as specified by the standard access-list. Remember, when an access-list is applied to an interface, it only block or permit traffic going through the router, it does not block or permit traffic initiated from the router itself. Permits only hosts in network 192.89.55.0 to connect to the router’s vtys

Configuring Extended IP Access Lists © 1999, Cisco Systems, Inc. www.cisco.com 10-46

Standard versus External Access List Extended Filters Based on Source. Filters Based on Source and destination. Permit or deny entire TCP/IP protocol suite. Specifies a specific IP protocol and port number. Slide 1 of 1 Purpose: This slide begins the discussion on extended IP access lists. Emphasize: Distinguish the aspects of the extended IP access list from the standard access list. Your students will perform labs using extended access lists commands. For both standard and extended IP access lists, enter an address mask that identifies which bits in the address field you want the access list to match that will be “don’t care” bit positions. For both types of access lists, the access-group command allows packet filtering into or out of the router. Range is 1 through 99 Range is 100 through 199.

Extended IP Access List Configuration Router(config)# access-list access-list-number { permit | deny } protocol source source-wildcard [operator port] destination destination-wildcard [ operator port ] [ established ] [log] Sets parameters for this list entry Slide 1 of 2 Purpose: The access-list command creates an entry in complex traffic filter list. Emphasize: The access-list field descriptions: list—a number between 100 and 199 protocol—ip, tcp, udp, icmp, igrp, eigrp, ospf and etc……. ip = any internet protocol (see note below) source—ip address source-mask—wildcard-mask of address bits that must match. 0s indicate bits that must match, 1s are "don't care". destination—ip address destination-mask—wildcard-mask operator—lt, gt, eq, neq operand—a port number or application name (i.e. “23” or “telnet”) established-only allow established tcp session coming in (ack or rst bit must be set) log-generates a console message when a packet matches the access-list statement Note: If the protocol number is not listed, you may enter the protocol number between 1-255.

Extended IP Access List Configuration Router(config)# access-list access-list-number { permit | deny } protocol source source-wildcard [operator port] destination destination-wildcard [ operator port ] [ established ] [log] Sets parameters for this list entry Slide 2 of 2 Purpose: Layer 2—Adds the access-group command for IP. Emphasize: The list number must match the number (100 to 199) you specified in the access-list command. Router(config-if)# ip access-group access-list-number { in | out } Activates the extended list on an interface

Extended Access List Example 1 Non- 172.16.0.0 172.16.3.0 172.16.4.0 S0 172.16.4.13 E0 E1 access-list 101 deny tcp 172.16.4.0 0.0.0.255 172.16.3.0 0.0.0.255 eq 21 access-list 101 deny tcp 172.16.4.0 0.0.0.255 172.16.3.0 0.0.0.255 eq 20 Slide 1 of 3 Purpose: This 3 layers slide shows an example of an extended IP access list. Emphasize: Deny FTP from subnet 172.16.4.0 to subnet 172.16.3.0 out of E0 Permit all other traffic

Extended Access List Example 1 Non- 172.16.0.0 172.16.3.0 172.16.4.0 S0 172.16.4.13 E0 E1 access-list 101 deny tcp 172.16.4.0 0.0.0.255 172.16.3.0 0.0.0.255 eq 21 access-list 101 deny tcp 172.16.4.0 0.0.0.255 172.16.3.0 0.0.0.255 eq 20 access-list 101 permit ip any any (implicit deny all) (access-list 101 deny ip 0.0.0.0 255.255.255.255 0.0.0.0 255.255.255.255) Slide 2 of 3 Purpose: Emphasize:. Don’t forget to include the permit statement to permit all other IP traffic out on E0. Deny FTP from subnet 172.16.4.0 to subnet 172.16.3.0 out of E0 Permit all other traffic

Extended Access List Example 1 Non- 172.16.0.0 172.16.3.0 172.16.4.0 S0 172.16.4.13 E0 E1 access-list 101 deny tcp 172.16.4.0 0.0.0.255 172.16.3.0 0.0.0.255 eq 21 access-list 101 deny tcp 172.16.4.0 0.0.0.255 172.16.3.0 0.0.0.255 eq 20 access-list 101 permit ip any any (implicit deny all) (access-list 101 deny ip 0.0.0.0 255.255.255.255 0.0.0.0 255.255.255.255) interface ethernet 0 ip access-group 101 out Slide 3 of 3 Purpose: Emphasize: Deny FTP from subnet 172.16.4.0 to subnet 172.16.3.0 out of E0 Permit all other traffic

Extended Access List Example 2 Non- 172.16.0.0 172.16.3.0 172.16.4.0 S0 172.16.4.13 E0 E1 access-list 101 deny tcp 172.16.4.0 0.0.0.255 any eq 23 Slide 1 of 3 Purpose: This slide gives another example of an extended IP access list configuration. Emphasize: Notice this example of an IP extended access list specifies a source subnet address and any destination address. Deny only Telnet from subnet 172.16.4.0 out of E0 Permit all other traffic

Extended Access List Example 2 Non- 172.16.0.0 172.16.3.0 172.16.4.0 S0 172.16.4.13 E0 E1 access-list 101 deny tcp 172.16.4.0 0.0.0.255 any eq 23 access-list 101 permit ip any any (implicit deny all) Slide 2 of 3 Purpose: Emphasize: Don’t forget to include the permit statement to permit all other IP traffic out on E0. Deny only Telnet from subnet 172.16.4.0 out of E0 Permit all other traffic

Extended Access List Example 2 Non- 172.16.0.0 172.16.3.0 172.16.4.0 S0 172.16.4.13 E0 E1 access-list 101 deny tcp 172.16.4.0 0.0.0.255 any eq 23 access-list 101 permit ip any any (implicit deny all) interface ethernet 0 ip access-group 101 out Slide 3 of 3 Purpose: Emphasize: Deny only Telnet from subnet 172.16.4.0 out of E0 Permit all other traffic

Using Named IP Access Lists Feature for Cisco IOS Release 11.2 or later Router(config)# ip access-list { standard | extended } name Alphanumeric name string must be unique Slide 1 of 3 Purpose: Layer 1—Shows the command syntax to declare a named IP access list. Emphasize: Show how to use named access lists, a new approach to configuring access lists in Cisco IOS software.

Using Named IP Access Lists Feature for Cisco IOS Release 11.2 or later Router(config)# ip access-list { standard | extended } name Alphanumeric name string must be unique Router(config {std- | ext-}nacl)# { permit | deny } { ip access list test conditions } no { permit | deny } { ip access list test conditions } Slide 2 of 3 Purpose: Layer 2—Adds the new configuration environment for this form of access list entry. Emphasize: Note the new prompter form shown. Enter all test condition statements without an initial access list number. The statement that begins with the word no shows how you can delete a specific test condition for IP named access lists, which is much more flexible than earlier forms. With numbered access lists, the entire list and all its statements are considered an entity. With numbered access lists, to change or delete a statement, you would first need to delete the entire numbered access list, then reenter the statements you want to keep. Example: RouterB(config)#ip access-list standard test RouterB(config-std-nacl)#permit 10.1.1.1 RouterB(config-std-nacl)#end RouterB#sh ip access-list Standard IP access list test permit 10.1.1.1 Permit or deny statements have no prepended number "no" removes the specific test from the named access list

Using Named IP Access Lists Feature for Cisco IOS Release 11.2 or later Router(config)# ip access-list { standard | extended } name Alphanumeric name string must be unique Router(config {std- | ext-}nacl)# { permit | deny } { ip access list test conditions } { permit | deny } { ip access list test conditions } no { permit | deny } { ip access list test conditions } Slide 3 of 3 Purpose: Layer 3—Finishes with the new form of the access group command, now able to refer to an IP access list name as well as an access list number. Emphasize: Introduced with Cisco IOS Release 11.2, named access lists: Intuitively identify IP access lists using alphanumeric identifiers. Remove the limit on the number of access lists (previously 99 for IP standard and 100 for IP extended access lists). Allow per-access-list-statement deletions (previously the entire numbered access list needed to be deleted as a single entity). Require Cisco IOS Release 11.2 or later. Permit or deny statements have no prepended number "no" removes the specific test from the named access list Router(config-if)# ip access-group name { in | out } Activates the IP named access list on an interface

Access List Configuration Principles Order of access list statements is crucial Recommended: use a text editor on a TFTP server or use PC to cut and paste Top-down processing Place more specific test statements first No reordering or removal of statements Use no access-list number command to remove entire access list Exception: Named access lists permit removal of individual statements Implicit deny all Unless access list ends with explicit permit any Slide 1 of 1 Purpose: Emphasize:

Where to Place IP Access Lists B S0 E0 S1 C A S1 E0 D E0 To0 E1 Slide 1 of 1 Purpose: Emphasize: Explain the basic rules on where to configure standard and extended access lists. Describe how the extended access list can eliminate unwanted traffic across the serial lines. Recommended: Place extended access lists close to the source Place standard access lists close to the destination

Verifying Access Lists wg_ro_a#show ip int e0 Ethernet0 is up, line protocol is up Internet address is 10.1.1.11/24 Broadcast address is 255.255.255.255 Address determined by setup command MTU is 1500 bytes Helper address is not set Directed broadcast forwarding is disabled Outgoing access list is not set Inbound access list is 1 Proxy ARP is enabled Security level is default Split horizon is enabled ICMP redirects are always sent ICMP unreachables are always sent ICMP mask replies are never sent IP fast switching is enabled IP fast switching on the same interface is disabled IP Feature Fast switching turbo vector IP multicast fast switching is enabled IP multicast distributed fast switching is disabled <text ommitted> Slide 1 of 1 Purpose: This slide shows how to verify an access list. Emphasize: Lists IP interface information. Indicates whether outgoing access list is set. Review the output of the show ip interface command. The highlighted text shows details about access list settings in the show command output.

Monitoring Access List Statements wg_ro_a#show {protocol} access-list {access-list number} wg_ro_a#show access-lists {access-list number} wg_ro_a#show access-lists Standard IP access list 1 permit 10.2.2.1 permit 10.3.3.1 permit 10.4.4.1 permit 10.5.5.1 Extended IP access list 101 permit tcp host 10.22.22.1 any eq telnet permit tcp host 10.33.33.1 any eq ftp permit tcp host 10.44.44.1 any eq ftp-data Slide 1 of 1 Purpose: This slide introduces the show access-lists command used to verify access lists. Emphasize: This is the most consolidated method for seeing several access lists. Note, the implicit deny all statement is not displayed unless it is explicitly entered in the access-list.

Laboratory Exercise © 1999, Cisco Systems, Inc. www.cisco.com 10-63

Visual Objective X X X X Pod wg_ro’s s0 wg_ro’s e0 wg_sw wg_pc_a 10.2.2.12 Pod wg_ro’s s0 wg_ro’s e0 wg_sw A 10.140.1.2 10.2.2.3 10.2.2.11 B 10.140.2.2 10.3.3.3 10.3.3.11 C 10.140.3.2 10.4.4.3 10.4.4.11 D 10.140.4.2 10.5.5.3 10.5.5.11 E 10.140.5.2 10.6.6.3 10.6.6.11 F 10.140.6.2 10.7.7.3 10.7.7.11 G 10.140.7.2 10.8.8.3 10.8.8.11 H 10.140.8.2 10.9.9.3 10.9.9.11 I 10.140.9.2 10.10.10.3 10.3.3.11 J 10.140.10.2 10.11.11.3 10.11.11.11 K 10.140.11.2 10.12.12.3 10.12.12.11 L 10.140.12.2 10.13.13.3 10.13.13.11 X TFTP e0/1 e0/2 e0 wg_ro_a 10.2.2.3 s0 10.140.1.2 wg_sw_a 10.2.2.11 X wg_pc_l 10.13.13.12 Telnet X wg_ro_l e0/1 TFTP Slide 1 of 1 Purpose: Emphasize: Note: Refer to the lab setup guide for lab instructions. e0/2 e0 s0 10.140.12.2 LL 10.13.13.3 wg_sw_l 10.13.13.11 X Telnet s1/0 - s2/3 ... 10.140.1.1 … 10.140.12.1 fa0/24 fa0/23 fa0/0 core_ server 10.1.1.1 core_sw_a 10.1.1.2 core_ro 10.1.1.3

Summary After completing this chapter, you should be able to perform the following tasks: Identify the key functions and processing of IP access lists Configure standard IP access lists Control vty access with an access class Configure extended IP access lists Verify and monitor IP access lists Slide 1 of 1 Purpose: Emphasize: Use the summary page items to review the chapter material you presented.

Review Questions 1. What are the two types of IP access lists? 2. What is the last statement in all access lists? 3. What command do you use to apply an access list to a vty port? Slide 1 of 1 Purpose: Emphasize: Notes: Refer to the appendix for answer to the review questions.