21

1 Acls Slides

Embed Size (px)

DESCRIPTION

al

Citation preview

Page 1: 1 Acls Slides
Page 2: 1 Acls Slides

In 60 Days – ICND2

Access Lists

Page 3: 1 Acls Slides

Traffic Cops

• Decides what can pass through router

• Set of YES/NO filters

• Have several uses…

Page 4: 1 Acls Slides

Use ACLs

• To filter traffic

• Reference NAT pools

• Debugging

• With route maps for routing

Page 5: 1 Acls Slides

Types of ACL

• Standard

• Extended

• Named

Page 6: 1 Acls Slides

Standard IP ACL

• Numbered from 1 to 99

• Can filter on source host/network

• Can’t filter ports or protocols

Page 7: 1 Acls Slides

Extended IP ACLs

• Numbered from 100-199

• Filters port/destination/source etc.

• More complicated to configure

Page 8: 1 Acls Slides

Named ACLs

• Names instead of numbers

• Can be standard or extended

• Slightly different commands

Page 9: 1 Acls Slides

Need to Know...

• Port numbers

• Command syntax

• ACL rules

Page 10: 1 Acls Slides

Common Ports Port Service Port Service

20 FTP Data 80 HTTP

21 FTP Control 110 POP3

22 SSH 119 NNTP

23 Telnet 123 NTP

25 SMTP 161/162 SNMP

53 DNS 443 HTTPS

69 TFTP

Page 11: 1 Acls Slides

Command Syntax

• We will come to this!

Page 12: 1 Acls Slides

ACL Rule #1

• One ACL per interface per direction

One incoming

One outgoing

One incoming

One outgoing

Page 13: 1 Acls Slides

ACL Rule #2

• Processed top down

• Incoming 172.16.1.1

Permit 10.0.0.0 No match

Permit 192.168.1.1 No match

Permit 172.16.0.0 Match – Permit

Permit 172.16.1.0 Not processed

Deny 172.16.1.1 Not processed

Page 14: 1 Acls Slides

ACL Rule #3

• Implicit ‘deny all’ at bottom

• Incoming 172.20.1.1 Permit 10.0.0.0 No match

Permit 192.168.1.1 No match

Permit 172.16.0.0 No match

Permit 172.16.1.0 No match

Deny all Match – DROP PACKET

Page 15: 1 Acls Slides

ACL Rule #4

• Router can’t filter self generated traffic

Ping 172.16.1.1 172.16.1.1

ACL – Deny 172.16.1.1

BLOCKED

172.16.1.1

ACL – Deny 172.16.1.1

UNCHECKED

Ping 172.16.1.1

Page 16: 1 Acls Slides

ACL Rule #5 – Can’t Edit Live

• Can’t edit live standard or extended lists

• Can edit named

1. Stop access list working (from interface)

2. Copy into notepad – edit - reapply

Page 17: 1 Acls Slides

ACL Rule #6

• Disable ACL on the interface R1(config)#no ip access-group 101 in

Page 18: 1 Acls Slides

ACL Rule #7

• Can reuse the same ACL

S0/1

ACL 101 IN

ACL 101 – Deny Web Traffic

S0/0

ACL 101 IN

Page 19: 1 Acls Slides

ACL Rule #8

• Keep ‘em short

• Most specific rules at top Permit 10.0.0.0

Permit 192.168.1.1

Permit 172.16.0.0

Deny 172.16.1.1 Should be at top

Page 20: 1 Acls Slides

ACL Rule #9

• Place as close to traffic source as possible

S0/1

ACL 101 IN

ACL 101 – Deny Web Traffic

Do not put it here

Page 21: 1 Acls Slides

End