|
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:
|
|
|
|
Pour que votre serveur Squid écoute sur le port TCP 8888 à la place du port par défaut 3128, modifiez la directive http_port comme ceci[nbsp] :
|
|
Translated by
Emmanuel Sunyer
|
|
|
|
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
Emmanuel Sunyer
|
|
|
|
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>
|
|
|
|
Pour donner un nom d'hôte spécifique à votre serveur Squid, changez la directive visible_hostname. Ce nom d'hôte n'a pas forcément besoin d'être le même que le nom d'hôte de la machine. Dans cet exemple il est défini comme étant <emphasis>weezie</emphasis>.
|
|
Translated by
Emmanuel Sunyer
|
|
|
|
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
Emmanuel Sunyer
|
|
|
|
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:
|
|
|
|
En utilisant le contrôle d'accès de Squid, vous pouvez configurer l'accès aux services Internet gérés par le proxy Squid de telle sorte qu'ils ne soient disponibles que pour les utilisateurs ayant certaines adresses IP. À titre d'exemple, nous allons détailler le cas d'un accès uniquement aux utilisateurs du sous-réseau 192.168.42.0/24[nbsp] :
|
|
Translated by
Emmanuel Sunyer
|
|
|
|
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:
|
|
|
|
Ajoutez ce qui suit en <emphasis role="bold">bas</emphasis> de la section ACL de votre fichier <filename>/etc/squid/squid.conf</filename>[nbsp] :
|
|
Translated by
Emmanuel Sunyer
|
|
|
|
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
Emmanuel Sunyer
|
|
|
|
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:
|
|
|
|
Ajoutez ensuite ce qui suit, en <emphasis role="bold">haut</emphasis> de la section http_access de votre fichier <filename>/etc/squid/squid.conf</filename>[nbsp] :
|
|
Translated by
Emmanuel Sunyer
|
|
|
|
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
Emmanuel Sunyer
|
|
|
|
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:
|
|
|
|
En utilisant les excellentes fonctionnalités de contrôle d'accès de Squid, vous pouvez configurer l'utilisation des services Internet par proxy Squid pour n'être disponibles que pendant les heures normales de bureau. Par exemple, nous allons illustrer l'accès par les employés d'une entreprise qui opère entre 09h00 et 17h00, du lundi au vendredi, et qui utilise le sous-réseau 10.1.42.0/24[nbsp] :
|
|
Translated and reviewed by
gisele perreault
|
|
|
|
Located in
serverguide/C/web-servers.xml:927(para)
|