X hits on this document

Powerpoint document

Year 2 - Chapter 6/Cisco 3 - Module 6 ACLs - page 27 / 40

148 views

0 shares

0 downloads

0 comments

27 / 40

Extended ACLs – TCP Example

The first statement could have used the mnemonic “telnet” in place of 23 with exactly the same result. The one advantage to using the mnemonic is that it is more intuitive to anyone having to support the device.

Lab-X#config t

Lab-X(config)#access-list 101 deny tcp 192.168.5.0 0.0.0.255 any eq 23

Lab-X(config)#access-list 101 permit ip any any

Lab-X(config)#interface fastethernet 0/1

Lab-X(config-if)#ip access-group 101 in

If you want to block network 192.168.5.0 from being able to surf the Web while still allowing other services such as FTP, use this code:

Lab-X#config t

Lab-X(config)#access-list 106 deny tcp 192.168.5.0 0.0.0.255 any eq www

Lab-X(config)#access-list 106 permit ip any any

Lab-X(config)#interface ethernet 0

Lab-X(config-if)#ip access-group 106 in

Document info
Document views148
Page views148
Page last viewedTue Jan 24 19:25:57 UTC 2017
Pages40
Paragraphs397
Words2518

Comments