Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Implementar ZPH.

    Scheduled Pinned Locked Moved Español
    4 Posts 3 Posters 2.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      diegoip
      last edited by

      Hola.

      Me gustaría saber como puedo implementar ZPH (zero penalty Hit)en mi PFsense.
      La situación es la siguiente:
      Tengo mi pfsense con squid configurado como proxy transparente y utilizo un router Mikrotik para administrar el ancho de banda para los terminales.
      la consulta es como puedo "marcar" los objetos cacheados con DSCP (Differentiated Services Code Point)
      para que de esta forma pueda diferenciarlo en mi router Mikrotik y darle otra prioridad.

      he leído y probado algunas cosas al respecto pero no tuve suerte.
      les dejo un link por si les interesa: http://forum.mikrotik.com/viewtopic.php?f=2&t=21118

      Gracias …!

      1 Reply Last reply Reply Quote 0
      • belleraB
        bellera
        last edited by

        Interesante…

        Como ya he dicho muchas veces los configuradores web de paquetes (en este caso pfSense configurando squid) no suelen incluir todas las opciones.

        O sea que si no está como opción hay que modificarlo "a mano" con el peligro de perder los cambios al hacer modificacions por web.

        Al parecer, a partir de squid 2.7 está incluido:

        #  TAG: zph_mode
        #      This option enables packet level marking of HIT/MISS responses,
        #      either using IP TOS or socket priority.
        #          off        Feature disabled
        #          tos        Set the IP TOS/Diffserv field
        #          priority    Set the socket priority (may get mapped to TOS by OS,
        #                      otherwise only usable in local rulesets)
        #          option      Embed the mark in an IP option field. See also
        #                      zph_option.

        #      See also tcp_outgoing_tos for details/requirements about TOS usage.

        #Default:

        zph_mode off

        #  TAG: zph_local
        #      Allows you to select a TOS/Diffserv/Priority value to mark local hits.
        #      Default: 0 (disabled).

        #Default:

        zph_local 0

        #  TAG: zph_sibling
        #      Allows you to select a TOS/Diffserv/Priority value to mark sibling hits.
        #      Default: 0 (disabled).

        #Default:

        zph_sibling 0

        #  TAG: zph_parent
        #      Allows you to select a TOS/Diffserv/Priority value to mark parent hits.
        #      Default: 0 (disabled).

        #Default:

        zph_parent 0

        #  TAG: zph_option
        #      The IP option to use when zph_mode is set to "option". Defaults to
        #      136 which is officially registered as "SATNET Stream ID".

        #Default:

        zph_option 136

        http://www.squid-cache.org/Doc/config/

        1 Reply Last reply Reply Quote 0
        • D
          diegoip
          last edited by

          Hola: Gracias Bellera por su respuesta.

          Voy a armar una maquinita y a hacer pruebas. despues cuento como me fué.

          gracias.!

          1 Reply Last reply Reply Quote 0
          • excelwifiE
            excelwifi
            last edited by

            Buenas Noches

            me gustaria saber si lograstes que te funcionara el ZPH.

            Yo tengo un nodo wifi con 60 cliente con PF (con squid instaldo ) y cunado algun usuario o host solicita alguna pagina que se encuentra en el cahe se la entrega ala velicidad que esta colocado en el portal cautivo (en mi caso 384 K x 128 K), seria ideal que lo entregara a una velocidd mas rapida para mejorar el servicio.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.