Re: Squid Problems Consumes a lot of swap and hard disk space.

2007-06-22 Thread Matus UHLAR - fantomas
On 19.06.07 17:01, Orestes leal wrote:
 Time ago i've setup a squid 2.5 runngin but recently my squid consumes a
 lot of hard disk (more than the default storage space that i've set) and
 take more swap that ever, I don't know squid very much, what can be the
 causes to this?

there is some space used by filesystem metadata etc. If you have 36GiB hdd,
configure max 3 and some ppl will advise you to use even less...
-- 
Matus UHLAR - fantomas, [EMAIL PROTECTED] ; 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.
I feel like I'm diagonally parked in a parallel universe. 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Squid Problems Consumes a lot of swap and hard disk space.

2007-06-19 Thread Orestes leal
Hi Folks!

Time ago i've setup a squid 2.5 runngin but recently my squid consumes a lot of 
hard disk (more than the default storage space that i've set) and take more 
swap that ever, I don't know squid
very much, what can be the causes to this?

Ore from Cuba.

-- 
Orestes [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Squid: problems with authentication of a user

2005-08-12 Thread Adam Garside
On Thu, Aug 11, 2005 at 10:26:36PM -0300, Romulo Sousa wrote:
 Using pam_auth I can do that w/ no problems. But I would like to
 understand a way to concetrate all users just in one file (in my case
 /etc/squid/passwd).
The pam_userdb.so module can be used to autheticate users from files
other than /etc/passwd (this is how vsftpd handles virtual user
authentication.) 

-- asg


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Squid: problems with authentication of a user

2005-08-12 Thread Romulo Sousa
On 8/12/05, Adam Garside [EMAIL PROTECTED] wrote:
 On Thu, Aug 11, 2005 at 10:26:36PM -0300, Romulo Sousa wrote:
  Using pam_auth I can do that w/ no problems. But I would like to
  understand a way to concetrate all users just in one file (in my case
  /etc/squid/passwd).
 The pam_userdb.so module can be used to autheticate users from files
 other than /etc/passwd (this is how vsftpd handles virtual user
 authentication.)

Could you please tell me how I should point my file /etc/squid/passwd
to be read?
I got some PAM's howto's in which there were information about the
file squid that should be created into /etc/pam.d. But I'm not sure
the contents of these file. Actually I can't figure out the reason
that squid needs to read two files in different places to login a
user. I thought that htpasswd  would solve that. I'm not
understanding, also, why i should edit the file /etc/pam.d/squid with
information such as /lib/securety/pam_whatever.
Anywayi'll keep exploiting this subject but i think that whatever
clue about it would be welcome (like a URL for instance).

Thanks you a lot!

Romulo Sousa
 
 -- asg
 
 
 --
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
 




Re: Squid: problems with authentication of a user

2005-08-11 Thread Romulo Sousa
Hi there,

I wouldn't like to use pam_auth but a file passwd in which I have all
my users (including myself w/ different password of my that I use to
log in my system.
I've read a doc about getpwnam_auth. So, I've change the following
line of my squid.conf:
auth_param basic program /usr/lib/squid/getpwnam_auth

and created the users w/ :
htpasswd passwor my_user

then typed the password as well for each user.
Using pam_auth I can do that w/ no problems. But I would like to
understand a way to concetrate all users just in one file (in my case
/etc/squid/passwd).
The logon screen has showed me up but I can't login on my proxy using
the users I typed into the file /etc/squid/passwd. Can somebody help
me to fix it?

Thanks all,

Romulo Sousa

On 8/10/05, Paul Johnson [EMAIL PROTECTED] wrote:
 On Wednesday 10 August 2005 12:03 pm, Romulo Sousa wrote:
  I got a problem during the authentication process from my squid.
  THe following erro message comes up my screen when I edit my
  squid.conf:
 
  Invalid Proxy Auth ACL 'acl remotenetwork proxy_auth my_user'
  because no authentication schemes are fully configured.
  FATAL: Bungled squid.conf line 14: acl remotenetwork proxy_auth
  rssousa Squid Cache (Version 2.5.STABLE10): Terminated abnormally.
  squid.
 
 It took me an extremely long time to understand PAM authentication in
 squid.  This is where the documentation really could use an example,
 and one of those things that will make for great list archive fodder.
 
 This is what works for me:
 
 auth_param basic program /usr/lib/squid/pam_auth
 auth_param basic children 5
 auth_param basic realm Adzapping Squid
 auth_param basic credentialsttl 1 week
 acl password proxy_auth REQUIRED
 http_access allow password
 
 This uses the pam_auth program that comes with squid, spawns 5
 instances of that program, tells squid to call itself Adzapping
 Squid[1], and creates an ACL allowing people who log in to the
 squid to use it as an HTTP proxy.
 
  Another doubt: is there any way to throw the messagem away from the
  bottom when the service is stopped?
  Generated Tue, 09 Aug 2005 23:13:53 GMT by my_isp.com
  (squid/2.5.STABLE10) ??  The objective is avoid certain
  reconnoissance of my machine.
 
 This one is in the FAQ.
 http://ursine.ca/cgi-bin/dwww?type=filelocation=/usr/share/doc/squid/FAQ-10.html#ss10.24
 
 
 [1] I also use adzapper at my squid.  If advertisers want to use my
 bandwidth, they damn well better be paying me for it because nobody
 invited them...
 
 




Squid: problems with authentication of a user

2005-08-10 Thread Romulo Sousa
Hi folks,

I got a problem during the authentication process from my squid. THe
following erro message comes up my screen when I edit my squid.conf:

Invalid Proxy Auth ACL 'acl remotenetwork proxy_auth my_user'
because no authentication schemes are fully configured.
FATAL: Bungled squid.conf line 14: acl remotenetwork proxy_auth rssousa
Squid Cache (Version 2.5.STABLE10): Terminated abnormally.
squid.

I've read a howto in which it was mentioning a external program that
works with squid for the authentication process in this way can be
completed (please, tell me if I'm comitting any mistakes). Just in
case to know that, I'm conecting to my proxy from a public internet.
In other words, from my outside network.

Another doubt: is there any way to throw the messagem away from the
bottom when the service is stopped?
Generated Tue, 09 Aug 2005 23:13:53 GMT by my_isp.com
(squid/2.5.STABLE10) ??  The objective is avoid certain
reconnoissance of my machine.

Thanks all,

Romulo Sousa



Re: Squid: problems with authentication of a user

2005-08-10 Thread Paul Johnson
On Wednesday 10 August 2005 12:03 pm, Romulo Sousa wrote:

 I got a problem during the authentication process from my squid.
 THe following erro message comes up my screen when I edit my
 squid.conf:

 Invalid Proxy Auth ACL 'acl remotenetwork proxy_auth my_user'
 because no authentication schemes are fully configured.
 FATAL: Bungled squid.conf line 14: acl remotenetwork proxy_auth
 rssousa Squid Cache (Version 2.5.STABLE10): Terminated abnormally.
 squid.

My landlord can attest to filling a head-shaped hole in my living room 
wall after I tried to figure this one out, so here's an example from 
what Works For Me(tm):



 Another doubt: is there any way to throw the messagem away from the
 bottom when the service is stopped?
 Generated Tue, 09 Aug 2005 23:13:53 GMT by my_isp.com
 (squid/2.5.STABLE10) ??  The objective is avoid certain
 reconnoissance of my machine.

Those messages are generally considered helpful at troubleshooting 
time.  So many people feel the good outweighs the benefit, I'm not 
sure disabling that has been implemented directly, but I could be 
wrong.  You might be able to do it using custom error pages (I forget 
the greppable term for it, but if you skim the documentation you 
should find something to that effect).


pgpu77g94vlnV.pgp
Description: PGP signature


Re: Squid: problems with authentication of a user

2005-08-10 Thread Paul Johnson
On Wednesday 10 August 2005 12:03 pm, Romulo Sousa wrote:
 I got a problem during the authentication process from my squid.
 THe following erro message comes up my screen when I edit my
 squid.conf:

 Invalid Proxy Auth ACL 'acl remotenetwork proxy_auth my_user'
 because no authentication schemes are fully configured.
 FATAL: Bungled squid.conf line 14: acl remotenetwork proxy_auth
 rssousa Squid Cache (Version 2.5.STABLE10): Terminated abnormally.
 squid.

It took me an extremely long time to understand PAM authentication in 
squid.  This is where the documentation really could use an example, 
and one of those things that will make for great list archive fodder.

This is what works for me:

auth_param basic program /usr/lib/squid/pam_auth
auth_param basic children 5
auth_param basic realm Adzapping Squid
auth_param basic credentialsttl 1 week
acl password proxy_auth REQUIRED
http_access allow password

This uses the pam_auth program that comes with squid, spawns 5 
instances of that program, tells squid to call itself Adzapping 
Squid[1], and creates an ACL allowing people who log in to the 
squid to use it as an HTTP proxy.

 Another doubt: is there any way to throw the messagem away from the
 bottom when the service is stopped?
 Generated Tue, 09 Aug 2005 23:13:53 GMT by my_isp.com
 (squid/2.5.STABLE10) ??  The objective is avoid certain
 reconnoissance of my machine.

This one is in the FAQ.
http://ursine.ca/cgi-bin/dwww?type=filelocation=/usr/share/doc/squid/FAQ-10.html#ss10.24


[1] I also use adzapper at my squid.  If advertisers want to use my 
bandwidth, they damn well better be paying me for it because nobody 
invited them...


pgpOPz7YEOFTU.pgp
Description: PGP signature


Re: Squid problems

2004-08-02 Thread nx13372
nx13372 wrote:
Adam Aube wrote:
nx13372 wrote:
 

Hi all,
All i do, was:
#/etc/init.d/squid stop
#rm -fr /var/spool/squid
#rm /var/log/squid
#squid -z
#/etc/init.d/squid restart
Squid starts ok.
Now squid works, but don't cache. The
#du -sh /var/spool/squid is always 16452!
  

Are there any entries in access.log? Are any of these TCP_HIT entries?
Can you post your squid.conf (without blank lines or comments)?
Adam
 

Yes:
1090559466.268  12102 x.x.x.x TCP_HIT/200 534126 GET 
http://http.us.debian.org/debian/pool/main/s/samba/libsmbclient_3.0.5-1_i386.deb 
- NONE/- application/x-debian-package
1090584975.009   3905 x.x.x.x TCP_HIT/200 6652 GET 
http://fedoranews.org/images/intro-computer.png - NONE/- image/png

The only thing that grows is access.log!
I'm getting mad! Since i already triple check everything (owner and 
group of all squid files, squid.conf, iptables) couldn't this be a 
kernel bug? I'm using a transparent proxy, and there's a lot of 
options that must be enabled in kernel! I'm using kernel 2.4.26-3.

thanks

No it's not a kernel problem. I reboot using the old 2.4.25 and the 
same result.
Is there anyone using squid as a transparent proxy (on Sarge or Sid)?
Or should i report this as a bug?

thanks.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Squid problems

2004-08-02 Thread nx13372
nx13372 wrote:
nx13372 wrote:
Adam Aube wrote:
nx13372 wrote:
Yes:
1090559466.268  12102 x.x.x.x TCP_HIT/200 534126 GET 
http://http.us.debian.org/debian/pool/main/s/samba/libsmbclient_3.0.5-1_i386.deb 
- NONE/- application/x-debian-package
1090584975.009   3905 x.x.x.x TCP_HIT/200 6652 GET 
http://fedoranews.org/images/intro-computer.png - NONE/- image/png

The only thing that grows is access.log!
I'm getting mad! Since i already triple check everything (owner and 
group of all squid files, squid.conf, iptables) couldn't this be a 
kernel bug? I'm using a transparent proxy, and there's a lot of 
options that must be enabled in kernel! I'm using kernel 2.4.26-3.

thanks

No it's not a kernel problem. I reboot using the old 2.4.25 and the 
same result.
Is there anyone using squid as a transparent proxy (on Sarge or Sid)?
Or should i report this as a bug?

thanks.

ok. It's a package bug.
Bjoern Schmidt already post this as a bug: #262342
thanks to all.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Squid problems

2004-08-01 Thread Adam Aube
nx13372 wrote:

 Hi all,
 All i do, was:
 #/etc/init.d/squid stop
 #rm -fr /var/spool/squid
 #rm /var/log/squid
 #squid -z
 #/etc/init.d/squid restart
 Squid starts ok.
 Now squid works, but don't cache. The
 #du -sh /var/spool/squid is always 16452!

Are there any entries in access.log? Are any of these TCP_HIT entries?

Can you post your squid.conf (without blank lines or comments)?

Adam


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Squid problems

2004-07-30 Thread nx13372
Hi all,
All i do, was:
#/etc/init.d/squid stop
#rm -fr /var/spool/squid
#rm /var/log/squid
#squid -z
#/etc/init.d/squid restart
Squid starts ok.
Now squid works, but don't cache. The
#du -sh /var/spool/squid is always 16452!
Since i have 3 squid.conf.x in /etc/squid/ i already copy an older 
configuration for squid.conf, but thas nothing wrong with my actual 
squid.conf. It's working about 1 year. The owner and group of all 
related squid files is proxy.
I'm using Debian Sid and when i upgrade squid i always keep my 
configuration file.

thanks in advance
The last lines in cache.log:
2004/07/29 16:36:52|   store_swap_size = 0k
2004/07/29 16:36:52| storeLateRelease: released 0 objects
2004/07/30 08:54:41| Starting Squid Cache version 2.5.STABLE6 for 
i386-debian-linux-gnu...
2004/07/30 08:54:41| Process ID 20649
2004/07/30 08:54:41| With 1024 file descriptors available
2004/07/30 08:54:41| DNS Socket created at 0.0.0.0, port 33003, FD 5
2004/07/30 08:54:41| Adding nameserver xx.xx.xx.xx from /etc/resolv.conf
2004/07/30 08:54:41| Adding nameserver xx.xx.xx.xx from /etc/resolv.conf
2004/07/30 08:54:41| Adding nameserver xx.xx.xx.xx from /etc/resolv.conf
2004/07/30 08:54:41| Adding nameserver xx.xx.xx.xx from /etc/resolv.conf
2004/07/30 08:54:41| Adding nameserver xx.xx.xx.xx from /etc/resolv.conf
2004/07/30 08:54:41| Adding nameserver xx.xx.xx.xx from /etc/resolv.conf
2004/07/30 08:54:41| User-Agent logging is disabled.
2004/07/30 08:54:41| Referer logging is disabled.
2004/07/30 08:54:41| Unlinkd pipe opened on FD 10
2004/07/30 08:54:41| Swap maxSize 4096 KB, estimated 3150769 objects
2004/07/30 08:54:41| Target number of buckets: 157538
2004/07/30 08:54:41| Using 262144 Store buckets
2004/07/30 08:54:41| Max Mem  size: 393216 KB
2004/07/30 08:54:41| Max Swap size: 4096 KB
2004/07/30 08:54:41| Local cache digest enabled; rebuild/rewrite every 
3600/3600 sec
2004/07/30 08:54:41| Rebuilding storage in /var/spool/squid (DIRTY)
2004/07/30 08:54:41| Using Least Load store dir selection
2004/07/30 08:54:41| Current Directory is /
2004/07/30 08:54:41| Loaded Icons.
2004/07/30 08:54:41| Accepting HTTP connections at 0.0.0.0, port 3128, 
FD 11.
2004/07/30 08:54:41| Accepting HTTP connections at 0.0.0.0, port 80, FD 12.
2004/07/30 08:54:41| Accepting ICP messages at 0.0.0.0, port 3130, FD 13.
2004/07/30 08:54:41| HTCP Disabled.
2004/07/30 08:54:41| WCCP Disabled.
2004/07/30 08:54:41| Ready to serve requests.
2004/07/30 08:54:41| Done scanning /var/spool/squid swaplog (0 entries)
2004/07/30 08:54:41| Finished rebuilding storage from disk.
2004/07/30 08:54:41| 0 Entries scanned
2004/07/30 08:54:41| 0 Invalid entries.
2004/07/30 08:54:41| 0 With invalid flags.
2004/07/30 08:54:41| 0 Objects loaded.
2004/07/30 08:54:41| 0 Objects expired.
2004/07/30 08:54:41| 0 Objects cancelled.
2004/07/30 08:54:41| 0 Duplicate URLs purged.
2004/07/30 08:54:41| 0 Swapfile clashes avoided.
2004/07/30 08:54:41|   Took 0.3 seconds (   0.0 objects/sec).
2004/07/30 08:54:41| Beginning Validation Procedure
2004/07/30 08:54:41|   Completed Validation Procedure
2004/07/30 08:54:41|   Validated 0 Entries
2004/07/30 08:54:41|   store_swap_size = 0k
2004/07/30 08:54:42| storeLateRelease: released 0 objects
2004/07/30 10:13:21| Preparing for shutdown after 1742 requests
2004/07/30 10:13:21| Waiting 30 seconds for active connections to finish
2004/07/30 10:13:21| FD 11 Closing HTTP connection
2004/07/30 10:13:21| FD 12 Closing HTTP connection
2004/07/30 10:13:52| Shutting down...
2004/07/30 10:13:52| FD 13 Closing ICP connection
2004/07/30 10:13:52| Closing unlinkd pipe on FD 10
2004/07/30 10:13:52| storeDirWriteCleanLogs: Starting...
2004/07/30 10:13:52|   Finished.  Wrote 0 entries.
2004/07/30 10:13:52|   Took 0.0 seconds (   0.0 entries/sec).
CPU Usage: 6.010 seconds = 3.830 user + 2.180 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 456
Memory usage for squid via mallinfo():
   total space in arena:   30544 KB
   Ordinary blocks:27775 KB228 blks
   Small blocks:   0 KB  0 blks
   Holding blocks:  1220 KB  2 blks
   Free Small blocks:  0 KB
   Free Ordinary blocks:2769 KB
   Total in use:   28995 KB 95%
   Total free:  2769 KB 9%
2004/07/30 10:13:52| Squid Cache (Version 2.5.STABLE6): Exiting normally.
2004/07/30 10:13:53| Starting Squid Cache version 2.5.STABLE6 for 
i386-debian-linux-gnu...
2004/07/30 10:13:53| Process ID 21311
2004/07/30 10:13:53| With 1024 file descriptors available
2004/07/30 10:13:53| DNS Socket created at 0.0.0.0, port 33020, FD 5
2004/07/30 10:13:53| Adding nameserver xx.xx.xx.xx from /etc/resolv.conf
2004/07/30 10:13:53| Adding nameserver xx.xx.xx.xx from /etc/resolv.conf
2004/07/30 10:13:53| Adding nameserver xx.xx.xx.xx from /etc/resolv.conf
2004/07/30 10:13:53| Adding nameserver xx.xx.xx.xx from /etc/resolv.conf
2004/07/30 

Re: Squid problems

2004-07-30 Thread Greg Folkert
On Fri, 2004-07-30 at 05:57, nx13372 wrote:
 Hi all,
 All i do, was:
 #/etc/init.d/squid stop
 #rm -fr /var/spool/squid
 #rm /var/log/squid
 #squid -z
 #/etc/init.d/squid restart
 Squid starts ok.
 Now squid works, but don't cache. The
 #du -sh /var/spool/squid is always 16452!
 Since i have 3 squid.conf.x in /etc/squid/ i already copy an older 
 configuration for squid.conf, but thas nothing wrong with my actual 
 squid.conf. It's working about 1 year. The owner and group of all 
 related squid files is proxy.
 I'm using Debian Sid and when i upgrade squid i always keep my 
 configuration file.

Okay.

1. Did you setup your web browser to use the proxy?
2. If you did do #1, do you get an error?
3. If the answer to #2 is yes, you need to edit the access acls
to enable you to use it.
4. Profit!

You really need to read the FAQ about squid at the squid homepage.
Especially the Troubleshooting section of the FAQ:

http://www.squid-cache.org/Doc/FAQ/FAQ-11.html

Hope this helps.

-- 
greg, [EMAIL PROTECTED]

The technology that is
Stronger, better, faster:  Linux


signature.asc
Description: This is a digitally signed message part


Re: Squid problems

2004-07-30 Thread nx13372
Greg Folkert wrote:
On Fri, 2004-07-30 at 05:57, nx13372 wrote:
 

Hi all,
All i do, was:
#/etc/init.d/squid stop
#rm -fr /var/spool/squid
#rm /var/log/squid
#squid -z
#/etc/init.d/squid restart
Squid starts ok.
Now squid works, but don't cache. The
#du -sh /var/spool/squid is always 16452!
Since i have 3 squid.conf.x in /etc/squid/ i already copy an older 
configuration for squid.conf, but thas nothing wrong with my actual 
squid.conf. It's working about 1 year. The owner and group of all 
related squid files is proxy.
I'm using Debian Sid and when i upgrade squid i always keep my 
configuration file.
   

Okay.
   1. Did you setup your web browser to use the proxy?
 

No, it's a transparent proxy, and my rules in iptables are correct.
   2. If you did do #1, do you get an error?
 

No
   3. If the answer to #2 is yes, you need to edit the access acls
   	to enable you to use it.
 

My acls are the same, about 1 year ago.
   4. Profit!
You really need to read the FAQ about squid at the squid homepage.
Especially the Troubleshooting section of the FAQ:
   http://www.squid-cache.org/Doc/FAQ/FAQ-11.html
Hope this helps.
 

thanks
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



squid problems with DNS resolution

2003-08-14 Thread Greg Norris
I've recently setup squid for a small home network (2 boxes, not
counting the proxy server itself).  Unfortunately, I instantly get the
error text below when I try to access a non-cached site.  If I do a
shift-reload, the site will then load successfully, and I won't have
any further trouble with it.

   The requested URL could not be retrieved
   While trying to retrieve the URL: http://blah.org/blah/

   The following error was encountered:

   Unable to determine IP address from host name for blah.org 

   The dnsserver returned:

   No DNS records 

   This means that:

The cache was not able to resolve the hostname presented in the URL. 
Check if the address is correct. 

The proxy server is also running pdnsd, which is providing name
resolution for the local network.  This appears to be working
properly... email, http (minus squid), etc. have no apparent problem
resolving hostnames.  I've tried reconfiguring the proxy server to use
my ISP's nameservers, just to be sure, but that didn't make any
noticeable difference.  The proxy box is running Woody, so the squid
version is 2.4.6-2.

Any suggestions for what I should be checking?  Thanx!


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: squid problems with DNS resolution

2003-08-14 Thread Greg Norris
 I've recently setup squid for a small home network (2 boxes, not
 counting the proxy server itself).  Unfortunately, I instantly get the
 error text below when I try to access a non-cached site.  If I do a
 shift-reload, the site will then load successfully, and I won't have
 any further trouble with it.

Just for grins I tried upgrading squid to 2.5.3, using Aurelien Jarno's
woody backport.  The problem appears to be slightly less prominent in
this release, but it's definitely still present.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: squid problems with DNS resolution

2003-08-10 Thread Greg Norris
On Wed, Aug 06, 2003 at 08:40:16PM -0500, Greg Norris wrote:
  I've recently setup squid for a small home network (2 boxes, not
  counting the proxy server itself).  Unfortunately, I instantly get the
  error text below when I try to access a non-cached site.  If I do a
  shift-reload, the site will then load successfully, and I won't have
  any further trouble with it.
 
 Just for grins I tried upgrading squid to 2.5.3, using Aurelien Jarno's
 woody backport.  The problem appears to be slightly less prominent in
 this release, but it's definitely still present.

I've enabled debugging messages for pdnsd, and they seem to confirm
that it's working properly.  For example, I just got a squid error
trying to access www.debris.com, but pdnsd shows a successful query.

   272 08/08 22:11:25| Received query.
   272 08/08 22:11:25| Questions are:
   272 08/08 22:11:25| qc=IN (1), qt=A (1), query=www.debris.com.
   272 08/08 22:11:25| Starting cached resolve for: www.debris.com., query A
   272 08/08 22:11:25| Trying name servers.
   272 08/08 22:11:25| Query to 24.30.200.3 succeeded.
   272 08/08 22:11:25| p_dns_resolve: using local cent copy.
   272 08/08 22:11:25| Outbound msg len 32, tc=0, rc=no error
   272 08/08 22:11:25| Answering to: 127.0.0.1, source address:
127.0.0.1

At this point I'm fairly certain that it's a squid problem of some
sort.  I guess I should file a bug report, if noone has any suggestions
on how to squash this beastie...


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



squid problems with DNS resolution

2003-08-09 Thread Greg Norris
Sorry if this is a dup, but I didn't see any sign of it on the list
after 12 hours...

---

I've recently setup squid for a small home network (2 boxes, not
counting the proxy server itself).  Unfortunately, I instantly get the
error text below when I try to access a non-cached site.  If I do a
shift-reload, the site will then load successfully, and I won't have
any further trouble with it.

   The requested URL could not be retrieved
   While trying to retrieve the URL: http://blah.org/blah/

   The following error was encountered:

   Unable to determine IP address from host name for blah.org

   The dnsserver returned:

   No DNS records

   This means that:

The cache was not able to resolve the hostname presented in the
URL.
Check if the address is correct.

The proxy server is also running pdnsd, which is providing name
resolution for the local network.  This appears to be working
properly... email, http (minus squid), etc. have no apparent problem
resolving hostnames.  I've tried reconfiguring the proxy server to use
my ISP's nameservers, just to be sure, but that didn't make any
noticeable difference.  The proxy box is running Woody, so the squid
version is 2.4.6-2.

Any suggestions for what I should be checking?  Thanx!


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Wood + squid problems at some hosts.

2002-03-06 Thread Pietro Cagnoni
hanasaki wrote:
 
 I am running Wood with Squid and Kernel  2.4.17  If I NAT port 80 I can
 browse the following sites.  If I run IE or Mozilla from Win2000 through
 the squid proxy, the connection times out.
 www.sun.com
 www.nvida.com.

easy try: is the proxy box natted?
can you telnet www.sun.com on port 80 from the proxy box?
does the timeout error page have the squid signature at the bottom?

pietro.



Wood + squid problems at some hosts.

2002-03-05 Thread hanasaki
I am running Wood with Squid and Kernel  2.4.17  If I NAT port 80 I can 
browse the following sites.  If I run IE or Mozilla from Win2000 through 
the squid proxy, the connection times out.

www.sun.com
www.nvida.com.
--
=
= [EMAIL PROTECTED]  =
= Spam : Unhealthy and High in Sodium and Cholesterol   =
=



Squid problems

2000-10-24 Thread Tom Warfield
I have a squid proxy server that wont go to a specific site.  The site its
not going to is www.quill.com and i am sure that the only problem is the
squid because I can get to it without going through the proxy server.
Anyone have any ideas on why this wouldnt be working?

What happens on the users side of things is the site never comes up and it
locks the browser up.
I tried using a ACL and telling it to allow the site direct contact...but
that didnt work either.  I am not seeing anything in the squid logs saying
access denied or anything, so im not sure what is wrong.

Any insight of what im missing here would be appreciated.



Thanks,
Tom



Re: Squid problems

2000-10-24 Thread kmself
on Tue, Oct 24, 2000 at 12:16:58PM -0500, Tom Warfield ([EMAIL PROTECTED]) 
wrote:
 I have a squid proxy server that wont go to a specific site.  The site its
 not going to is www.quill.com and i am sure that the only problem is the
 squid because I can get to it without going through the proxy server.
 Anyone have any ideas on why this wouldnt be working?
 
 What happens on the users side of things is the site never comes up and it
 locks the browser up.
 I tried using a ACL and telling it to allow the site direct contact...but
 that didnt work either.  I am not seeing anything in the squid logs saying
 access denied or anything, so im not sure what is wrong.
 
 Any insight of what im missing here would be appreciated.

Squid logs?

-- 
Karsten M. Self kmself@ix.netcom.com http://www.netcom.com/~kmself
 Evangelist, Opensales, Inc.http://www.opensales.org
  What part of Gestalt don't you understand?  There is no K5 cabal
   http://gestalt-system.sourceforge.net/http://www.kuro5hin.org
GPG fingerprint: F932 8B25 5FDD 2528 D595 DC61 3847 889F 55F2 B9B0


pgpIjLQOjeAIC.pgp
Description: PGP signature


Re: Squid problems

2000-10-24 Thread C. Falconer

At 12:16 PM 10/24/00 -0500, you wrote:

I have a squid proxy server that wont go to a specific site.  The site its
not going to is www.quill.com and i am sure that the only problem is the
squid because I can get to it without going through the proxy server.
Anyone have any ideas on why this wouldnt be working?

What happens on the users side of things is the site never comes up and it
locks the browser up.
I tried using a ACL and telling it to allow the site direct contact...but
that didnt work either.  I am not seeing anything in the squid logs saying
access denied or anything, so im not sure what is wrong.


Try bypassing your squid server - either turn off proxy in your browser, or 
run lynx on your linux box.  I get no data at all - is it possible theres 
no web site there?




--
Criggie



Re: Squid problems

2000-10-24 Thread Christoph Simon
 I have a squid proxy server that wont go to a specific site.  The site its
 not going to is www.quill.com and i am sure that the only problem is the
 squid because I can get to it without going through the proxy server.
 Anyone have any ideas on why this wouldnt be working?
 
 What happens on the users side of things is the site never comes up and it
 locks the browser up.
 I tried using a ACL and telling it to allow the site direct contact...but
 that didnt work either.  I am not seeing anything in the squid logs saying
 access denied or anything, so im not sure what is wrong.
 
 Any insight of what im missing here would be appreciated.

Do you have a recent kernel?

Try to do this:
echo 0  /proc/sys/net/ipv4/conf/all/rp_filter
echo 0 /proc/sys/net/ipv4/tcp_ecn

Works for me.

-- 
Christoph Simon
[EMAIL PROTECTED]
---
^X^C
q
quit
:q
^C
end
x
exit
ZZ
^D
?
help
shit
.