+ Responder ao Tópico



  1. #1

    Padrão Não faze cache de determinados arquivos.

    E ai pessoal, estou com essa duvida!
    Como faço pra não fazer cache de arquivos tipo .bat, .avi. mp3?
    Desde ja agradeço a atenção e ajufa de todos!

  2. #2

    Padrão

    posta ai sua config igaul a abaixo


    new terminal dai vc coloca export posta ai

    ip web-proxi e proxy

    / ip web-proxy (export)
    set enabled=yes src-address=0.0.0.0 port=3128 hostname="proxy" transparent-proxy=yes parent-proxy=0.0.0.0:0 \
    cache-administrator="[email protected]" max-object-size=4096KiB cache-drive=secondary-master \
    max-cache-size=5120000KiB max-ram-cache-size=262144KiB
    / ip web-proxy access
    add dst-port=23-25 action=deny comment="block telnet & spam e-mail relaying" disabled=no
    / ip web-proxy cache
    add url=":cgi-bin \\?" action=deny comment="don't cache dynamic http pages" disabled=no
    [[email protected]] ip web-proxy> ..
    [[email protected]] ip> proxy
    [[email protected]] ip proxy> export
    # sep/18/2007 12:18:12 by RouterOS 2.9.27
    # software id = Q8M0-ZZT
    #
    / ip proxy
    set enabled=yes port=3128 parent-proxy=0.0.0.0:1 maximal-client-connecions=1000 maximal-server-connectons=1000
    / ip proxy access
    add dst-port=23-25 action=deny comment="block telnet & spam e-mail relaying" disabled=no
    [[email protected]] ip proxy>



  3. #3

    Padrão Minhas configurações.

    Segue as minhas confugurações de proxy.

    add url="xsex.ws" action=deny comment="" disabled=no
    add url="xtragay.com" action=deny comment="" disabled=no
    add url="xu.xu.pl" action=deny comment="" disabled=no
    add url="x-webdesign.com" action=deny comment="" disabled=no
    add url="xwebsearch.biz" action=deny comment="" disabled=no
    add url="xxxcategories.com" action=deny comment="" disabled=no
    add url="xxxemailxxx.com" action=deny comment="" disabled=no
    add url="xxxtoolbar.com" action=deny comment="" disabled=no
    add url="xzoomy.com" action=deny comment="" disabled=no
    add url="y.ibsys.com" action=deny comment="" disabled=no
    add url="y-e-l-l-o-w.com" action=deny comment="" disabled=no
    add url="yellow500.com" action=deny comment="" disabled=no
    add url="yezol.com" action=deny comment="" disabled=no
    add url="youfindall.com" action=deny comment="" disabled=no
    add url="youfindall.net" action=deny comment="" disabled=no
    add url="yourbookmarks.info" action=deny comment="" disabled=no
    add url="yourbookmarks.ws" action=deny comment="" disabled=no
    add url="your-prescriptions.net" action=deny comment="" disabled=no
    add url="you-search.com" action=deny comment="" disabled=no
    add url="you-search.com.ru" action=deny comment="" disabled=no
    add url="ypir.com" action=deny comment="" disabled=no
    add url="ysa-info.net" action=deny comment="" disabled=no
    add url="yukohamano.com" action=deny comment="" disabled=no
    add url="ywebsearch.info" action=deny comment="" disabled=no
    add url="z.extreme-dm.com" action=deny comment="" disabled=no
    add url="z0.extreme-dm.com" action=deny comment="" disabled=no
    add url="z1.adserver.com" action=deny comment="" disabled=no
    add url="z1.extreme-dm.com" action=deny comment="" disabled=no
    add url="zapros.com" action=deny comment="" disabled=no
    add url="zesearch.com" action=deny comment="" disabled=no
    add url="zestyfind.com" action=deny comment="" disabled=no
    add url="zi.r.tv.com" action=deny comment="" disabled=no
    add url="ziportal.com" action=deny comment="" disabled=no
    add url="zipportal.com" action=deny comment="" disabled=no
    add url="znext.com" action=deny comment="" disabled=no
    add url="zoneoffreeporn.com" action=deny comment="" disabled=no
    add url="zoofil.com" action=deny comment="" disabled=no
    add url="zoomegasite.com" action=deny comment="" disabled=no
    add url="zrap.zdnet.com.com" action=deny comment="" disabled=no
    add url="zvimigdal.com" action=deny comment="" disabled=no
    add url="zyban-zocor-levitra.com" action=deny comment="" disabled=no
    add url=":/.bat\$ .scr\$ .pif\$" action=deny comment="" disabled=no
    / ip web-proxy cache
    add url=":cgi-bin \\?" action=deny comment="don't cache dynamic http pages" \
    disabled=no
    add url="https://" action=deny comment="don't cache dynamic https pages" disabled=no
    add url="http://mail.google.com/mail/" action=deny comment="" disabled=no
    [[email protected]] >



    Obs. tem muito mais regras, bloqueando mais sites pornos ou suspeitos, so q naum cabe aqui, eu ia ter de dividir em varias partes pra colocar tudo aqui, mais basicamente é dessa forma.

  4. #4

    Padrão

    Tenho estas regras q coloco na aba access do web-proxy e elas proibem o acesso diretamente, se vc colocar na aba cache acredito q os arquivos não vão ficar no proxy e os cliente terão acesso normal aos arquivos.

    Elas proibem as extenções .reg .cmd .scr

    Qualquer coisa estamos aí...



    dd url=":\\.re\[g\]\$" action=deny comment="" disabled=no
    add url=":\\.cm\[d\]\$" action=deny comment="" disabled=no
    add url=":\\.sc\[r\]\$" action=deny comment="" disabled=yes



  5. #5

    Padrão

    Valeu amigo, so não entendi pra que tanta / e [, para que realmentes tantas barras e colchetes?