Subversion Repositories ALCASAR

Rev

Rev 811 | Rev 813 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 811 Rev 812
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 811 2012-02-06 23:25:43Z richard $ 
2
#  $Id: alcasar.sh 812 2012-02-07 21:28:55Z richard $ 
3
 
3
 
4
# alcasar.sh
4
# alcasar.sh
5
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
5
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
6
# This script is distributed under the Gnu General Public License (GPL)
6
# This script is distributed under the Gnu General Public License (GPL)
7
 
7
 
Line 994... Line 994...
994
	echo "request_timeout 5 minutes" >> /etc/squid/squid.conf
994
	echo "request_timeout 5 minutes" >> /etc/squid/squid.conf
995
	echo "persistent_request_timeout 2 minutes" >> /etc/squid/squid.conf
995
	echo "persistent_request_timeout 2 minutes" >> /etc/squid/squid.conf
996
	echo "cache_mem 256 MB" >> /etc/squid/squid.conf
996
	echo "cache_mem 256 MB" >> /etc/squid/squid.conf
997
	echo "maximum_object_size_in_memory 4096 KB" >> /etc/squid/squid.conf
997
	echo "maximum_object_size_in_memory 4096 KB" >> /etc/squid/squid.conf
998
	echo "maximum_object_size     4096 KB" >> /etc/squid/squid.conf
998
	echo "maximum_object_size     4096 KB" >> /etc/squid/squid.conf
-
 
999
# anonymisation de la version de squid
-
 
1000
	echo "via off"
-
 
1001
# suppression de la primitive http 'X_forwarded'
-
 
1002
	echo "forwarded_for delete" >> /etc/squid/squid.conf
999
# pour éviter les message d'erreur lors des changement d'état des interfaces réseaux
1003
# pour éviter les message d'erreur lors des changement d'état des interfaces réseaux
1000
	$SED "s?^SQUID_AUTO_RELOAD.*?SQUID_AUTO_RELOAD=no?g" /etc/sysconfig/squid
1004
	$SED "s?^SQUID_AUTO_RELOAD.*?SQUID_AUTO_RELOAD=no?g" /etc/sysconfig/squid
1001
# Initialisation du cache de Squid
1005
# Initialisation du cache de Squid
1002
	/usr/sbin/squid -z
1006
	/usr/sbin/squid -z
1003
}  # End of param_squid ()
1007
}  # End of param_squid ()