|
135.
|
|
|
sudo chmod a-w /etc/squid/squid.conf.original
|
|
|
|
sudo chmod a-w /etc/squid/squid.conf.original
|
|
Translated by
Yuri Chornoivan
|
|
|
|
Located in
serverguide/C/web-servers.xml:882(command)
|
|
136.
|
|
|
To set your Squid server to listen on TCP port 8888 instead of the default TCP port 3128, change the http_port directive as such:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:889(para)
|
|
137.
|
|
|
http_port 8888
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
http_port 8888
|
|
Translated by
Yuri Chornoivan
|
|
|
|
Located in
serverguide/C/web-servers.xml:893(programlisting)
|
|
138.
|
|
|
Change the visible_hostname directive in order to give the Squid server a specific hostname. This hostname does not necessarily need to be the computer's hostname. In this example it is set to <emphasis>weezie</emphasis>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:898(para)
|
|
139.
|
|
|
visible_hostname weezie
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
visible_hostname weezie
|
|
Translated by
Yuri Chornoivan
|
|
|
|
Located in
serverguide/C/web-servers.xml:902(programlisting)
|
|
140.
|
|
|
Using Squid's access control, you may configure use of Internet services proxied by Squid to be available only users with certain Internet Protocol (IP) addresses. For example, we will illustrate access by users of the 192.168.42.0/24 subnetwork only:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:907(para)
|
|
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)
|