Re: [squid-users] How To Make A New Squid proxy server form the existingone...

2009-02-26 Thread jmaan
*
This message has been scanned by IMSS NIT-Silchar



Thanks.


> jm...@nits.ac.in wrote:
>> *
>> This message has been scanned by IMSS NIT-Silchar
>>
>> Dear All Squid Users/Experts,
>>
>> Let me tell you the fact that I am just monitoring the activites of
>> squid
>> proxy server, though I have not myself made it.
>>
>>
>> I would like to know a few things, if any one of you can kindly let me
>> know what basic things one must look into to make one squid proxy server
>> ?
>
> http://wiki.squid-cache.org/SquidFaq
>
>>
>> What are the lines that I have to check/modify in squid.conf file ?


Please give the url location of teh QUICKSTART info file ? Did u mean of
the fedora/ squid ?



>
> see QUICKSTART info file in your install documentation.
>
>>
>> As of now the current df shows up the following status of the disk space
>> in my proxy server.
>>
>>
>>
>> [r...@facu-pxy /]# df
>> Filesystem   1K-blocks  Used Available Use% Mounted on
>> /dev/mapper/PrimaryVol-root
>>   19838052   9958860   8855192  53% /
>> /dev/mapper/PrimaryVol-home
>>   34756272  28916872   4045352  88% /home
>> /dev/mapper/PrimaryVol-var
>>   14855176  13219512868896  94% /var
>> /dev/mapper/PrimaryVol-tmp
>>4062912139684   3713516   4% /tmp
>> /dev/sda1   101086 34837 61030  37% /boot
>> tmpfs   25342412253412   1% /dev/shm
>> [r...@facu-pxy /]#
>>
>>
>>
>> As you can see the /var shows up 94% utilisation.
>>
>>
>> From my inspection, of the /var partition, I could see that, everything
>> is
>> fine, and the logs are routinely deleted from the system in a particular
>> order as cron jobs.
>>
>> Please let me know.
>>
>> Thanking in advance,
>>
>> jm
>>
>
> So whats the problem?
>
>
> Amos
> --
> Please be using
>Current Stable Squid 2.7.STABLE6 or 3.0.STABLE13
>Current Beta Squid 3.1.0.5
>
> *
> This message has been scanned by IMSS-NIT Silchar
>


Thanks,
Jyotishmaan Ray
Computer Server Room,NITS
National Institute of Technology Silchar
Assam, INDIA
Pin - 788 010
Tele: 0091-3842-233179
Fax:  0091-3842-233797
Mobile: 09435554598
URL: http://www.nits.ac.in




Re: [squid-users] Serving the cache on browser refreshes?

2009-02-26 Thread Amos Jeffries

Tom MacWright wrote:

I've been working on using Squid as an image cache for images that
really won't change very often but do have dynamic-looking addresses
(large querystrings). I've been able to get Squid to cache these
images in memory, so if I do a fresh pageload from Opera or Safari, I
get a TCP_MEM_HIT, which is fantastic, but when I reload the page, I
get a TCP_REFRESH_MISS, which is not so great. I know that the browser
is specifying that this is a reload so it'll get the cache to re-cache
the image, but I really don't want this to happen - actually hitting
the images is a very expensive operation, since they're generated. How
can I get squid to ignore browser refreshes and just serve everything
as if it was a new request? Ideally images will live in the cache
almost forever and always be served from the cache. My squid.conf is
below.

Thanks!

Tom MacWright

http_port 80 accel defaultsite=209.20.72.110

> acl mapbox_sites dstdomain 209.20.72.110

hmm, your website domain name is "209.20.72.110". Thats not very good.


cache_peer 127.0.0.1 parent 8080 0 no-query originserver name=myAccel

http_access allow mapbox_sites
cache_peer_access myAccel allow mapbox_sites

# Items without a specific expiry date will be fresh for 10 minutes
# After 20% of the object's stated life (via Expires) the object will
be refreshed
# the longest non-specified objects can last is 4320 minutes

# refresh_pattern -i (/cgi-bin/|\?) 10 100% 4320


ghhh!!
# refresh_pattern -i (/cgi-bin/|\?) 0 0% 0


refresh_pattern .300 20% 4320

# by default, squid ignores requests which have a ? in them
# so, we override this (and comment out the code later on in this doc)
# this also commands squid to ignore lots of things that would prevent
# it from caching stuff with certain headers




refresh_pattern -i \? 3000 990% 3 override-expire override-lastmod
ignore-no-cache ignore-private ignore-reload



Will never happen, the '.' pattern is matched first/above.
Move this to the top of the refresh_patterns list. And check that the 
pattern does not match anything unwanted.



cache_dir ufs /var/spool/squid 500 16 256

# Cache commonly-used images in memory, since that's nice.

maximum_object_size_in_memory 1000 KB
maximum_object_size 1 GB


Amos
--
Please be using
  Current Stable Squid 2.7.STABLE6 or 3.0.STABLE13
  Current Beta Squid 3.1.0.5


Re: [squid-users] Fail-Over Site Hosting

2009-02-26 Thread Amos Jeffries

Philip de Souza wrote:

Hello,

Can Squid-Cache be used in a Windows 2003 / IIS 6, web-hosting environment
to provide a temporary means by which the actual web server itself can be
brought down for maintenance, so that the site appears to remain live to any
clients wishing to access it?



Possibly.



We have two hosted machines with our web host provider, but were not able to
configure Network Load Balancing due to SSL cert.’s being needed on some of
the sites the second server is now hosting (thereby negating our ability to
use the 2 NICs on each machine we are limited to).


Huh? SSL certs should not be needed for port 80 access...



The site we have running on the first server is a vital one, but the machine
needs maintenance and so we’re searching for a solution that could work for
a period of 30-60 minutes, no more. Can Squid accommodate this, even for a
MS platform such as ours?

Been searching all the documentation I could find and could not find the
answer I need on this… many thanks in advance!


~Philip 



Um, is this a once-off. Or a long term backup mechanism?

Static content, or dynamic content that can be cached for the 30-60 
minutes without causing trouble is easy.  Any purely dynamic content 
that cannot be cached at all may have trouble.



To do this with Squid you would need version 2.7, with a cache large 
enough to hold most of the site and at minimum all of the in-use pages 
and files. Set squid up as a web accelerator for the machine thats going 
down. Then shift DNS over to it as primary server.

  http://wiki.squid-cache.org/ConfigExamples

Once that is done the real prep can be started to enable caching of the 
site during the down time. Set up stale-if-error on all objects from the 
hosted sites so they can be served out of the cache even if too old 
during the downtime.


Then use a spider (wget etc) to pull the important website(s) into 
Squid's cache fully just before bringing the web server down.


With all clients going through Squid for some period leading up to the 
outage, there should be no major disruption.


Problems you may face are:
 - not able to cache the whole website (triage the pages to those 
needed most)

 - dynamic pages not being changeable during the outage.


Amos
--
Please be using
  Current Stable Squid 2.7.STABLE6 or 3.0.STABLE13
  Current Beta Squid 3.1.0.5


Re: [squid-users] Squid & url rewriter

2009-02-26 Thread sameer shinde
Hi,

What exactly are you trying to achive?


~~
Sameer Shinde.
M:- +91 98204 61580
Millions saw the apple fall, but Newton was the one who asked why.


On Thu, Feb 26, 2009 at 6:10 PM, Merdouille  wrote:
>
> Hi everyone
>
> I'm trying to use url rewriter for SQUID.
> I use Squid 2.6 stable on CentOS.
>
> In my config file i wrote :
>
> never_direct allow all
> url_rewrite_program /etc/squid/test.php
> url_rewrite_children 1
>
> And a stupid php file to do test :
>
> #!/usr/bin/php
> 
> $temp = array();
>
> while ( $input = fgets(STDIN) ) {
>
>  echo "302:http://www.yahoo.fr/";;
> }
> ?>
>
> when i try to open an URL on my server, there is no redirection on yahoo
> like it should do.
>
> --
> View this message in context: 
> http://www.nabble.com/Squid---url-rewriter-tp3197p3197.html
> Sent from the Squid - Users mailing list archive at Nabble.com.
>
>


Re: [squid-users] Delay pool aggregate is very large negative number on upload

2009-02-26 Thread Prasanna Krishnamoorthy
On Fri, Feb 27, 2009 at 12:10 PM, Amos Jeffries  wrote:
> Personally I'd configure squid with only individual pools. And limit each
> user IP separately.
Actually, this is a simplified entry. We may have more than one set of
users, high priority, highest, low, etc. So we would need group
aggregates too.


> That said, there does seem to be a problem. Delay pools should not go
> negative at any point.  Is it only happening on POST?
Not sure. I have now enabled full debugging on "77" which is delay
pools. Will see if I can find anything.

> Please be using
>  Current Stable Squid 2.7.STABLE6 or 3.0.STABLE13
>  Current Beta Squid 3.1.0.5

Hardy has 3.0.STABLE7 as latest. If problem persists, will try to
compile and use 3.0STABLE13.

Thanks!
Prasanna.
-- 
Want to manage multiple office networks?
Want to securely connect all your locations?
Want to do it in a budget?
www.elinanetworks.com


Re: [squid-users] squid -k rotate/reconfigure error on running squid

2009-02-26 Thread Amos Jeffries

Bora Özden wrote:

Hi,

On a running squid when i give commands  the squid -k rotate or
reconfigure i get the squrid ERROR : No running copy. But the squid is
giving service and has a PID on  ps -aux.

I want to  apply the configuration changes made to the squid.conf .
Cause its  a production squid i dont want to stop and then start the
squid again.

Regards


http://wiki.squid-cache.org/SquidFaq/TroubleShooting#head-fa2a8d93db2ab1c414c4d0e71106ce871d2087e1

Amos
--
Please be using
  Current Stable Squid 2.7.STABLE6 or 3.0.STABLE13
  Current Beta Squid 3.1.0.5


Re: [squid-users] Daily log rotate

2009-02-26 Thread Amos Jeffries

Bora Özden wrote:

Hi,
I would like to make the squid logs to be rotated  and looking at the
/etc/logrotate.d/squid file but not sure about all the parameters (what
they mean) written there. I need then make them archived (send to a
server via ftp, have an old script doing this at the old server , will
look at it and copy it to the production one) .And also when i give the
command
squid -k rotate command to rotate the log files i get " No running copy"
, but the proxy is working and still giving service, also can see  on
the  tail -f access.log.

So for doing this logrotate smoothly (not to fail) i wanted also to ask
to the list.

Regards

Bora Ozden



Something like this:

set squid.conf:
  logfile_rotate 0

Then in logrotate.d/squid (this is just off the top of my head, check 
the docs for corrections):


  postrotate {
squid -k rotate
/script/to/process/logfile /var/logs/suid/access.log.1
  }

Amos
--
Please be using
  Current Stable Squid 2.7.STABLE6 or 3.0.STABLE13
  Current Beta Squid 3.1.0.5


Re: [squid-users] Delay pool aggregate is very large negative number on upload

2009-02-26 Thread Amos Jeffries

Prasanna Krishnamoorthy wrote:

Hello List!

We have a simple scenario with a transparent squid proxy and two delay
pools, one unlimited and one limited. When a user in the limited delay
pool uploads a large file (say via Gmail) his Individual-Current pool
becomes a large negative number, and so does the Aggregate-Current
pool. This behaviour is highly offensive, since browsing "freezes" for
all users, until the delay pool Aggregate becomes positive again.


I agree, it may be highly offensive to clients. Why are you doing it?

Personally I'd configure squid with only individual pools. And limit 
each user IP separately.


ie:
  delay_parameters 2 -1/-1  32000/64000



Squid Conf -

delay_pools 2

delay_class 1 2
delay_parameters 1 -1/-1  -1/-1
acl bpool-1 src "/etc/squid/bpools/bpool-1"
delay_access 1 allow bpool-1
delay_access 1 deny all

delay_class 2 2
delay_parameters 2 64000/256000  32000/64000


Why not add here:
  delay_access 2 deny bpool-1
> delay_access 2 allow all

... which means you can get rid of the unlimited pool above.
bpool-1 people will be left without a pool at all, and get through 
without speed limits.




Please let me know what information I can provide to figure this out.
It's pretty easy to reproduce for us. We are also ready to test any
patch (we use Ubuntu Hardy, Squid Cache: Version 3.0.STABLE7-1  - the
latest available in Hardy).

Thanks,
Prasanna.


That said, there does seem to be a problem. Delay pools should not go 
negative at any point.  Is it only happening on POST?


Amos
--
Please be using
  Current Stable Squid 2.7.STABLE6 or 3.0.STABLE13
  Current Beta Squid 3.1.0.5


Re: [squid-users] Squid Crashes when cache dir fills

2009-02-26 Thread Wilson Hernandez - MSD, S. A.
I have approximately 75 users on my lan that continually use that 
server. I will consider your solutions and implement them and test how 
squid behaves.


So, what is the recommended cache size for a squid system running with 
over 75 users?


Thanks.

Angela Williams wrote:

Hi!
On Thursday 26 February 2009, Wilson Hernandez - MSD, S. A. wrote:

Amos Jeffries wrote:

Wilson Hernandez - MSD, S. A. wrote:

I have cache_dir ufs /var/log/squid 6 255 255


Your cache_dir line says create a squid cache directory structure 255 wide by 
255 deep and allow it to grow up to 60G. Squid will continue to try and store 
objects into the directory structure until either 60G limit is reached or the 
filesystem - more like as not /var - runs out of space.
If it runs out of space squid is no longer able to write to its log files you 
configured in your squid.conf file. If it cannot write to the log file it 
cannot tell you want happened!


Do you want a nice simple solution?
Add a second hard drive and have squid create its 60G sized cache there.
Make certain logrotate is rotating the normal system logs  and asking squid to 
rotate its logs!


Use df and see just how fuch free space is really available in /var if it is a 
filesystem in its own right.


Another thought?
How many users are trying to access the 'net via this proxy that you want to 
store 60G in a 256 by 256 structure? Last time I looked through the docs and 
faq's there was a good write up on sizing the cache - both hard and soft.


Cheers
Ang


--
*Wilson Hernandez*
Presidente
829.848.9595
809.766.0441
www.msdrd.com 
Conservando el medio ambiente


Re: [squid-users] Squid Crashes when cache dir fills

2009-02-26 Thread Wilson Hernandez - MSD, S. A.
The store system is actually aufs and the partition is 77GB. I don't 
have anything else other than iptables and squid installed on this system.


joost.deh...@getronics.com wrote:

I have cache_dir ufs /var/log/squid 6 255 255



with a 80GB harddrive.


- ufs is an old store system, aufs will probably give you better
performance.
- How is the inode usage on the disk?
- The disksize is irrelevant, the partition size of the partition where
/var/log/squid resides is relevant. If that partition is only 10G, then
this cache won't work.

Joost




--
*Wilson Hernandez*
Presidente
829.848.9595
809.766.0441
www.msdrd.com 
Conservando el medio ambiente


[squid-users] delaypolls

2009-02-26 Thread ░▒▓ ɹɐzǝupɐɥʞ ɐzɹıɯ ▓▒░
what is this paramenter mean ?

acl domain-nakal url_regex -i "/etc/squid/domain-nakal.txt"
acl nakal url_regex -i "/etc/squid/ext-nakal.txt"
acl porn url_regex -i "/etc/squid/porn.txt"

delay_pools 2
delay_class 1 1
delay_parameters 1 32000/32000 2500/64000
delay_access 1 allow domain-nakal !free
delay_access 1 allow nakal  !free
delay_access 1 deny ALL

delay_class 2 1
delay_parameters 2 1000/1000 1000/2800
delay_access 2 allow porn !free
delay_access 2 deny ALL


please tell me in english

-- 
-=-=-=-=
Personal Blog http://my.blog.or.id ( lagi belajar )
Hot News !!! : Pengin punya Layanan SMS PREMIUM ? Contact me ASAP.
dapatkan Share revenue MAXIMAL tanpa syarat traffic...


Re: [squid-users] Websense plugin ?

2009-02-26 Thread Daniel Kühl
With Websense it is included a redirect_program, no worry, it work  
like a charm :)



On Feb 10, 2009, at 7:54 AM, Frank Bonnet wrote:


Hello

I'll be forced by my company to use websense as a centralized
URL filtration system.
Is it a (working) websense plugin for squid ?

Thank you




Re: [squid-users] mysterious crashes

2009-02-26 Thread Rick Chisholm
might be worthwhile to run memtest86 against your server to rule out 
memory issues, esp. since you appear to have clear logs.  Is squid 
crashing or is the OS locking up?


Hoover Chan wrote:

Hi, I'm new to this mailing list and relatively new to managing Squid.

I'm running a Squid cache using version 2.5 and 1 Gb of RAM. I'm running into a 
problem where the system crashes so hard that the only way to bring it back up 
is to power cycle the server. Subsequent examination of the log files don't 
reveal any diagnostic information. The logs seem to show that the system is 
running just fine without incident.

Any thoughts on what to look at? It's happening at least once a week now.

Thanks in advance.


-- 
Hoover Chan c...@sacredsf.org 
Technology Director 
Schools of the Sacred Heart 
 Broadway St. 
San Francisco, CA 94115



  




Re: [squid-users] mysterious crashes

2009-02-26 Thread David Rodríguez Fernández
If you don't have upgraded any software, is possible that you have a
hardware problem.

On Thu, Feb 26, 2009 at 10:13 PM, Hoover Chan  wrote:
>
> Hi, I'm new to this mailing list and relatively new to managing Squid.
>
> I'm running a Squid cache using version 2.5 and 1 Gb of RAM. I'm running into 
> a problem where the system crashes so hard that the only way to bring it back 
> up is to power cycle the server. Subsequent examination of the log files 
> don't reveal any diagnostic information. The logs seem to show that the 
> system is running just fine without incident.
>
> Any thoughts on what to look at? It's happening at least once a week now.
>
> Thanks in advance.
>
>
> --
> Hoover Chan                     c...@sacredsf.org
> Technology Director
> Schools of the Sacred Heart
>  Broadway St.
> San Francisco, CA 94115
>


[squid-users] mysterious crashes

2009-02-26 Thread Hoover Chan
Hi, I'm new to this mailing list and relatively new to managing Squid.

I'm running a Squid cache using version 2.5 and 1 Gb of RAM. I'm running into a 
problem where the system crashes so hard that the only way to bring it back up 
is to power cycle the server. Subsequent examination of the log files don't 
reveal any diagnostic information. The logs seem to show that the system is 
running just fine without incident.

Any thoughts on what to look at? It's happening at least once a week now.

Thanks in advance.


-- 
Hoover Chan c...@sacredsf.org 
Technology Director 
Schools of the Sacred Heart 
 Broadway St. 
San Francisco, CA 94115



[squid-users] squid_ldap_auth question

2009-02-26 Thread Mariano Aller
Im trying to autheticate and authorize users of  MS active directory
(Win2003) with squid_ldap_auth and squid_ldap_group , it’s work fine but I
have some users (ie muñoa, peña) that can’t.   Its possible ?

Thanks.
Mariano.



[squid-users] Serving the cache on browser refreshes?

2009-02-26 Thread Tom MacWright
I've been working on using Squid as an image cache for images that
really won't change very often but do have dynamic-looking addresses
(large querystrings). I've been able to get Squid to cache these
images in memory, so if I do a fresh pageload from Opera or Safari, I
get a TCP_MEM_HIT, which is fantastic, but when I reload the page, I
get a TCP_REFRESH_MISS, which is not so great. I know that the browser
is specifying that this is a reload so it'll get the cache to re-cache
the image, but I really don't want this to happen - actually hitting
the images is a very expensive operation, since they're generated. How
can I get squid to ignore browser refreshes and just serve everything
as if it was a new request? Ideally images will live in the cache
almost forever and always be served from the cache. My squid.conf is
below.

Thanks!

Tom MacWright

http_port 80 accel defaultsite=209.20.72.110
cache_peer 127.0.0.1 parent 8080 0 no-query originserver name=myAccel

acl mapbox_sites dstdomain 209.20.72.110
http_access allow mapbox_sites
cache_peer_access myAccel allow mapbox_sites

# Items without a specific expiry date will be fresh for 10 minutes
# After 20% of the object's stated life (via Expires) the object will
be refreshed
# the longest non-specified objects can last is 4320 minutes

# refresh_pattern -i (/cgi-bin/|\?) 10 100% 4320
refresh_pattern .    300 20% 4320

# by default, squid ignores requests which have a ? in them
# so, we override this (and comment out the code later on in this doc)
# this also commands squid to ignore lots of things that would prevent
# it from caching stuff with certain headers

refresh_pattern -i \? 3000 990% 3 override-expire override-lastmod
ignore-no-cache ignore-private ignore-reload

cache_dir ufs /var/spool/squid 500 16 256

# Cache commonly-used images in memory, since that's nice.

maximum_object_size_in_memory 1000 KB
maximum_object_size 1 GB


[squid-users] Log HTML data and track session

2009-02-26 Thread Squid-Insys

Hi

Someone know if there is a way to log HTML content from user's using squid?
we have a reverse-proxy and we want to view what kind of data is been
requested in the POST method and the HTML it goes with it.
We also are looking for a way to track the sessions. The IP in the logs
cannot give us the track because users can be IP source translated. The
problem is that we cannot modify web servers code to insert cookies we just
can send them the HTTP requests we received. 
Users are authenticated in the Web Servers, so we need to know what are they
looking for on the Web servers and keep a track of each session.
(For us a session is the time since a user opens a navigator window, writes
on its credentials, carries on a few searches, and closes the window)

Any help will be appreciated.
Regards.
-- 
View this message in context: 
http://www.nabble.com/Log-HTML-data-and-track-session-tp22230027p22230027.html
Sent from the Squid - Users mailing list archive at Nabble.com.



Re: [squid-users] Squid & url rewriter

2009-02-26 Thread John Doe

From: Merdouille 
> #!/usr/bin/php
> $temp = array();
> while ( $input = fgets(STDIN) ) {
>   echo "302:http://www.yahoo.fr/";;
> }
> ?>

Maybe try with a '\n'...?

JD


  



[squid-users] Fail-Over Site Hosting

2009-02-26 Thread Philip de Souza
Hello,

Can Squid-Cache be used in a Windows 2003 / IIS 6, web-hosting environment
to provide a temporary means by which the actual web server itself can be
brought down for maintenance, so that the site appears to remain live to any
clients wishing to access it?


We have two hosted machines with our web host provider, but were not able to
configure Network Load Balancing due to SSL cert.’s being needed on some of
the sites the second server is now hosting (thereby negating our ability to
use the 2 NICs on each machine we are limited to).

The site we have running on the first server is a vital one, but the machine
needs maintenance and so we’re searching for a solution that could work for
a period of 30-60 minutes, no more. Can Squid accommodate this, even for a
MS platform such as ours?

Been searching all the documentation I could find and could not find the
answer I need on this… many thanks in advance!


~Philip 



[squid-users] squid -k rotate/reconfigure error on running squid

2009-02-26 Thread Bora Özden
Hi,

On a running squid when i give commands  the squid -k rotate or
reconfigure i get the squrid ERROR : No running copy. But the squid is
giving service and has a PID on  ps -aux.

I want to  apply the configuration changes made to the squid.conf .
Cause its  a production squid i dont want to stop and then start the
squid again.

Regards


[squid-users] Daily log rotate

2009-02-26 Thread Bora Özden
Hi,
I would like to make the squid logs to be rotated  and looking at the
/etc/logrotate.d/squid file but not sure about all the parameters (what
they mean) written there. I need then make them archived (send to a
server via ftp, have an old script doing this at the old server , will
look at it and copy it to the production one) .And also when i give the
command
squid -k rotate command to rotate the log files i get " No running copy"
, but the proxy is working and still giving service, also can see  on
the  tail -f access.log.

So for doing this logrotate smoothly (not to fail) i wanted also to ask
to the list.

Regards

Bora Ozden




[squid-users] Squid & url rewriter

2009-02-26 Thread Merdouille

Hi everyone

I'm trying to use url rewriter for SQUID.
I use Squid 2.6 stable on CentOS.

In my config file i wrote :

never_direct allow all
url_rewrite_program /etc/squid/test.php
url_rewrite_children 1

And a stupid php file to do test :

#!/usr/bin/php
http://www.yahoo.fr/";;
}
?>

when i try to open an URL on my server, there is no redirection on yahoo
like it should do.

-- 
View this message in context: 
http://www.nabble.com/Squid---url-rewriter-tp3197p3197.html
Sent from the Squid - Users mailing list archive at Nabble.com.



Re: [squid-users] How To Make The Squid Proxy Server..............

2009-02-26 Thread Shekharsahab14
I belive u didn't get it as Amos said read the manuals first  
everything is documented or google for squid instalation u will get  
step by step answer . Moreover I belive your problem is not squid but  
Linux itself . So first step is you go to forums and understand Linux  
that way it will be easy for u


Sent from my iPhone

On 26-Feb-09, at 11:44 PM, jm...@nits.ac.in wrote:


*
This message has been scanned by IMSS NIT-Silchar

Dear All Squid Users/Experts,


Given an  installed systems with fedora-linux os, how to proceed to  
make

squid proxy server ?


Let me tell you the fact that I am just monitoring the activites of  
squid

proxy server, though I have not myself made it.


I would like to know a few things, if any one of you can kindly let me
know what basic things one must look into to make one squid proxy  
server ?


What are the lines that I have to check/modify in squid.conf file ?

As of now the current df shows up the following status of the disk  
space

in my proxy server.



[r...@facu-pxy /]# df
Filesystem   1K-blocks  Used Available Use% Mounted on
/dev/mapper/PrimaryVol-root
 19838052   9958860   8855192  53% /
/dev/mapper/PrimaryVol-home
 34756272  28916872   4045352  88% /home
/dev/mapper/PrimaryVol-var
 14855176  13219512868896  94% /var
/dev/mapper/PrimaryVol-tmp
  4062912139684   3713516   4% /tmp
/dev/sda1   101086 34837 61030  37% /boot
tmpfs   25342412253412   1% /dev/shm
[r...@facu-pxy /]#



As you can see the /var shows up 94% utilisation.


From my inspection, of the /var partition, I could see that,  
everything is
fine, and the logs are routinely deleted from the system in a  
particular

order as cron jobs.

Please let me know.

Thanking in advance,

jm







Re: [squid-users] connecting to gmail via imap over squid

2009-02-26 Thread sameer shinde
On Thu, Feb 26, 2009 at 3:26 PM, Matus UHLAR - fantomas
 wrote:
>> I'm on Ubuntu Linux 8.04
>
> there's no reason to proxy IMAP, unless you want to sniff it
> (which you can even without proxying), or filter for viruses and spam.
> See untangle for the latter.
>
> If you want neither one, do simply NAT.

I understand that I should not ask this question here but, can
you/someone tell me how do i NAT
the internal imap port 993 to external 993?

I've only one LAN card in my system with ip address 192.168.10.20

~~
Sameer Shinde.
M:- +91 98204 61580
Millions saw the apple fall, but Newton was the one who asked why.


Re: [squid-users] Two Squid with common cache

2009-02-26 Thread Matus UHLAR - fantomas
On 26.02.09 16:42, Shekharsahab14 wrote:
> I alredy have 13 proxy 8 child & 5 parent , however I m having 2 nics  
> on every parent and was looking to use them

why two NICs? do you have more upstream connections? That can be done with
one nic, and one squid instanca can use more than one NIC.
-- 
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Windows 2000: 640 MB ought to be enough for anybody


Re: [squid-users] Two Squid with common cache

2009-02-26 Thread Shekharsahab14
I alredy have 13 proxy 8 child & 5 parent , however I m having 2 nics  
on every parent and was looking to use them


Sent from my iPhone

On 26-Feb-09, at 1:58 PM, Matus UHLAR - fantomas   
wrote:



On 26.02.09 02:03, Shekhar Gupta wrote:
I was looking whether it would be possible or not . On a single  
server

if i install squid at two diff location however i would like the
cache_dir to be common between the 2 squid  is this possible to  
it

will have problem .


Why do you want that? Maybe your problem can be solver by using single
squid, maybe the using parent/child proxy (as already advised) would  
help

you with that
--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
WinError #98652: Operation completed successfully.


Re: [squid-users] connecting to gmail via imap over squid

2009-02-26 Thread Matus UHLAR - fantomas
On 26.02.09 14:52, sameer shinde wrote:
> > Squid is an http proxy and has no means to proxy imap traffic!

> On Thu, Feb 26, 2009 at 2:39 PM, Angela Williams  wrote:
> >> Can anyone let me know, How do I do this?
> >> Is there any way I can do it with squid? Is there any other way?

> > Not with squid but it depends on what platform squid is running on.
> > If it is linux then iptables can solve the problem.
> > Anything else you will have to solve yourself!

> I'm on Ubuntu Linux 8.04

there's no reason to proxy IMAP, unless you want to sniff it
(which you can even without proxying), or filter for viruses and spam.
See untangle for the latter.

If you want neither one, do simply NAT.
-- 
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
It's now safe to throw off your computer.


Re: [squid-users] Squid Crashes when cache dir fills

2009-02-26 Thread Angela Williams
Hi!
On Thursday 26 February 2009, Wilson Hernandez - MSD, S. A. wrote:
> Amos Jeffries wrote:
> > Wilson Hernandez - MSD, S. A. wrote:
> >> I have cache_dir ufs /var/log/squid 6 255 255

Your cache_dir line says create a squid cache directory structure 255 wide by 
255 deep and allow it to grow up to 60G. Squid will continue to try and store 
objects into the directory structure until either 60G limit is reached or the 
filesystem - more like as not /var - runs out of space.
If it runs out of space squid is no longer able to write to its log files you 
configured in your squid.conf file. If it cannot write to the log file it 
cannot tell you want happened!

Do you want a nice simple solution?
Add a second hard drive and have squid create its 60G sized cache there.
Make certain logrotate is rotating the normal system logs  and asking squid to 
rotate its logs!

Use df and see just how fuch free space is really available in /var if it is a 
filesystem in its own right.

Another thought?
How many users are trying to access the 'net via this proxy that you want to 
store 60G in a 256 by 256 structure? Last time I looked through the docs and 
faq's there was a good write up on sizing the cache - both hard and soft.

Cheers
Ang
-- 
Angela Williams Enterprise Outsourcing
Unix/Linux & Cisco spoken here! Bedfordview
an...@eoh.co.za Gauteng South Africa
+27116078155Blog: angierfw.wordpress.com

Smile!! Jesus Loves You!!


Re: [squid-users] connecting to gmail via imap over squid

2009-02-26 Thread sameer shinde
On Thu, Feb 26, 2009 at 2:39 PM, Angela Williams  wrote:
>
> Squid is an http proxy and has no means to proxy imap traffic!
>
>> Can anyone let me know, How do I do this?
>> Is there any way I can do it with squid? Is there any other way?
>
> Not with squid but it depends on what platform squid is running on.
> If it is linux then iptables can solve the problem.
> Anything else you will have to solve yourself!

I'm on Ubuntu Linux 8.04

> Cheers
> Ang
>

~~
Sameer Shinde.
M:- +91 98204 61580
Millions saw the apple fall, but Newton was the one who asked why.


Re: [squid-users] connecting to gmail via imap over squid

2009-02-26 Thread Angela Williams
On Thursday 26 February 2009, sameer shinde wrote:
> I'm using squid3.0 as our proxy server to serve the internet users,
> which is working fine. Now I want users to access IMAP(say gmail on imap)
> over my proxy.

Squid is an http proxy and has no means to proxy imap traffic!

> Can anyone let me know, How do I do this?
> Is there any way I can do it with squid? Is there any other way?

Not with squid but it depends on what platform squid is running on.
If it is linux then iptables can solve the problem.
Anything else you will have to solve yourself!

Cheers
Ang

-- 
Angela Williams Enterprise Outsourcing
Unix/Linux & Cisco spoken here! Bedfordview
an...@eoh.co.za Gauteng South Africa
+27116078155Blog: angierfw.wordpress.com

Smile!! Jesus Loves You!!


Re: [squid-users] Two Squid with common cache

2009-02-26 Thread Matus UHLAR - fantomas
On 26.02.09 02:03, Shekhar Gupta wrote:
> I was looking whether it would be possible or not . On a single server
> if i install squid at two diff location however i would like the
> cache_dir to be common between the 2 squid  is this possible to it
> will have problem .

Why do you want that? Maybe your problem can be solver by using single
squid, maybe the using parent/child proxy (as already advised) would help
you with that
-- 
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
WinError #98652: Operation completed successfully.