Als txt, pdf oder txt herunterladen
Als txt, pdf oder txt herunterladen
Sie sind auf Seite 1von 5

Instalacion RaptorCache Ver 2.

1 - Instalar Debian Linux Ver 7.9

2 - Descargar raptor2:

wget http://www.alterserv.com/raptor/install_raptor2.sh
chmod 777 install_raptor2.sh

NOTA - Antes desactivar lectura del cd/dvd


/etc/apt/sources.lst
comentar la linea que hace mencion al cd/dvd

bash install_raptor2.sh

3 - Ejecutar script de instalacion

|=====================================================================|

_____ _ _____ _
| __ \ | | / ____| | |
| |__) |__ _ _ __ | |_ ___ _ __| | __ _ ___| |__ ___
| _ // _` | '_ \| __/ _ \| '__| | / _` |/ __| '_ \ / _ \
| | \ \ (_| | |_) | || (_) | | | |___| (_| | (__| | | | __/
|_| \_\__,_| .__/ \__\___/|_| \_____\__,_|\___|_| |_|\___|
| |
|_|

|=====================================================================|

3.1 La instalacion se detiene para configurar la base de datos Mysql (Percona


Server) y pide que PULSEMOS UNA TECLA para continuar:

+=============================================================+
| Instalacion del Mysql (PERCONA)
|
| Es importante que ponga la contrasenia del Mysql = raptor
|
+=============================================================+
Pulse enter para continuar...

y luego pide password a lo que responderemos con el password = raptor

������������������������������������������� Configuring mysql-server-5.5


�������������������������������������������
� While not mandatory, it is highly recommended that you set a password for the
MySQL administrative "root" user. �


� If this field is left blank, the password will not be changed.



� New password for the MySQL "root" user:




******_____________________________________________________________________________
_____________________________ �


� <Ok>


�����������������������������������������������������������������������������������
���������������������������������

�������� Configuring mysql-server-5.5


���������




� Repeat password for the MySQL "root" user:




___________________________________________ �


� <Ok>


�����������������������������������������������

+=============================================+
| Se instalaran los sensores de temperatura |
| Ingresar YES en las siguientes opciones |
+=============================================+
Pulse enter para continuar...

Ask "YES" whole answers ...


Pulse enter para continuar...
Do you want to add these lines automatically to /etc/modules? (yes/NO)yes
Successful!

+==========================================================================+
| |
| INSTALACION FINALIZADA |
| REINICIE SU SISTEMA PARA CONCLUIR LA INSTALACION |
| |
+==========================================================================+
Para ingresar al RaptorWebPanel hacerlo desde la URL:
http://192.168.10.2:82

Usuario : admin
Password : admin

+==========================================================================+
| |
| INSTALACION FINALIZADA |
| REINICIE SU SISTEMA PARA CONCLUIR LA INSTALACION |
| |
+==========================================================================+

Para ingresar al RaptorWebPanel hacerlo desde la URL:


http://192.168.10.2:82

Usuario : admin
Password : admin

PASOS POSTERIORES DESPUES DE LA INSTALACION


-----------------------------------------------------------------------------------
--
Despues de reiniciar logearse como root

Actualizacion nuevo binario de Raptor (Permite 80 conexiones gratis)

wget https://www.dropbox.com/s/1j5v3enh6ul92ug/raptor2_update.tar.gz
mv raptor2_update.tar.gz /tmp
tar -xzvf /tmp/raptor2_update.tar.gz -C /
service raptor restart && service squid3 restart

NUEVA ACTUALIZACION 14 NOV 2015


wget
https://dl.dropboxusercontent.com/u/74360564/raptor2/update/raptor2.0.2_update.tar.
gz
mv raptor2.0.2_update.tar.gz /tmp
tar -xzvf /tmp/raptor2.0.2_update.tar.gz -C /
service raptor restart && service squid3 restart

Finalmente reiniciar servidor


--------------------------------------------------------

Editar squid.conf y cambiar la directiva dns apuntando exclusivamente a la IP


192.168.10.1 y admitir LAN para que use el cache.

Para comprar licencias: http://www.raptorcache.org/price-soles

1) Integracion con Mikrotik RouterOS y Redirecci�n y priorizaci�n de tr�fico


Mikrotik por NAT.
================================================================================

/ip firewall filter


add action=accept chain=forward comment="Acepta RaptorCache" disabled=no src-
address=192.168.10.0/30
/ip firewall nat
add action=dst-nat chain=dstnat comment="Redirect Raptorcache" disabled=no dst-
port=80 protocol=tcp src-address=!192.168.10.2 to-addresses=192.168.10.2 to-
ports=3128
/ip firewall mangle
add action=mark-connection chain=postrouting comment="== RAPTORCACHE =="
content="X-Cache-Raptor: HIT from Raptor" disabled=no new-connection-mark=raptor-
connection passthrough=yes src-address=192.168.10.2 protocol=tcp
add action=mark-packet chain=postrouting connection-mark=raptor-connection
disabled=no new-packet-mark=raptor-packs passthrough=yes
/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-
limit=4M name="RaptorCache" packet-mark=raptor-packs parent=global-out priority=4
queue=default

2) Redirecci�n y priorizaci�n de tr�fico Mikrotik por Mangle (modificar "in-


interface" por el nombre de su interface en la regla mark-routing) Activar reglas
de firewall en el servidor Raptor
===================================================================================
======================

/ip route
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0
gateway=192.168.10.2 routing-mark=raptor_route scope=30 target-scope=10
/ip firewall mangle
add action=mark-routing chain=prerouting comment="Raptor - Mangle
====================>" disabled=no dst-port=80 in-interface=LAN new-routing-
mark=raptor_route passthrough=no protocol=tcp
add action=mark-connection chain=forward comment="== RAPTORCACHE =="
content="X-Cache-Raptor: HIT from Raptor" disabled=no new-connection-mark=raptor-
connection passthrough=yes
add action=mark-packet chain=forward connection-mark=raptor-connection
disabled=no new-packet-mark=raptor-packs passthrough=no
/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-
limit=4M name="RaptorCache" packet-mark=raptor-packs parent=global-out priority=4
queue=default

FIREWALL RAPTOR CACHE (Para Mangle):


=====================================
#!/bin/bash
echo ";;;;;;;;;;;;;;;;;;;;;;;"
echo "; RaptorCache ;"
echo ";;;;;;;;;;;;;;;;;;;;;;;"

echo 1 > /proc/sys/net/ipv4/ip_forward

iptables -F
iptables -X
iptables -Z
iptables -t nat -F

iptables -P INPUT ACCEPT


iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -t nat -P PREROUTING ACCEPT
iptables -t nat -P POSTROUTING ACCEPT
iptables -A INPUT -i lo -j ACCEPT #comment#Localhost

iptables -A INPUT -s 192.168.10.0/24 -j ACCEPT #comment#Input LAN

iptables -A FORWARD -i eth0 -p udp -m udp --dport 80 -j REJECT --reject-with icmp-


port-unreachable #comment#Block QUIC
iptables -A FORWARD -i eth0 -p udp -m udp --dport 443 -j REJECT --reject-with icmp-
port-unreachable #comment#Block QUIC

iptables -A FORWARD -p tcp -m tcp --dport 80 -m state --state RELATED,ESTABLISHED


-j DROP #comment#Block QUIC
iptables -A FORWARD -p tcp -m tcp --dport 443 -m state --state RELATED,ESTABLISHED
-j DROP #comment#Block QUIC

# ------------------------------------| Redireccion
|--------------------------------------
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
#comment#Redirect 3128
#
-----------------------------------------------------------------------------------
------

Das könnte Ihnen auch gefallen