Introduction to Access Control Lists (ACLs) - PowerPoint PPT Presentation

1 / 17
About This Presentation
Title:

Introduction to Access Control Lists (ACLs)

Description:

Write an ip mask and wildcard mask for all hosts in 192.168.20.0 subnet ... wildcard mask will work, let's look at a host address within the .32 subnet--192. ... – PowerPoint PPT presentation

Number of Views:236
Avg rating:3.0/5.0
Slides: 18
Provided by: engNe
Category:

less

Transcript and Presenter's Notes

Title: Introduction to Access Control Lists (ACLs)


1
Restricting Access in the network
  • Introduction to Access Control Lists (ACLs)

2
Problem
Allow traffic from source network 192.168.10.0 to
be forwarded out on S0/0/0. Traffic from networks
other than 192.168.10.0 is blocked
3
What Are ACLs?
  • An ACL is a list of instructions that tells a
    router what type of packets to permit or deny.
  • Based upon such thing as
  • Source address
  • Destination address
  • Upper Layer protocols (e.g. TCP UDP port
    numbers)

4
Testing Packets with ACLs
  • Configure ACL
  • Apply to appropriate router interface
  • In or out
  • Tested network traffic against the ACL statements
    in sequential order using
  • Permit or deny statements
  • When a statement matches, no more statements
    are evaluated. The packet is either permitted or
    denied.
  • If a packet does not match any of the statements
    in the ACL, it is dropped.

5
Standard ACL
  • Write the ACL statements sequentially in global
    configuration mode.
  • Router(config)access-list access-list-number
    permit/deny test-conditions
  • Router(config)access-list 1 deny 192.5.5.10
    0.0.0.0

6
Apply to interface
  • Group the ACL to one or more interfaces in
    interface configuration mode.
  • Router(config-if)protocol access-group
    access-list-number in/out
  • Router(config)interface fa 0/0
  • Router(config-if)ip access-group 1 out
  • Will apply ACL on the outbound interface of the
    router

7
The Wildcard Mask
  • A wildcard mask is written to tell the router
    what bits in the address to match and what bits
    to ignore.
  • A 0 bit means means check this bit position. A
    1 means ignore this bit position.
  • Our previous example of 192.5.5.10 0.0.0.0 can
    be rewritten in binary as
  • 11000000.00000101.00000101.00001010 (Source
    address)
  • 00000000.00000000.00000000.00000000 (Wildcard
    mask)
  • What do all the bits turned off in the wildcard
    mask tell the router?

8
The Wildcard Mask
9
Masking Practice
  • Write an ip mask and wildcard mask to check for
    all hosts on the network 192.5.5.0
    255.255.255.0
  • Answer 192.5.5.0 0.0.0.255
  • Notice that this wildcard mask is a mirror image
    of the default subnet mask for a Class C address.
  • WARNING This is a helpful rule only when looking
    at whole networks or subnets.

10
Test parameters in ACL
  • various parameters that can be tested are
  • Source address ip mask and wildcard mask.
  • The source address can be a subnet, a range of
    addresses, or a single host. It is also referred
    to as the ip mask because the wildcard mask uses
    the source address to check bits.
  • Destination address
  • Protocol
  • Port number

Wild card mask
ip mask
Lab-A(config)access-list 1 deny 192.5.5.10
0.0.0.0
11
Practice Wild card masks
  • Write an ip mask and wildcard mask for all hosts
    in 192.168.20.0 subnet
  • Write an ip mask and wildcard mask for all hosts
    in 10.10.0.0
  • Write an ip mask and wildcard mask for the host
    192.168.1.100

12
Masking Practice
  • Write an ip mask and wildcard mask to check for
    all hosts in the subnet 192.5.5.32
    255.255.255.224
  • 192.5.5.32 0.0.0.31
  • 0.0.0.31 is the mirror image of 255.255.255.224

13
Practice wild card masks
  • Lets look at both in binary
  • 11111111.11111111.11111111.11100000
    (255.255.255.224)
  • 00000000.00000000.00000000.00011111 (0.0.0.31)
  • To prove this wildcard mask will work, lets look
    at a host address within the .32
    subnet--192.5.5.55
  • 11000000.00000101.00000101.00110111 (192.5.5.55)
    host address
  • 11000000.00000101.00000101.00100000 (192.5.5.32)
    ip mask
  • 00000000.00000000.00000000.00011111 (0.0.0.31)
    wildcard mask

14
Masking Practice
  • Write an ip mask and wildcard mask for the subnet
    172.16.128.0 with a subnet mask of
    255.255.128.0?
  • Answer 172.16.128.0 0.0.127.255
  • Write an ip mask and wildcard mask for the subnet
    10.0.8.0 with a subnet mask of 255.255.248.0?
  • Answer 10.0.8.0 0.0.7.255

15
Problem revisited
  • This ACL allows only traffic from source network
    192.168.10.0 to be forwarded out on S0/0/0.
    Traffic from networks other than 192.168.10.0 is
    blocked.
  • The first line identifies the ACL as access list
    1. It permits traffic that matches the selected
    parameters.
  • access-list 1 permit 192.168.10.0 0.0.0.255
  • The unseen implicit deny all other traffic.
  • The ip access-group 1 out interface configuration
    command links and ties ACL 1 to the Serial 0/0/0
    interface as an outbound filter.

16
Applying Standard ACL to Interfaces
  • Example 2 an ACL that denies a specific host.
  • The first command deletes the previous ACL 1.
  • The next ACL statement, denies the PC1 host
    located at 192.168.10.10. Every other host on the
    192.168.10.0 /24 network is permitted.
  • The implicit deny statement matches other
    network.
  • The ACL is again reapplied to interface S0/0/0 in
    an outbound direction.

17
Next week ..
  • Network address translation.
Write a Comment
User Comments (0)
About PowerShow.com