[GTER] SQUID squid-3.1.0.14 + TPROXY

Wenderson Souza wendersonsouza at gmail.com
Sat Nov 21 22:46:27 -02 2009


Vou mandar meu /configure e o script de inicialização de meu squid.

Hoje utilizo 16384 FDs.

Distribuição CentOS 5.1

~# squid -v
Squid Cache: Version 2.7.STABLE3
configure options:  '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr'
'--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc'
'--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--exec_prefix=/usr' '--bindir=/usr/sbin'
'--libexecdir=/usr/lib/squid' '--localstatedir=/var' '--datadir=/usr/share'
'--sysconfdir=/etc/squid' '--enable-epoll' '--enable-snmp'
'--enable-removal-policies=heap,lru'
'--enable-storeio=aufs,coss,diskd,null,ufs' '--enable-delay-pools'
'--enable-linux-netfilter' '--with-pthreads'
'--enable-external-acl-helpers=ip_user,unix_group,wbinfo_group'
'--enable-auth=basic,digest' '--enable-digest-auth-helpers=password'
'--with-winbind-auth-challenge' '--enable-useragent-log'
'--enable-referer-log' '--disable-dependency-tracking'
'--enable-cachemgr-hostname=localhost' '--enable-underscores'
'--enable-cache-digests' '--enable-ident-lookups' '--with-large-files'
'--enable-follow-x-forwarded-for' '--enable-wccpv2' '--enable-fd-config'
'--with-maxfd=16384' 'CFLAGS=-fPIE -Os -g -pipe -fsigned-char'
'LDFLAGS=-pie'


~# vi /etc/init.d/squid

#!/bin/bash
#PATH=/usr/bin:/sbin:/bin:/usr/sbin
#export PATH

# check if the squid conf file is present
[ -f /etc/squid/squid.conf ] || exit 0

start() {
        echo $"Iniciando SQUID "
        ulimit -HSn 16384
        echo 1024 32768 > /proc/sys/net/ipv4/ip_local_port_range
        echo 64 > /proc/sys/kernel/msgmni
        echo 16384 > /proc/sys/kernel/msgmax
        squid
}

stop() {
        echo $"Parando SQUID "
        squid -k shutdown
}

reload() {
        squid -k reconfigure
}

restart() {
        stop
        start
}

case "$1" in
start)
    start
    ;;

stop)
    stop
    ;;

reload)
    reload
    ;;

restart)
    restart
    ;;

*)
    echo $"Usage: $0 {start|stop|reload|restart}"
    exit 1
esac

exit $?

######### FIM VI


Espero que ajude.

--
Wenderson Souza
e-mail: wendersonsouza at gmail.com
msn: wendersonsouza at msn.com


2009/11/21 Leandro Moreira <leandro at leandromoreira.eti.br>

> Caros,
> Alguem pode enviar uma configuração de instancias do squid, pois já fiz
> varios testes e nenhum funcionou.
>
> Att.
>
> Leandro Moreira.



More information about the gter mailing list