1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Squid (caracters in line)

Discussion in 'Web and Network Services' started by zucchetto, May 4, 2009.

  1. zucchetto

    zucchetto New Member

    Messages:
    2
    Likes Received:
    0
    Hi,
    i'm with a problem in squid, where, in a acl of type 'src' the squid can't reader more than 1807 caracters ....

    The problem is in squid or in freebsd... And how much caracters the freebsd support in a line ?

    Thnks guys,
    and good job.!
    =)
     
  2. SirDice

    SirDice Moderator Staff Member Moderator

    Messages:
    17,384
    Likes Received:
    4
  3. zucchetto

    zucchetto New Member

    Messages:
    2
    Likes Received:
    0
  4. SirDice

    SirDice Moderator Staff Member Moderator

    Messages:
    17,384
    Likes Received:
    4
    AFAIK there's only a maximum on a command line. Anything else is pretty much up to the application.
     
  5. anomie

    anomie New Member

    Messages:
    783
    Likes Received:
    0
    It's also not necessary to stuff a squid ACL into one line like this.

    For example:
    Code:
    acl mynet src 10.0.1.0/24 10.0.2.0/24 10.0.3.0/24
    http_access allow mynet
    is functionally equivalent to:
    Code:
    acl mynet src 10.0.1.0/24 
    acl mynet src 10.0.2.0/24 
    acl mynet src 10.0.3.0/24
    http_access allow mynet
    (When building a squid ACL this way, "or" is implied.)