0% found this document useful (0 votes)
99 views2 pages

Cache Full

This document configures a proxy cache on a router to handle a full cache. It creates a queue called "2 - CACHE-FULL" for overflow traffic. It marks packets destined for port 8080 as "proxyfull". It also enables proxying of traffic from 192.168.10.0/24 to port 80 to the proxy on port 8080. Scheduled scripts are used to stop the proxy, clear the cache, and restart the proxy every 5 days for maintenance.

Uploaded by

David Bracho
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
99 views2 pages

Cache Full

This document configures a proxy cache on a router to handle a full cache. It creates a queue called "2 - CACHE-FULL" for overflow traffic. It marks packets destined for port 8080 as "proxyfull". It also enables proxying of traffic from 192.168.10.0/24 to port 80 to the proxy on port 8080. Scheduled scripts are used to stop the proxy, clear the cache, and restart the proxy every 5 days for maintenance.

Uploaded by

David Bracho
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Cache Full

///////////////////////////////////////////////////////////////////////////////////
//

/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=5M \
max-limit=5M name="2 - CACHE-FULL" packet-mark=proxyfull parent=\
global-out priority=1 queue=default

///////////////////////////////////////////////////////////////////////////////////
/

/ip firewall mangle


add action=mark-connection chain=output comment="2-PROXY FULL" disabled=no \
dscp=4 new-connection-mark=proxyfull passthrough=yes protocol=tcp src-port=\
8080
add action=mark-packet chain=output comment="" connection-mark=proxyfull \
disabled=no new-packet-mark=proxyfull passthrough=yes
add action=return chain=output comment="" connection-mark=proxyfull disabled=no

///////////////////////////////////////////////////////////////////////////////////
//

/ip firewall nat


add action=redirect chain=dstnat comment="Redirecion de Proxy" disabled=\
no dst-port=80 protocol=tcp src-address=192.168.10.0/24 to-ports=8080

/ip proxy
set always-from-cache=yes cache-administrator=webmaster cache-hit-dscp=4 \
cache-on-disk=yes enabled=yes max-cache-size=unlimited \
max-client-connections=600 max-fresh-time=3d max-server-connections=600 \
parent-proxy=0.0.0.0 parent-proxy-port=0 port=8080 serialize-connections=no \
src-address=0.0.0.0

///////////////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////////
/

/ip firewall filter


add chain=input action=accept dst-port=8080 protocol=tcp comment="ACEITAR \
CONEXOES PROXY" disabled=no

///////////////////////////////////////////////////////////////////////////////////
/

/system script
add name="detener_proxy" source="/ip proxy set enabled=no"
policy=ftp,reboot,read,write,policy,test,winbox,password

add name="Limpiar_Proxy" source="/ip proxy clear-cache"


policy=ftp,reboot,read,write,policy,test,winbox,password

add name="Crear_Proxy" source="/ip proxy set enabled=yes"


policy=ftp,reboot,read,write,policy,test,winbox,password

/system scheduler

add name="detener_proxy" on-event=detener_proxy start-date=Aug/15/2008 start-


time=05:00:00 interval=5d comment="Detener Proxy para mantenimiento" disabled=no

add name="Limpiar_Proxy" on-event=Limpiar_Proxy start-date=Aug/15/2008 start-


time=05:03:00 interval=5d comment="" disabled=no

add name="Crear_Proxy" on-event=Crear_Proxy start-date=Aug/15/2008 start-


time=05:10:00 interval=5d comment="Mantenimiento automatico del Web-Proxy"
disabled=no

///////////////////////////////////////////////////////////////////////////////////
/

You might also like