Periodico Proyecto 1 Comunic Social

Páginas: 5 (1081 palabras) Publicado: 23 de septiembre de 2011
Instalacion de thundercache3 en debian-6.0.0-amd64-i386-netinst.iso con mikrotik 3.30

Instalar cada codigo uno a uno
y donde aparezca s/n siempre seleccionar S

Código:

apt-get update

apt-get upgrade

apt-get install ssh

ahora entramos desde windows con putty la pueden descargar de aquí:
http://www.megaupload.com/?d=2UYWAO1H

abrimos el putty colocamos la ip del servidorentramos como root

y seguimos:
codigo:

apt-get install squid apache2 libapache2-mod-php5 php5 php-db php5-gd php5-sqlite sqlite3 libsqlite3-dev libstdc++6 unzip bzip2

instalando el thunder 3

Código:

cd /root

wget http://www.biazus.com/forum/download/file.php?id=179 -O thunder3-32bits.tar.bz2

mkdir thunder3-32bits "Cria pasta thunder3-32bits

tar xjvf thunder3-32bits.tar.bz2-C thunder3-32bits cd thunder3-32bits

mkdir /usr/local/sbin

cp -R /root/thunder3-32bits/sbin/* /usr/local/sbin

chmod a+x /usr/local/sbin/thunder

mkdir /var/log/thunder

mkdir /var/tmp/thunder

mkdir /var/run/thunder

chmod a+rwx /var/log/thunder

chmod a+rwx /var/tmp/thunder

chmod a+rwx /var/run/thunder

cp -R /root/thunder3-32bits/etc/init.d/* /etc/init.d

chmod a+x/etc/init.d/thunder

cp -R /root/thunder3-32bits/etc/thunder /etc/thunder

touch /etc/thunder/whitelist

touch /etc/thunder/blacklist

mkdir /thunder

chmod a+rwx /thunder

chown -R www-data /thunder/

chmod -R 777 /thunder/

umask 000 /thunder/
nano /etc/php5/apache2/php.ini

al final digitamos esto:

extension=pdo.so
extension=pdo_sqlite.so

presionamos: ctrl.+ x

pulsamos:S para guardar y enter

seguimos:

Código:
ln -s /etc/thunder/thunder.php /var/www/thunder3.php

Colocamos a thundercache 3 para iniciar automáticamente al iniciar Linux

Código:
update-rc.d thunder defaults

Luego integramos el thundercache al squid.

Código:

cd /etc/squid/

cp squid.conf squid.conf.original

egrep -v "^#|^$" squid.conf.original > squid.conf

nanosquid.conf

debajo de la linea:
http_access allow localhost

agrega:
http_access allow localnet

modifica la linea:
http_port 3128

quedando asi:
http_port 3128 transparent

y modifica la linea:
hierarchy_stoplist cgi-bin ?

quedando asi:
#hierarchy_stoplist cgi-bin ?

Al final agrega lo siguiente:

cache_dir ufs /var/spool/squid 2000 16 256#===================================================================#
#Redirecionamento Thunder 3.x - REGEx
#===================================================================#
acl thunder_lst url_regex -i "/etc/thunder/thunder.lst"
cache deny thunder_lst
cache_peer IPTHUNDER parent 8080 0 proxy-only no-digest
dead_peer_timeout 2 seconds
cache_peer_access IPTHUNDER allow thunder_lst
cache_peer_access IPTHUNDER deny allaqui borar IPTHUNDER y poner la ip del servidor de thundercache.

presionamos: ctrl.+ x

pulsamos: S para guardar y enter

y reiniciamos el servidor
reboot

ya podemos ver la relacion de thunder entrando del iexplorer
a la direccion del servidor en mi caso http://192.168.50.2/thunder3.php
Redireccionar nuestros clientes a ThunderCache utilizando MikroTik

Cuando tengamos nuestro servidorThunderCache ya configurado y funcionando, sólo falta redireccionar a nuestros clientes a este nuevo servidor, en realidad el proceso es bastante simple si se tiene claro desde un inicio cómo vamos a instalar ThunderCache junto con MikroTik. Esta guía sólo tomará en cuenta el tipo: "Proxy Paralelo", esto quiere decir que el WebProxy de MikroTik no entrará en juego en ningún momento; por lo tanto,tampoco sus restricciones.

Estoy tomando en cuenta que nuestro servidor MikroTik ya está configurado y funcionando, y que ya hemos deshabilitado o borrado todas las reglas referentes a MikroTik WebProxy.

Primer Caso: ThunderCache conectado al switch general de los clientes.

Esta forma de 'acoplar' Thunder a MikroTik no la recomiendo del todo ya que si llegaramos a tener más de 60...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • sociales periodo formativo 1
  • proyecto 1 de ciencias sociales
  • proyecto mosociales1dular 1 sociales
  • Presentacion Sociales 4 Periodo 1
  • Proyecto Modular 1 Siencias Sociales
  • Unidad 1 Diseño De Proyectos Sociales
  • Disenio Proyecto Investigacion Social 1
  • Taller de recuperación 1 periodo sociales de sebastian

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS