Installing Squid and Performing the Initial Configuration

Before you can use the Squid proxy, you have to install it. You can easily perform this task from the YaST utility:

1. Start YaST, enter the root password if required, and on the Software tab, select Install and Remove Software.

2. Open the drop-down list in the upper-left corner, select the Search option, and enter Squid as string for which to search. This will show two packages to select: Squid and Squid Guard. Select both, and then click Accept to continue. This will install all the necessary packages.

Note The YaST option Network Services > Proxy is not used to configure the Squid proxy server. It is used to define client settings for your proxy.

Now that Squid is installed, you can tune the many options that are available from the main configuration file, /etc/squid/squid.conf. You will find many options in this file. Thankfully all are well documented, so you won't have a hard time finding out how to use them. If you want to configure Squid as a regular proxy server, you have to set only a limited amount of options. The following sections discuss the most important settings; in a Squid context, they are referred to as tags. You can group these tags into several categories:

• Tags that define cache settings

• Tags that specify log files and cache directories

• Optimization tags

• Tags with regard to timeout values

• Administrative tags

Note Make sure you open your firewall for Squid as well. By default, Squid works on port 3128. See Chapter 30 for more details on this.

Was this article helpful?

0 0

Post a comment