Standard ACLs
Synchronized Transcript
115 cues indexed • Click dialogue or words to jumpWelcome to Jeremy's IT Lab this is a free complete course for the CCNA if you like these videos please subscribe to follow along with the series also please like and leave a comment and share the video to help spread this free series of videos thanks for your help also.
Remember to sign up via the link in the description to get all of the lab files for this course so you can try it out yourself in Packet Tracer if you want more Labs like these I highly recommend picking up Ban's net SIM for the CCNA click the link in the video description to.
Check it out it's a network simulator like Packet Tracer but it's even better and it includes all of these guided labs to not only help you get Hands-On practice configuring and troubleshooting.
But also deepen your understanding of the exam topics I used it myself when studying for my certifications so I feel confident about recommending it to all of you.
If you want to get your own copy of netsim please follow the link in the video description description in today's video we'll practice configuring standard ACL's Access Control lists with a little OPF also standard ACLS can be used to identify traffic based on the.
Source IP address of the packet and then either permit or deny it there are two main ways to configure them standard numbered ACLS and standard named ACLS in this lab we'll practice both.
So let's get right into it step one says to to configure OPF on R1 and R2 to allow full connectivity between the devices we don't have to do any special OSPF configurations.
Let's just simply enable it on each interface I'll start on on R1 enable c t router OPF 1 I'll enable it on the two gig Ethernet interfaces.
First Network 172.16.0.0 0.255 255 area0 and now the serial interface Network 20311 3.0 0.0.3 area Z.
Let's see if it was enabled on each interface do show IP OPF interface.
Okay we can see gigabit Ethernet 00 01 and serial 0000 so it's activated on all all interfaces.
Let's do the same on R2 enable comt router OPF 1 again I'll enable it on the two gig Ethernet interfaces.
First Network 192.168.0.0 o.o. 255.255 area0 and then the serial interface Network 2030. 11130 o.3 area Zer and.
Let's check do show IP P OPF interface so we can see gigabit Ethernet 00 01 and serial 00.
Let's make sure they are OPF neighbors do show IP OPF neighbor there's R1 in the full State notice the dash here.
Because this is a serial connection the OPF network type is point to point so no Dr or bdr is needed fin let's check the routing table do show IP route R2 learned routes to 17216.
1.024 and 2.24 from R1 perfect how about on R1 do show IP route R1 learned routes to 192.168.1.0 24 and 2.24 from R2.
So our OPF configuration is working and we now have full connectivity in this network now let's restrict some of that traffic according to the network policies in step two four requirements are listed and in this case we should.
Configure one ACL for each requirement to get practice with both numbered and named ACLS we will configure numbered ACLS on R1 and named ACLS on R2 as I said in the lecture video ACL configuration can be quite flexible.
So your configur figurations don't have to be exactly the same as mine but here's my my solution the first two requirements are about restricting access to 192.168.1.0 24 and 2.24 standard ACL's should be configured as close.
To the destination as possible so we should configure these ACLS on R2 so let's return to R2 and configure that first one only pc1 and PC3 can access 192.168 1.024.
So I can make two permit entries one each for pc1 and PC3 and then a deny any any entry the command to enter standard named ACL config mode is IP access list standard and I'll name it.
2core 2core 192.168.1.0 192.168.1.0 sl24 now I'll permit pc1 permit 17261 do1 and same for PC3 permit 17216 17216 2.1.
So pc1 and PC3 are both permitted and all other traffic will be denied because of the implicit deny at the end of all ACLS however a good practice is to put a deny any statement at the end.
Anyway just to make it clear it's not necessary but it's something I like to do okay so the ACL has been created but it's not doing anything yet we still need to apply it to an interface we want to restrict traffic entering entering 192.168.1.0.
24 so I'll apply it outbound on on g0000 interface g0000 IP access group 21 21 192.168.1.0 24 out.
Remember that the command to apply an ACL to an interface uses access group not access list okay let's test.
If it's working for the sake of time in this video I won't test every single requirement totally but I still want to demonstrate a little.
So I'll try a ping from pc1 to server one ping 192.168.1.100 because the r process needs to finish the.
First ping or two might fail but after that we can see that pc1 is able to reach server one how about PC2 it shouldn't be able to reach server one.
Let's try a ping to server server one ping 192.168.1.100 so 2030. 11132 which is R2 tells us that server 1 is unreachable PC2 has been blocked from accessing server one.
If we test the same from PC3 and pc4 we def that PC3 can reach server 1 but pc4 can't now now let's move on to the.
Next requirement hosts in 17216 2.24 can't access 192.168.20.10.
2.24 so let's deny that subnet deny 1726 .20 0.0255 however we don't want to restrict any other traffic.
So next let's use a permit any entry to allow all other traffic and finally let's apply it to the the interface interface g01 IP access group 21.
192.168.20.10 ACL's should be applied as close to the destination as possible and we are trying to control traffic destined for the.
192.168.20.10 a2100 again a ping or two might be lost until the art process finishes but then pc1 will be able to Ping server 2.
But if we try from PC3 the Ping should fail let's fail.
Let's see ping 192.168.20.10.
But you can also see how many packets matched each entry of each ACL which can be very useful information.
Okay finally we have to use ACL's on R1 to stop the 17216 1.024 and 2.24 subnets from communicating.
So let's go to R1 I'll configure the two ACLS first and then apply them to the appropriate interfaces interfaces.
First up I'll configure acl1 to deny 17216 17216 1.024 but permit all other traffic remember although named ACL's use the command IP access list numbered ACLS just use access list.
So access list 1 deny 1 deny 172.16.0.0 255 then I'll permit all other traffic access list one permit any.
That's it for acl1 now I'll just use the up arrow and edit this to ACL 2 and make it deny 172.16.0.0 sl24 then do the same for the permit any and.
Now I'll check do show access lists okay acl1 denies 17216 1.024 but permits all other traffic and acl2 denies 17262 24.
But permits all other traffic now let's apply them acl1 to g01 and acl2 to acl2 to g0 interface g01 IP access group one out that restricts.
Traffic from 17216 1.024 from accessing 2.24 and next interface g0000 IP access group 2 out that restricts traffic from 17216 2.24 from.
Accessing 1.024 finally let's test I'll ping from pc1 to PC3 let me show you something new here on pc1 I'll use the command ping hyphen T followed by PC3 IP address 17216 2.1 this tells.
Pc1 to Ping forever until we stop it you can stop it with contrl C but I'll leave it for now notice that pc1 can't reach PC3.
Now I'll do the same from PC3 to pc1 Ping hyphen T 17216 1.1 again PC3 can't reach pc1.
Now I'll go back on R1 and let's check those check those ACL's do show access lists notice how many matches there are for the deny entries.
Because all of those pings between pc1 and PC3 are being being blocked if I use the up Arrow to repeat the command you can see the count keeps going going up.
Okay in this video we did some basic OPF configurations to allow full connectivity in the network and then use standard ACL's to restrict specific traffic.
That's all for this lab now let's take a look at a lab in boan netsim for CCNA okay here's today's boan netsim lab preview.
Now netsim for CCNA actually has quite a few labs for ACL's here in the security fundamental section of netsim for CCNA I counted 20 labs for ACL's.
That's right 2020 so if you're getting ready for the CCNA exam and you want to practice labbing ACL's you got to get netsim.
If you complete all of these practice labs in netsim for ACL's you're set for the CCNA exam you don't need to know anything more about ACLS.
Okay so the one I've chosen to show you today is ACL practice lab 2 standard ACLS so the objective is practice configuring standard ACLS on Cisco routers pretty simple.
Here's the topology router 1 with switch one and pc1 in VLAN 1 and then router 2 with switch 2 and three PC2 and PC3 in VLAN 2 and VLAN 3 and here are the commands you need to know.
So in this lab we are configuring uh standard numbered ACLS with this command okay here are the IP addresses on each device each of the routers has a loop back interface and router 2 is using router on a stick you can.
See the sub interfaces here for inter vline routing between uh vline 2 and vline 3 okay here are the lab tasks task one I think task one is the only task yes it is uh practice configuring standard ACLS.
Okay so you can read this little introduction here just notice the passwords are configured as Bon okay so from each PC verify that you can ping the loop back zero interface addresses of router one and router 2.
So if you look at these log messages here you can see that OPF is configured on the the routers so um hopefully these PCS can ping those interfaces.
First on pc1 here's router one's loop back okay it works I hit uh this is contrl C to cancel that ping and router 2 is loop.
Back that works next PC2 okay looks good and that works as well and.
Finally on PC3 okay and last router two's loop back that works as well.
Okay from each PC ver verify that you can ping every other PC in the topology okay I'm just for the sake of time I'm not going to do that.
Let me just check the routes here on the routers so router one has routes to 10.2.0 which is VLAN 2 and 10.3.0 uh which is VLAN 3 and also.
VLAN 1 is directly connected let's check the rotes on rotor 2 uh show IP route and it learned from OPF a route to VLAN one and it has a route to VLAN 2 and vline 3.
Okay next step three from each PC verify that you can tell net to router one's loop back zero interface okay tnet is something we haven't looked at yet.
But it's a way of connecting to a device like a router or switch to configure it in the CLI so tnet to router one and it works.
So now you can see I'm in pc1 but I've connected to router one and I can configure it just like I was connected to the console of router one.
But I'm going to exit out of there okay on PC2 I'll try the same thing tnet 1.11.1 enter the password and I'm connected to router 1.
So I will make a video about Telnet later in the course so don't worry about it for now okay and PC3 let's see if we can connect to ROR one.
Okay looks good all right and I'll exit out of there okay so step four create standard ACL 1 and configure it to deny traffic from VLAN 2 and VLAN 3 all other traffic sources.
From rouer 2 should be permitted use no more than than two rules when configuring acl1 okay acl1 uh let me see where I have to apply it apply standard acl1 to the correct interface and in a direction that will prevent.
Traffic from vline 2 and vline 3 from accessing any of the networks on router router one okay so uh.
Let's think about that so on router one we want to prevent PC2 and PC3 from from connecting to any of these networks either vline one here or the loop back interface on router one.
So I think we should configure the ACL on router 1 and apply it inbound on this interface so when traffic tries to you know come to router one from router two from these PCS it will be blocked.
Okay so uh deny traffic from vline 2 and vline 3 so let's configure that conf t access list one deny 10.10.20 10.10.20 and for the Wild Card mask I'm going.
To use a wild card mask that includes vline 2 and vline 3 o.o. 1. 255 and I hope I'm correct about that.
So this should cover 10. 10. 10.2.0 and 10 10. 10.3.0 sl24 and then I will create a permit statement access list one permit any.
Because it only says to block traffic from VLAN 2 and VLAN 3 it doesn't say anything about other traffic so we should permit it.
Okay apply St apply standard acl1 to the correct interface and in a direction that will prevent traffic okay uh so I will apply that to what was that interface it is this one here fast Ethernet 0 0 is the one connected.
To router 2 IP access group one in okay and then we will try to tnet and ping uh rouer one's loop back zero interface.
So from pc1 both should work okay so that works I connect it to router one and I'll ping it and that works as well.
Now from PC2 and PC3 if our ACL is configured correctly this should not work yes so that didn't work it says trying trying 1.11.1.
But then it just returned us to the command prompt so that didn't work how about a ping destination host unreachable.
Okay um next I'll try from PC3 tnet 1.11.1 okay same thing doesn't work ping 1.11.1 destination host unreachable perfect.
Okay next step eight create standard ACL 2 and configure it to deny traffic from VLAN 1 all other traffic sources should be permitted use no more than two rules.
Okay and app standard acl2 to an interface and in a direction that will prevent remote networks from pretending to reside on VLAN 1.
Okay prevent remote networks from pretending to reside on VLAN 1 let me briefly explain that so let's say there's a PC here in VLAN 2 that modifies its uh Source IP address or it doesn't have to be here it could be connected somewhere.
Else maybe out here on the Internet connected to router 2 and it wants to access something in VLAN 1 let's say pc1 so it sends a ping to router one and the source is in VLAN one and the destination is in VLAN one it forwards it to pc1.
Like normal however if we place an ACL outbound on this interface I believe it's fast EET 01 uh sorry 1 Z blocking all traffic with a source in VLAN one from exiting that interface.
It will prevent that so uh traffic from VLAN one will still be able to exit but because we applied it outbound on this interface that traffic pretending to be in vlan1 won't be able to enter.
So this is a security measure I will talk more about security later in the course so don't worry if you don't understand it perfectly right at the moment um.
So let's configure that here on router one uh access list 2 deny 10. 10.1.0 10.1.0 sl24 and permit other traffic.
Oops uh I forgot this is not a named ACL access list 2 permit any and then I will apply it to that interface outbound here fast at one.
Z IP access group 2 out okay display and examine the rules you created for both acl1 and acl2.
So I'll do that with do show access lists and there they are as you can see we've already got some matches for acl1.
When we tested that uh Telnet and ping okay based on what you have configured so far apply either acl1 or acl2 to an interface and in a direction that will prevent hosts connected to router 1 from pretending to be hosts on VLAN.
2 or VLAN 3 okay so that is the same Principle as before so acl1 matches these Source addresses so because they are the source all the traffic should be entering this interface no traffic with that Source should.
Be exiting this interface so I'll apply the ACL outbound on this interface fast Ethernet 0 0 uh yes that is correct.
Okay interface f0000 IP access group group one out okay and that is all for the lab.
So um I will use the grade lab function click on this icon and let's see if we got it correct okay that is correct you completed the lab successfully.
So you can check the configuration of each device nothing is highlighted so that means I did it correctly okay so there's a lab from ban netsim fairly simple.
But also some challenging Parts in it so that's the thing I like about netsim some of the labs are pretty simple some of them are more complex and some of them are a mix of both there are as I said before 20 labs for ACL's here.
So you get quite a variety of practice for Access Control lists if you want to get Bose on netsim please follow the link in the video description before finishing today's video I want to thank my jcmp level channel members to join please click.
The join button under the video thank you to Jun Hong OJ mcgraa the gun guy l33 America unjo Benjamin ziso Justin prakash Nasir erison apog Marco floto daming Joshua gilar Ed value John funny dart.
Scott Hassan M velv jacum SE mode Mark Yousef CD B on software Devon Leto Jonathan and Vance sorry if I pronounced your name incorrectly.
But thank you so much for your support this is the list of jcmp level members at the time of recording by the way November 23rd 2020.
If you signed up recently and your name isn't on here don't worry you'll be in future future videos thank you for watching please subscribe to the channel like the video leave a comment and share the video with anyone else studying for the CCNA.
If you want to leave a tip check the links in the description I'm also a brave verified publisher and accept bat or basic attention token tips via the brave browser.
That's that's all for now.