Você está na página 1de 1

FAZENDO CACHEFULL COM THUNDERCACHE + MIKROTIK

Comece ativando o mod header do apache2


cd /etc/apache2/mods-enabled/ ln -s ../mods-available/headers.load headers.load joe /etc/apache2/sites-enabled/000-default

Adicione o alias dessa forma!


<VirtualHost *:80> ServerAdmin webmaster@localhost Alias /thunder /cache3/thunder <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /cache3/thunder> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all Header add THUNDER "THUNDER" Header set THUNDER "THUNDER" </Directory> </VirtualHost>

Restarte o apache2 No Mikrotik Adicione essas regras:


/ip firewall mangle add action=mark-connection chain=forward comment="THUNDER CACHE FULL" content="THUNDER: THUNDER" disabled=no newconnection-mark=thunder-connection passthrough=yes protocol=tcp /ip firewall mangle add action=mark-packet chain=forward comment="" connection-mark=thunder-connection disabled=no new-packet-mark=thunderpacks passthrough=yes protocol=tcp /queue tree add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=1000000 max-limit=2000000 name=ThunderCache packet-mark=thunderpacks parent=global-out priority=8 queue=default

Ali na linha queue tree os valores limit-at=1000000 max-limit=2000000 representam 1MB e 2MB(ceil burst) respectivamente Pronto Agora podem ficar felizes!

Você também pode gostar