c78e Squid (caracters in line) - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Server & Networking > Web & Network Services

Web & Network Services Discussion related to network/web services such as apache, bind, sendmail, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old May 4th, 2009, 13:25
zucchetto zucchetto is offline
Junior Member
 
Join Date: May 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Squid (caracters in line)

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.!
=)
Reply With Quote
  #2  
Old May 4th, 2009, 14:00
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,694
Thanks: 47
Thanked 2,021 Times in 1,860 Posts
Default

Put the acl parameters in an external file.

http://wiki.squid-cache.org/SquidFaq...ec6bc054a44ee8
Reply With Quote
  #3  
Old May 4th, 2009, 14:49
zucchetto zucchetto is offline
Junior Member
 
Join Date: May 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by SirDice View Post
Put the acl parameters in an external file.

http://wiki.squid-cache.org/SquidFaq...ec6bc054a44ee8
thnks guy... i was think in this solution.
but, i'm still curious.
how much caracters the freebsd support in a line?
Reply With Quote
  #4  
Old May 4th, 2009, 15:45
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,694
Thanks: 47
Thanked 2,021 Times in 1,860 Posts
Default

Quote:
Originally Posted by zucchetto View Post
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.
Reply With Quote
  #5  
Old May 4th, 2009, 16:20
anomie's Avatar
anomie anomie is offline
Member
 
Join Date: Nov 2008
Location: Texas
Posts: 783
Thanks: 49
Thanked 113 Times in 100 Posts
Default

Quote:
Originally Posted by zucchetto
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:
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.)
__________________
"Do Not Engage in Useless Activity" --Miyamoto Musashi

Last edited by anomie; May 4th, 2009 at 16:27. Reason: fixed acl syntax.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how can I install squid transparent way? Gerardo Web & Network Services 18 June 27th, 2009 08:48
console line-drawing chars for mc poobah Installation and Maintenance of FreeBSD Ports or Packages 7 March 2nd, 2009 23:00
Squid orcun Web & Network Services 5 March 1st, 2009 17:13
squid not stopping through rc script myha Web & Network Services 13 February 13th, 2009 21:49
Command line tcsh Froma General 5 December 22nd, 2008 07:37


All times are GMT +1. The time now is 06:26.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0