|
141.
|
|
|
Add the following to the <emphasis role="bold">bottom</emphasis> of the ACL section of your <filename>/etc/squid/squid.conf</filename> file:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:912(para) serverguide/C/web-servers.xml:932(para)
|
|
142.
|
|
|
acl fortytwo_network src 192.168.42.0/24
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
acl fortytwo_network src 192.168.42.0/24
|
|
Translated by
Yuri Chornoivan
|
|
|
|
Located in
serverguide/C/web-servers.xml:915(programlisting)
|
|
143.
|
|
|
Then, add the following to the <emphasis role="bold">top</emphasis> of the http_access section of your <filename>/etc/squid/squid.conf</filename> file:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:918(para) serverguide/C/web-servers.xml:939(para)
|
|
144.
|
|
|
http_access allow fortytwo_network
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
http_access allow fortytwo_network
|
|
Translated by
Yuri Chornoivan
|
|
|
|
Located in
serverguide/C/web-servers.xml:922(programlisting)
|
|
145.
|
|
|
Using the excellent access control features of Squid, you may configure use of Internet services proxied by Squid to be available only during normal business hours. For example, we'll illustrate access by employees of a business which is operating between 9:00AM and 5:00PM, Monday through Friday, and which uses the 10.1.42.0/24 subnetwork:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:927(para)
|
|
146.
|
|
|
acl biz_network src 10.1.42.0/24
acl biz_hours time M T W T F 9:00-17:00
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
acl biz_network src 10.1.42.0/24
acl biz_hours time M T W T F 9:00-17:00
|
|
Translated by
Yuri Chornoivan
|
|
|
|
Located in
serverguide/C/web-servers.xml:935(programlisting)
|
|
147.
|
|
|
http_access allow biz_network biz_hours
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
http_access allow biz_network biz_hours
|
|
Translated by
Yuri Chornoivan
|
|
|
|
Located in
serverguide/C/web-servers.xml:943(programlisting)
|
|
148.
|
|
|
After making changes to the <filename>/etc/squid/squid.conf</filename> file, save the file and restart the <application>squid</application> server application to effect the changes using the following command entered at a terminal prompt:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:950(para)
|
|
149.
|
|
|
sudo systemctl restart squid.service
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:956(command)
|
|
150.
|
|
|
If formerly a customized squid3 was used that set up the spool at <filename>/var/log/squid3</filename> to be a mountpoint, but otherwise kept the default configuration the upgrade will fail. The upgrade tries to rename/move files as needed, but it can't do so for an active mountpoint. In that case please either adapt the mountpoint or the config in <filename>/etc/squid/squid.conf</filename> so that they match.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:961(para)
|