Squid (caracters in line)

Discussion related to network/web services such as Apache, BIND Sendmail, etc.

Squid (caracters in line)

Postby zucchetto » 04 May 2009, 12:25

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.!
=)
zucchetto
Junior Member
 
Posts: 2
Joined: 04 May 2009, 12:17

Postby SirDice » 04 May 2009, 13:00

User avatar
SirDice
Old Fart
 
Posts: 16196
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Postby zucchetto » 04 May 2009, 13:49



thnks guy... i was think in this solution.
but, i'm still curious.
how much caracters the freebsd support in a line?
zucchetto
Junior Member
 
Posts: 2
Joined: 04 May 2009, 12:17

Postby SirDice » 04 May 2009, 14:45

zucchetto wrote:how much caracters the freebsd support in a line?

AFAIK there's only a maximum on a command line. Anything else is pretty much up to the application.
User avatar
SirDice
Old Fart
 
Posts: 16196
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Postby anomie » 04 May 2009, 15:20

zucchetto wrote: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 ?


It's also not necessary to stuff a squid ACL into one line like this.

For example:
Code: Select all
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: Select all
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.)
"Do Not Engage in Useless Activity" --Miyamoto Musashi
User avatar
anomie
Member
 
Posts: 783
Joined: 17 Nov 2008, 04:37
Location: Texas


Return to Web & Network Services

Who is online

Users browsing this forum: No registered users and 1 guest