Squid no FreeBSD
Como instalar o Squid em um FreeBSD juntamente com IPFW. Acredito que com outros firewalls não seja muito diferente. Esta instalação está bem simplificada, qualquer dúvida entrar em contato.
Introdução
Vamos instalar um Squid em modo transparente no FreeBSD. Consideramos que o NAT está configurado e a internet está funcionando, porém se for necessário habilitar as opções de NAT deve-se recompilar o kernel com as opções necessárias:
------------------KERNEL------------------
options SYSVMSG
options MSGMNB=16384
options MSGMNI=41
options MSGSEG=2049
options MSGSSZ=64
options MSGTQL=512
options SHMSEG=16
options SHMMNI=32
options SHMMAX=2097152
options SHMALL=3096
Baixe o fonte do Squid e descompacte o pacote:
# fetch http://www2.us.squid-cache.org/Versions/v2/2.5/squid-2.5.STABLE12.tar.gz
# tar zxvf squid-2.5.STABLE12.tar.gz
Agora vamos compilar para instalar:
# ./configure --prefix="/usr/local" --sysconfdir="/usr/local/etc/squid" --enable-storeio="ufs diskd" --enable-removal-policies="lru heap" --enable-default-err-language="Portuguese" --disable-hostname-checks --enable-delay-pools --enable-cache-digests
# make
# make install
Se tudo correr bem, o Squid está instalado.
------------------KERNEL------------------
options SYSVMSG
options MSGMNB=16384
options MSGMNI=41
options MSGSEG=2049
options MSGSSZ=64
options MSGTQL=512
options SHMSEG=16
options SHMMNI=32
options SHMMAX=2097152
options SHMALL=3096
Compilando o Squid
Baixe o fonte do Squid e descompacte o pacote:
# fetch http://www2.us.squid-cache.org/Versions/v2/2.5/squid-2.5.STABLE12.tar.gz
# tar zxvf squid-2.5.STABLE12.tar.gz
Agora vamos compilar para instalar:
# ./configure --prefix="/usr/local" --sysconfdir="/usr/local/etc/squid" --enable-storeio="ufs diskd" --enable-removal-policies="lru heap" --enable-default-err-language="Portuguese" --disable-hostname-checks --enable-delay-pools --enable-cache-digests
# make
# make install
Se tudo correr bem, o Squid está instalado.
Falow !