WEBVTT

00:12.510 --> 00:15.670
Hi my name is you have from teach ethics.

00:15.690 --> 00:19.060
Welcome you all to Cisco firewalls course.

00:19.290 --> 00:29.130
In this video we will cover the topic of access control lists or what we call AC ls by the end of this

00:29.130 --> 00:29.770
video.

00:29.790 --> 00:35.900
You will be able to understand what is meant by an access control list.

00:36.060 --> 00:51.660
Why we need them and how to apply them so let's start as many of you might hurt an exit control list

00:51.690 --> 01:01.560
actually is a table that defines and controls what access rights each user or type of traffic has to

01:01.590 --> 01:05.970
a particular network or System object.

01:05.970 --> 01:18.230
For example if I am a user here with these computers with this IP address and I need to access for example

01:18.230 --> 01:28.880
the Internet a web server if the access control list can control these behavior by either allowing or

01:29.060 --> 01:33.590
denying my access OK.

01:34.050 --> 01:43.320
So mainly the access control list is considered a filter that enables you to control what packets or

01:43.320 --> 01:46.110
which packets are permitted or denied.

01:47.620 --> 01:51.540
Either out or in the network so you have both sites.

01:51.580 --> 02:00.820
If you are on this site for example which is considered the inside network when the packets go from

02:02.400 --> 02:11.580
this computer to this firewall it's considered an in or inbound packet when it's come when it's coming

02:11.580 --> 02:22.080
to the firewall is considered outbound or out coming back it so firewall firewalls apply the concept

02:22.200 --> 02:31.430
of AC s or access control lists in both sides inbound outbound.

02:31.590 --> 02:41.010
The rules are either allow or deny OK so what kind of traffic you can actually permit or deny.

02:43.110 --> 02:51.450
Actually all types of traffic you can control each TTP which is the Internet traffic FTB File Transfer

02:51.450 --> 03:05.070
Protocol emails even you can control like Ping traffic you can allow or deny ping traffic you can or

03:05.070 --> 03:11.550
you cannot be linked to a specific station or a specific IP address anything you can control using the

03:11.550 --> 03:15.290
access control list right.

03:15.310 --> 03:19.650
So let's move forward to the next slide by the way.

03:19.660 --> 03:26.320
Not only Cisco apply this concept of access control list almost all vendors or all of them.

03:27.430 --> 03:28.580
Let's see an example.

03:28.720 --> 03:35.260
Microsoft uses Windows firewall to apply access control list.

03:35.530 --> 03:36.640
Let's see you.

03:36.980 --> 03:38.170
Is that.

03:38.170 --> 03:46.090
Let's go to Control Panel for example here in Windows system and security Windows Defender firewalls

03:47.370 --> 03:53.030
go to the advantage settings.

03:53.040 --> 03:53.760
Here you go.

03:53.760 --> 04:05.440
Do you see inbound rolls outbound rules if you click on the inbounds rules you will see a set of rules.

04:05.460 --> 04:09.010
This is the kind of traffic allowed or denied.

04:11.420 --> 04:17.100
This is the action either allowed also denied or those traffic types are allowed.

04:18.340 --> 04:25.970
So this is just a simple example of what an access control list means.

04:25.990 --> 04:32.770
The same applies to the outbound rules which means that traffic that's going out of your computer room

04:32.780 --> 04:33.290
system.

04:34.010 --> 04:34.370
OK

04:37.680 --> 04:48.330
so the access control list concept actually exists in all the networking vendors and one of them of

04:48.330 --> 04:54.970
course is Cisco so let's move forward to the next slide here.

04:57.510 --> 04:58.700
As I said Here you go.

04:58.710 --> 05:09.600
We have an is a firewall here between the Internet and the Internet network you can apply an easy end

05:09.870 --> 05:18.170
for the outbound traffic which means the traffic going out or for the inbound traffic which is the traffic

05:19.010 --> 05:20.210
entering the flat.

05:21.120 --> 05:21.620
OK.

05:24.070 --> 05:29.260
So this is the concept as I explained in the previous slide.

05:29.860 --> 05:41.420
So what do we need to know here this actually terminology inside outside or inbound outbound.

05:41.420 --> 05:42.820
All right.

05:42.960 --> 05:48.300
And of course each access control list is associated with an interface.

05:48.330 --> 05:56.160
So if we could create an access control list on this firewall we apply it on a specific interface either

05:56.850 --> 06:00.720
the inside interface or the outside interface.

06:00.750 --> 06:04.110
OK because the firewall can have many interfaces.

06:04.110 --> 06:12.750
So we need to specify and define what interface we will apply our access control list on.

06:12.840 --> 06:14.470
OK.

06:14.880 --> 06:15.390
Next

06:18.030 --> 06:19.040
heat is the concept.

06:19.080 --> 06:29.220
How access control list what access control list actually works based on the concept of packet filtering.

06:29.360 --> 06:40.440
So mainly the filter packets filter packets based on what on many many actually categories you can allow

06:40.440 --> 06:52.380
or deny source IP or destination ip address specific like message type like ICMP specific port source

06:52.380 --> 06:54.000
port or destination port.

06:54.060 --> 07:07.110
Specific protocol like IP protocol you can actually allow or deny also some traffic on a specific interface

07:07.110 --> 07:18.320
you can apply it like I said on a specific interface like a fast internet interface or also or inside

07:18.320 --> 07:19.890
or outside in or out.

07:19.970 --> 07:27.260
So apply it on a specific interface in a specific direction in or out like we see here in this ticket

07:28.290 --> 07:35.180
in is that incoming traffic out is the outcome in traffic we call it inbound and outbound

07:40.330 --> 07:48.670
so many of filter based on many categories like we would see in the next slides IP address fourth type

07:48.730 --> 07:52.400
message type protocol type.

07:52.450 --> 07:53.250
All right.

07:53.260 --> 07:55.310
Here you go.

07:55.440 --> 08:02.140
What are the general characteristics of that access control list as we all agreed Access Control Risks

08:02.260 --> 08:11.760
are set of rules applied in sequence like we see here in this figures this is an access control list

08:13.010 --> 08:20.700
which has actually many statements you can include like many statements in the same access control list

08:21.260 --> 08:24.310
some of them are denied some of them are permanent.

08:24.350 --> 08:26.730
So here is an example here.

08:26.840 --> 08:35.090
There is one access control list that has many statements in sequence each statement has actually a

08:35.090 --> 08:39.290
number or what we call a line number or a sequence number.

08:39.490 --> 08:47.000
For example you see here this list first statement is permitting this IP address.

08:48.410 --> 08:50.720
To any which means to any destination.

08:50.720 --> 09:01.000
Second is deny DCP protocol type it's denying actually that the S empty P traffic which is that type

09:01.000 --> 09:08.830
of an email traffic here also denying pop to which is a type of e-mail traffic.

09:08.830 --> 09:18.540
Many many things he is denying FCP traffic they denying telnet denying the C M.D. which is the command

09:18.540 --> 09:22.340
the command prompt.

09:23.890 --> 09:34.000
So many roles or many statements actually in sequence can be included in the same access control list.

09:34.580 --> 09:35.170
OK.

09:35.180 --> 09:43.280
What if I don't need anymore one of those statements like for example I need to allow FTB instead of

09:43.280 --> 09:44.000
denying it.

09:44.000 --> 09:48.020
So I need to delete one line or one statement.

09:48.170 --> 09:49.640
Very easy.

09:49.640 --> 10:00.440
You can actually just type no before either the pyramids or deny and the line will be deleted so then

10:00.570 --> 10:04.420
I FTB just type the same command.

10:04.430 --> 10:14.210
Just type no before the command and the statement will be removed from your access control list.

10:14.220 --> 10:15.030
OK here you go.

10:15.030 --> 10:25.960
There is one very important point here in Cisco specifically all access control list are ending with

10:25.960 --> 10:40.330
an implicit deny statement like by default they are denying all traffic by default unless you explicitly

10:40.740 --> 10:43.030
permit the traffic.

10:43.030 --> 10:45.980
Let's see this example or this figure here.

10:46.420 --> 10:50.710
This figure here has 5 lines here.

10:50.710 --> 10:56.860
You might deny it deny permit different statements at the end.

10:56.980 --> 11:06.670
There is an implicit deny implicit deny actually means deny all so if I didn't type all those commands

11:08.060 --> 11:13.050
if that access control list is empty I didn't type all those comments.

11:13.050 --> 11:17.560
The default behavior of the firewall is to deny everything.

11:17.610 --> 11:22.910
Denial OK so this is very important.

11:23.290 --> 11:30.100
Unless of course I have a pyramid statement before the deny before the implicit deny all traffic will

11:30.100 --> 11:35.400
be denied and prohibited.

11:35.640 --> 11:36.030
OK

11:38.700 --> 11:47.070
here like I mentioned you so you need at least one pyramid statements in your access control list.

11:48.530 --> 11:53.950
Otherwise all packets are denied and no traffic will pass.

11:53.980 --> 12:06.220
Ok ok let's discuss this concept of what we call a wildcard mask the wild card of mask is actually something

12:06.220 --> 12:14.190
like that subnet mask however it's that actually opposite of the subnet mask.

12:14.190 --> 12:16.080
What do we mean by opposite.

12:16.350 --> 12:25.610
For example we have this IP address in decimal and this is the equivalent in binary.

12:26.250 --> 12:38.650
This is the wild card mask which is 0 0 2 5 5 2 5 5 the wild card mask actually indicates which part

12:38.650 --> 12:43.420
of the IP address are available for examination.

12:44.170 --> 12:46.740
As we all remember the subnet mosque.

12:46.960 --> 12:59.580
If you use the subnet mask of 2 5 5 2 5 5 0 0 that bits that are corresponding to the 2 5 5 will be

12:59.580 --> 13:07.200
taking into consideration while the bits that are equivalent or correspond to the zero will be ignored.

13:07.200 --> 13:10.030
Here is the opposite here.

13:10.170 --> 13:14.160
So the wildcard mask is actually the opposite.

13:14.160 --> 13:20.010
They operate or function the other way.

13:20.720 --> 13:22.610
Not like the Sabbath mask.

13:22.640 --> 13:26.540
So first of all how do we calculate the subnet mask.

13:28.010 --> 13:36.500
Very easy if you have the subnet mask you subtract it from four to five five.

13:36.610 --> 13:42.760
So if this is the submit mask put 2 5 5 2 5 5 2 5 5 2 5 5.

13:42.760 --> 13:49.810
Subtract the subnet mask the result here will be the wildcard mask Okay.

13:49.930 --> 13:51.940
Cisco access control lists.

13:51.940 --> 13:53.800
Use wildcard mask.

13:53.800 --> 13:55.800
They don't use subnet mask.

13:55.990 --> 14:03.940
This is how they function this would be actually clearer clearer more clear in the next slide.

14:04.500 --> 14:07.220
So let's see this.

14:07.210 --> 14:14.340
Access Control List which actually has numbers to it has many statements deny permit deny.

14:17.280 --> 14:25.110
As I mentioned the zero bits in the Wildcat mask represents the bits in the IP address which is this

14:25.110 --> 14:33.870
one or the sum of the IP addresses that will be considered why the 2 5 5 2 present the bits in the IP

14:33.870 --> 14:36.010
address that will be ignored.

14:36.900 --> 14:45.900
So if I have here this access list permit this is the IP address and this is the wildcard mask.

14:46.050 --> 15:01.520
0 0 0 2 5 5 that means the fittest 3 Oct it's here 1 7 2 the 16 that one will be taken into consideration

15:02.120 --> 15:03.580
by these access controls.

15:03.590 --> 15:04.720
The last one.

15:06.380 --> 15:09.170
Would be actually ignored.

15:09.290 --> 15:09.650
Why.

15:09.650 --> 15:14.840
Because we have here 0 0 0 2 5 1 second one.

15:15.020 --> 15:15.660
Same thing.

15:15.710 --> 15:20.190
It's deny statement 1 7 2 the 16.

15:20.270 --> 15:21.800
This is the subnet mask.

15:21.840 --> 15:26.560
The wildcard mask I'm sorry 0 0 2 5 5 2 2 5 5.

15:26.660 --> 15:35.690
So that means the first two acts of this IP address will be examined examined again is what again is

15:35.690 --> 15:47.870
destroyed again is the deny statement and the last thing here is 0 2 5 5 2 5 5 5 5 only the first octet

15:47.870 --> 15:48.800
will be examined.

15:49.270 --> 15:50.810
Okay.

15:51.260 --> 15:59.330
You might ask me why this IP address doesn't have a wildcard mask because it's a single for an individual

15:59.360 --> 16:03.790
IP address for a single host so it doesn't need a wildcard mask.

16:03.800 --> 16:14.160
The wildcard mask is used for IP address of a subnet so all these three are what got masks they define

16:14.190 --> 16:24.020
what part of this IP represent the subnet and what part is actually ignored however this one on the

16:24.020 --> 16:30.160
top doesn't need a wildcard mask because it's just a single individual IP.

16:30.440 --> 16:31.630
It's not a subnet.

16:31.680 --> 16:37.990
OK he couldn't be more clear access control list or access list.

16:43.800 --> 16:51.860
This is actually a type of access control list that we call we call it standard access list Cisco has

16:51.860 --> 17:00.110
two types of fight over access control list standard and extended the standard access control list actually

17:00.110 --> 17:06.590
walks or filter packets based on the source IP address only.

17:06.590 --> 17:15.570
And they have the numbers from one to ninety nine and from 1 3 0 0 to 1 9 9 9.

17:15.650 --> 17:22.160
So if we here give this access list number then it's in the range from 1 to 99.

17:22.160 --> 17:25.520
So that means it's a standard access list.

17:26.390 --> 17:37.390
OK the rule here is permit and this is actually the source IP address that the access list will work

17:37.420 --> 17:38.010
on.

17:38.200 --> 17:42.690
And this is what we call again the wildcard mask.

17:43.350 --> 17:47.580
So this list will permit this subnet IP address.

17:47.650 --> 17:54.100
Will examine or consider the first three updates because though I've got musky 0 0 0 2 5 5

17:56.820 --> 17:58.800
as simple as that.

17:58.800 --> 18:06.510
The second type of the access list is called extended access list the extended access control list actually

18:08.310 --> 18:14.560
takes many factors in consideration into consideration rather than only the source IP address.

18:14.640 --> 18:23.980
Consider the source and destination ip address optionally be considered a protocol type like DCP or

18:23.980 --> 18:29.900
UDP or IP ICMP.

18:29.930 --> 18:40.280
Also consider the source and destination port extended access list you can give them numbers from 100

18:40.370 --> 18:48.100
to 1 nine and then from two thousand to twenty six ninety nine OK.

18:48.110 --> 18:52.400
Here is an example of extended access list.

18:52.400 --> 19:02.740
It has the number of 1 0 3 which which is within this range 100 to 1 99 Paramount DCP is the protocol

19:02.740 --> 19:12.470
type he is the source address here is actually the destination address and here is the protocol type

19:12.470 --> 19:14.040
or protocol number.

19:14.270 --> 19:21.680
You can either define the protocol type 80 is the TTP protocol and each TTP protocol has

19:24.170 --> 19:27.370
actually a port number of 80 OK

19:30.000 --> 19:41.710
one last thing here any access list whether it's the standard or extended you can give it either a number

19:42.580 --> 19:47.710
from those ranges I mentioned above or a name you can just give it the name instead of one or three

19:47.710 --> 19:59.720
you can just say it's TTP pink whatever you want you can just give it a name or a number.

19:59.900 --> 20:04.590
All right so that's all for this video in the next video.

20:04.610 --> 20:15.890
We will discuss some details about Cisco s a access control list specifically and we will have a small

20:17.000 --> 20:23.980
lab configuration to show you how actually you can configure the access control list.

20:23.990 --> 20:25.910
Thank you very much for watching.

20:25.910 --> 20:27.230
I hope you enjoyed the video.
