Sie sind auf Seite 1von 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

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

Das könnte Ihnen auch gefallen