Docsity

Access Control Lists - Computer Network - Lecture Slides, Slides of Computer Networks

Partial preview of the text

Download Access Control Lists - Computer Network - Lecture Slides and more Slides Computer Networks in PDF only on Docsity!

Semester 2 – Module 11

Module Objectives:

 Describe the differences between standard and extended ACLs  Explain the rules for placement of ACLs  Create and apply named ACLs  Describe the function of firewalls  Use ACLs to restrict virtual terminal access

Access Control Lists

Intro to ACLs

  • ACLs can be used to perform the following tasks:
    • Limit network traffic and increase network performance.
    • Provide traffic flow control. ACLs can restrict the delivery of routing updates. If updates are not required because of network conditions, bandwidth is preserved.
    • Provide a basic level of security for network access. ACLs can allow one host to access a part of the network and prevent another host from accessing the same area.
    • Decide which types of traffic are forwarded or blocked at the router interfaces. ACLs can permit e-mail traffic to be routed, but block all Telnet traffic.
    • Control which areas a client can access on a network.
    • Screen hosts to permit or deny access to a network segment. ACLs can be used to permit or deny a user to access file types such as FTP or HTTP.

Creating ACLs

  • Created in global configuration mode
  • Use the following rules to create and apply access lists:
    • There should be one access list per protocol per direction.
    • Standard access lists should be applied closest to the destination.
    • Extended access lists should be applied closest to the source.
    • The inbound or outbound interface should be referenced as if looking at the port from inside the router.
    • Statements are processed sequentially from the top of the list to the bottom until a match is found. If no match is found then the packet is denied, and discarded.
    • There is an implicit deny any at the end of all access lists. This will not appear in the configuration listing.
    • Access list entries should filter in the order from specific to general. Specific hosts should be denied first, and groups or general filters should come last.
    • The match condition is examined first. The permit or deny is examined only if the match is true.
    • Never work with an access list that is actively applied.
    • A text editor should be used to create comments that outline the logic. Then fill in the statements that perform the logic.
    • New lines are always added to the end of the access list. A no access-list x command will remove the whole list. It is not possible to selectively add and remove lines with numbered ACLs
    • An IP access list will send an ICMP host unreachable message to the sender of the rejected packet and will discard the packet in the bit bucket.
    • An access list should be removed carefully. If an access list that is applied to a production interface is removed, some versions of IOS will apply a default deny any to the interface and all traffic will be halted.
    • Outbound filters do not affect traffic that originates from the local router

Wildcard Mask

• 32-bit quantity that is divided into four

octets

• Paired with an IP address

• Numbers one and zero in the mask are

used to identify how to treat the

corresponding IP address bits

  • ‘0’ indicates a value that will be checked and

must match

  • ‘1’s indicate bits that do not matter or do not

need to be checked

Standard ACLs

  • Standard ACLs check the source address of IP packets that are routed
  • Standard ACLs use a number in the range of 1 to 99 (also from 1300 to 1999 in recent IOS)
  • The full syntax of the standard ACL command is as follows: - Router(config)# access-list access-list-number deny permit remark source [ source-wildcard ] [ log ] - Router(config)# access-list 1 permit 171.69.2. - Router(config)# access-list 1 remark Permit only Jones workstation through access-list 1 permit 171.69.2.
  • The ip access-group command links an existing standard ACL to an interface:
  • Router(config)# ip access-group { access-list-number | access-list-name } { in | out }

Extended ACLs

  • Extended ACLs are used more often than

standard ACLs because they provide a greater

range of control

  • Extended ACLs check the source and

destination packet addresses and can also

check for protocols and port numbers

  • Access-list [acl#] [protocol] [source] [source wildcard] [destination] [dest wildcard] [operator] [port]
  • Applied to the port closest to the source host

Named ACLs

Placing ACLs

  • Proper ACL placement will filter traffic and make

the network more efficient

  • Applied to an Interface (in or out)
  • The ACL should be placed where it has the

greatest impact on efficiency

  • The general rule is to put the extended ACLs as close as possible to the source of the traffic denied
  • Standard ACLs do not specify destination addresses, so they should be placed as close to the destination as possible
  • Router(config-if)# ip access-group [acl#] [in/out]

Firewall Routers

  • A firewall is an architectural structure that exists between the user and the outside world to protect the internal network from intruders
  • Typically, a network firewall consists of several different machines that work together to prevent unwanted and illegal access
  • ACLs should be used in firewall routers, which are often positioned between the internal network and an external network, such as the Internet
  • The firewall router provides a point of isolation so that the rest of the internal network structure is not affected

Restricting Virtual Terminal Access

  • The process to create the vty access list is the

same as described for an interface

  • However, applying the ACL to a terminal line

requires the access-class command instead of

the access-group command

  • The following should be considered when

configuring access lists on vty lines:

  • Only numbered access lists can be applied to virtual lines.
  • Identical restrictions should be set on all the virtual terminal lines, because a user can attempt to connect to any of them.