Professional Documents
Culture Documents
INTRODUO
SOFTWARES UTILIZADOS
MikroTik 2.9.51
Squid-2.6.STABLE13
Patch do Zero Penality Hit
Slackware Linux (//www.vivaolinux.com.br/linux/) 12.0
1 of 7 20-04-2016 16:05
MikroTik + Squid 2.6 com cache full [Artigo] https://www.vivaolinux.com.br/artigos/impressora...
(//static.vivaolinux.com.br
/imagens/artigos/comunidade/img.JPG)
2 of 7 20-04-2016 16:05
MikroTik + Squid 2.6 com cache full [Artigo] https://www.vivaolinux.com.br/artigos/impressora...
zph_tos_local 0x30
zph_tos_peer 0
zph_tos_parent off
3 of 7 20-04-2016 16:05
MikroTik + Squid 2.6 com cache full [Artigo] https://www.vivaolinux.com.br/artigos/impressora...
zph_preserve_miss_tos on
forwarded_for off
error_directory /usr/share/squid/errors/Portuguese
coredump_dir /var/cache/squid
detect_broken_pconn on
pipeline_prefetch on
Depois de baixar e descompactar o Squid e o patch, entrar no diretrio do Squid e aplicar o patch:
# cd squid-2.6.STABLE13
# patch -p1 < ../80_all_squid-2.6.13-gentoo.patch
# patch -p1 < ../81_all_squid-i2d-13_of_void.patch
# patch -p1 < ../90_all_squid-2.6.STABLE13-
ToS_Hit_ToS_Preserve.patch
#./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--datadir=/usr/share \
--sysconfdir=/etc \
--localstatedir=/var/lib \
--sysconfdir=/etc/squid \
--libexecdir=/usr/libexec/squid \
--localstatedir=/var \
--datadir=/usr/share/squid \
--enable-auth=basic,digest,ntlm \
--enable-removal-policies=lru,heap \
--enable-ident-lookups \
--enable-useragent-log \
--enable-cache-digests \
--enable-delay-pools \
--enable-referer-log \
4 of 7 20-04-2016 16:05
MikroTik + Squid 2.6 com cache full [Artigo] https://www.vivaolinux.com.br/artigos/impressora...
--enable-arp-acl \
--with-pthreads \
--with-large-files \
--enable-htcp \
--enable-carp \
--enable-follow-x-forwarded-for \
--disable-snmp \
--enable-ssl \
--enable-storeio=ufs,diskd,coss,aufs,null \
--enable-async-io \
--enable-linux-netfilter
# make
# make install
# groupadd squid -g 31
# useradd -u 31 squid -g squid -s /bin/false
# cd /var/cache
# mkdir squid
# chown squid.squid squid
# chmod 775 squid
# cd /var/logs
# touch cache.log
# touch access.log
Rodar o "squid -z" para criar o swap directory do Squid, necessrio apenas uma vez:
# squid -z
5 of 7 20-04-2016 16:05
MikroTik + Squid 2.6 com cache full [Artigo] https://www.vivaolinux.com.br/artigos/impressora...
Iniciar o squid:
# squid -DYC
# ps aux | squid
CONFIGURANDO O MIKROTIK
6 of 7 20-04-2016 16:05
MikroTik + Squid 2.6 com cache full [Artigo] https://www.vivaolinux.com.br/artigos/impressora...
Queue tree:
CONSIDERAES FINAIS
Qualquer dvida....
Voltar (verArtigo.php?codigo=9180)
7 of 7 20-04-2016 16:05