WEBVTT

00:00:01.140 --> 00:00:04.330
Welcome to this demo clip, Configuring Squid.

00:00:04.330 --> 00:00:07.880
In this clip, you'll learn about the squid.conf file,

00:00:07.890 --> 00:00:10.850
which is the file that Squid relies on for its configuration.

00:00:11.440 --> 00:00:14.830
We'll take a look at some common Squid configuration options and get a

00:00:14.830 --> 00:00:18.960
general understanding of how to configure Squid with a special emphasis

00:00:18.970 --> 00:00:21.060
on the options that are focused on security.

00:00:21.640 --> 00:00:22.560
Let's get started.

00:00:23.240 --> 00:00:27.460
One of the advantages to using Squid is that it is very configurable.

00:00:28.140 --> 00:00:31.860
If we navigate to the Squid configuration documentation page,

00:00:32.340 --> 00:00:35.150
we can get a great breakdown of the different configuration

00:00:35.150 --> 00:00:38.000
options or directives that are available to us.

00:00:38.840 --> 00:00:40.960
Let's check out a few of these to get a general

00:00:40.960 --> 00:00:44.920
understanding of how a squid.conf file is set up.

00:00:44.920 --> 00:00:48.350
First, let's take a look at the cache_dir option.

00:00:50.840 --> 00:00:52.650
Let's make sure we click on the version 5,

00:00:52.930 --> 00:00:56.180
as it is the latest stable version which we are using.

00:00:56.180 --> 00:00:57.960
When we click on this,

00:00:57.960 --> 00:01:01.760
it brings up a very detailed documentation page on this directive.

00:01:02.340 --> 00:01:06.110
It tells us things like required directives that this directive depends on,

00:01:06.110 --> 00:01:08.820
the default value of this directive if we don't

00:01:08.820 --> 00:01:15.050
supply it within the squid.conf file, and even a suggested config option.

00:01:15.050 --> 00:01:16.660
Below this,

00:01:16.670 --> 00:01:20.690
there's a very detailed piece of documentation that lets us know all

00:01:20.690 --> 00:01:22.860
the different ways that we can use this directive.

00:01:24.540 --> 00:01:27.180
Now, let's back up and take a quick look at some of the

00:01:27.180 --> 00:01:29.480
more security‑focused options available.

00:01:29.480 --> 00:01:34.160
First, let's take a look at the access control list, or ACL directive.

00:01:35.740 --> 00:01:39.770
This directive is essentially used to allow access to the Squid

00:01:39.770 --> 00:01:43.830
proxy cache content to selected IPs or ports by working in

00:01:43.830 --> 00:01:45.870
combination with other access directives,

00:01:45.870 --> 00:01:48.060
as you'll see in demos that follow this one.

00:01:48.440 --> 00:01:51.560
This directive has a suggested configuration as shown here.

00:01:52.940 --> 00:01:57.650
For example, this directive line, if put into a squid.conf file,

00:01:57.650 --> 00:02:03.260
will create an access control list with the name localnet of type source,

00:02:03.490 --> 00:02:06.760
which allows all IP addresses within this range.

00:02:07.740 --> 00:02:11.840
Essentially, this grants your local network access to the Squid proxy cache.

00:02:12.440 --> 00:02:18.170
Another directive that we should be aware of is this http access directive.

00:02:18.410 --> 00:02:21.860
This is one of the most used directives in the squid.conf file.

00:02:23.140 --> 00:02:26.010
It essentially grants different access control lists

00:02:26.020 --> 00:02:28.560
access to the cache and denies others.

00:02:29.640 --> 00:02:31.460
Here is the suggested configuration.

00:02:32.940 --> 00:02:37.440
As you can see, here we are allowing members of the localnet access control list,

00:02:37.440 --> 00:02:40.160
which we touched on a bit earlier, to access the cache.

00:02:41.740 --> 00:02:45.250
Here, we are making sure to deny other unspecified users.

00:02:46.340 --> 00:02:49.130
There are many, many directives available to us.

00:02:49.480 --> 00:02:51.930
You can check out this site for a full listing.

00:02:51.930 --> 00:02:53.550
For the rest of this course,

00:02:53.550 --> 00:02:57.820
we'll make heavy use of the ACL directive along with a couple of others.

00:02:57.820 --> 00:03:01.940
For a full listing of authentication options and relevant directives,

00:03:01.940 --> 00:03:04.960
you can check out this piece of documentation here.

00:03:06.540 --> 00:03:09.820
Please stick around for the next demos where we'll take an existing

00:03:09.820 --> 00:03:13.840
squid.conf file and build on it by adding in some access control

00:03:13.840 --> 00:03:17.710
lists and authentication directives so that we can configure Squid

00:03:17.960 --> 00:03:21.750
such that we ensure access permissions and authorizations are managed

00:03:21.750 --> 00:03:24.260
according to pr.ac‑four.
