Is it SQUID problem or ????
-
- Battalion Quarter Master Havaldaar
- Posts: 207
- Joined: Sat Aug 09, 2003 5:00 pm
- Location: Karachi
- Contact:
Is it SQUID problem or ????
I have setup Red Hat Linux 7.3 with default settings.
From windows 98 client, when I send any request to my SQUID Box it take too much time serve my request.
I have checked this in my /var/log/squid/access.log, after 10-30 second my request appear in this log file.
I do not know either it is squid problem or any other bottleneck?
please help me.
From windows 98 client, when I send any request to my SQUID Box it take too much time serve my request.
I have checked this in my /var/log/squid/access.log, after 10-30 second my request appear in this log file.
I do not know either it is squid problem or any other bottleneck?
please help me.
-
- Lieutenant Colonel
- Posts: 660
- Joined: Sat Jul 06, 2002 12:35 pm
- Location: Islamabad
- Contact:
20-30 seconds seems like a lot of time but consider that the squid box is doing all dns resolution for the url asked for. May be the dns server at ur isp is slow. Secondly dont expect immediate performance hits when u setup squid. It will take about 2-3 days of good running to build a good cache witha 40-50% hit ratio. I dont see it as a problem with squid. You can try by installing the cachin-server package that configures your system as a caching dns server and see if that helps.
Another point is that it is really hard to point out if there is a problem with squid or something else if you dont post related data. One such thing might be the settings u tinkered with in your squid.conf file.
Regards
Zaeem Arshad
Another point is that it is really hard to point out if there is a problem with squid or something else if you dont post related data. One such thing might be the settings u tinkered with in your squid.conf file.
Regards
Zaeem Arshad
-
- Battalion Quarter Master Havaldaar
- Posts: 207
- Joined: Sat Aug 09, 2003 5:00 pm
- Location: Karachi
- Contact:
Is it SQUID problem or ????
Zaeem Arshad,
From where I can download cachin-server package that configures my system as a caching dns server.
First I want to check either it is dns problem or any other.
In SQUID I also configure "positive_dns_ttl 6 hours" this parameter but I do not know it is enable or disable in my SQUID RPM, so how I can check what options are enable in my SQUID ?
From where I can download cachin-server package that configures my system as a caching dns server.
First I want to check either it is dns problem or any other.
In SQUID I also configure "positive_dns_ttl 6 hours" this parameter but I do not know it is enable or disable in my SQUID RPM, so how I can check what options are enable in my SQUID ?
-
- Site Admin
- Posts: 5132
- Joined: Fri May 02, 2003 10:24 am
- Location: Karachi
- Contact:
Re:
Dear shakirz1,
Salam,
You can download Caching-nameserver pakage from ftp://rpmfind.net/linux/redhat/7.3/en/o ... noarch.rpm and may be its Configuration Problem not Caching-nameserver Problem Please Check out http://www.linuxpakistan.net/forum2x/vi ... .php?t=414 hope it will help ya
Best Regards.
Salam,
You can download Caching-nameserver pakage from ftp://rpmfind.net/linux/redhat/7.3/en/o ... noarch.rpm and may be its Configuration Problem not Caching-nameserver Problem Please Check out http://www.linuxpakistan.net/forum2x/vi ... .php?t=414 hope it will help ya
Best Regards.
Farrukh Ahmed
-
- Lieutenant Colonel
- Posts: 660
- Joined: Sat Jul 06, 2002 12:35 pm
- Location: Islamabad
- Contact:
Dear Shakirz1
The caching-nameserver package is with your redhat cds. You can install it using the rpm command which was covered in detail in a previous thread by the tiltle of "File Roller problem". lemme tell you that if you are not configuring an isp server, you only need to configure 4 things in squid.conf.
1. http_port 3128 (always this one by default)
2)visible_hostname proxy (change it to the name of the squid box)
3)add a line in access controls like this
http_access allow 192.168.0.0/24 (change the ip to that of ur lan)
then save the file. do a squid -z. then /etc/init.d/squid start and that shall do the trick.
Regards
Zaeem Arshad
The caching-nameserver package is with your redhat cds. You can install it using the rpm command which was covered in detail in a previous thread by the tiltle of "File Roller problem". lemme tell you that if you are not configuring an isp server, you only need to configure 4 things in squid.conf.
1. http_port 3128 (always this one by default)
2)visible_hostname proxy (change it to the name of the squid box)
3)add a line in access controls like this
http_access allow 192.168.0.0/24 (change the ip to that of ur lan)
then save the file. do a squid -z. then /etc/init.d/squid start and that shall do the trick.
Regards
Zaeem Arshad
-
- Battalion Quarter Master Havaldaar
- Posts: 207
- Joined: Sat Aug 09, 2003 5:00 pm
- Location: Karachi
- Contact:
Is it SQUID problem or ????
I am sending herewith my /var/log/messages
Dec 1 15:47:46 cable named[28410]: starting BIND 9.2.0 -u named
Dec 1 15:47:46 cable named[28410]: using 1 CPU
Dec 1 15:47:46 cable named[28414]: loading configuration from '/etc/named.conf'
Dec 1 15:47:46 cable named[28414]: no IPv6 interfaces found
Dec 1 15:47:46 cable named[28414]: listening on IPv4 interface lo, 127.0.0.1#53
Dec 1 15:47:46 cable named[28414]: listening on IPv4 interface eth0, 192.168.0.1#53
Dec 1 15:47:46 cable named[28414]: listening on IPv4 interface ppp0, 202.163.99.185#53
Dec 1 15:47:46 cable named[28414]: command channel listening on 127.0.0.1#953
Dec 1 15:47:46 cable named[28414]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1
Dec 1 15:47:46 cable named[28414]: zone 0.168.192.in-addr.arpa/IN: loaded serial 2
Dec 1 15:47:46 cable named[28414]: zone cable.com/IN: loaded serial 2
Dec 1 15:47:46 cable named[28414]: zone localhost/IN: loaded serial 1
Dec 1 15:47:46 cable named[28414]: running
Dec 1 15:47:46 cable named[28414]: zone 0.168.192.in-addr.arpa/IN: sending notifies (serial 2)
Dec 1 15:47:46 cable named[28414]: zone cable.com/IN: sending notifies (serial 2)
Dec 1 15:47:46 cable named: named startup succeeded
I think there is not DNS problem. In squid I also use this
http_port 8080
visible_hostname cable
http_access allow 192.168.0.0/24
But the same proble.
Dec 1 15:47:46 cable named[28410]: starting BIND 9.2.0 -u named
Dec 1 15:47:46 cable named[28410]: using 1 CPU
Dec 1 15:47:46 cable named[28414]: loading configuration from '/etc/named.conf'
Dec 1 15:47:46 cable named[28414]: no IPv6 interfaces found
Dec 1 15:47:46 cable named[28414]: listening on IPv4 interface lo, 127.0.0.1#53
Dec 1 15:47:46 cable named[28414]: listening on IPv4 interface eth0, 192.168.0.1#53
Dec 1 15:47:46 cable named[28414]: listening on IPv4 interface ppp0, 202.163.99.185#53
Dec 1 15:47:46 cable named[28414]: command channel listening on 127.0.0.1#953
Dec 1 15:47:46 cable named[28414]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1
Dec 1 15:47:46 cable named[28414]: zone 0.168.192.in-addr.arpa/IN: loaded serial 2
Dec 1 15:47:46 cable named[28414]: zone cable.com/IN: loaded serial 2
Dec 1 15:47:46 cable named[28414]: zone localhost/IN: loaded serial 1
Dec 1 15:47:46 cable named[28414]: running
Dec 1 15:47:46 cable named[28414]: zone 0.168.192.in-addr.arpa/IN: sending notifies (serial 2)
Dec 1 15:47:46 cable named[28414]: zone cable.com/IN: sending notifies (serial 2)
Dec 1 15:47:46 cable named: named startup succeeded
I think there is not DNS problem. In squid I also use this
http_port 8080
visible_hostname cable
http_access allow 192.168.0.0/24
But the same proble.
-
- Lieutenant Colonel
- Posts: 660
- Joined: Sat Jul 06, 2002 12:35 pm
- Location: Islamabad
- Contact:
-
- Battalion Quarter Master Havaldaar
- Posts: 207
- Joined: Sat Aug 09, 2003 5:00 pm
- Location: Karachi
- Contact:
Is it SQUID problem or ????
here is my cache.log file
2001/05/22 04:08:41| Restarting Squid Cache (version 2.4.STABLE6)...
2001/05/22 04:08:41| FD 8 Closing HTTP connection
2001/05/22 04:08:41| FD 10 Closing ICP connection
2001/05/22 04:08:41| Cache dir '/cache1' size remains unchanged at 1024000 KB
2001/05/22 04:08:41| Cache dir '/cache2' size remains unchanged at 1024000 KB
2001/05/22 04:08:41| Cache dir '/cache3' size remains unchanged at 1024000 KB
2001/05/22 04:08:41| Cache dir '/cache4' size remains unchanged at 1024000 KB
2001/05/22 04:08:41| DNS Socket created on FD 4
2001/05/22 04:08:41| Adding nameserver 192.168.0.1 from /etc/resolv.conf
2001/05/22 04:08:41| Adding nameserver 202.69.33.35 from /etc/resolv.conf
2001/05/22 04:08:41| Adding nameserver 202.69.33.5 from /etc/resolv.conf
2001/05/22 04:08:41| Accepting HTTP connections at 0.0.0.0, port 8080, FD 8.
2001/05/22 04:08:41| Accepting ICP messages at 0.0.0.0, port 3130, FD 10.
2001/05/22 04:08:41| WCCP Disabled.
2001/05/22 04:08:41| Configuring Parent 192.168.0.2/8080/0
2001/05/22 04:08:41| Configuring Parent 192.168.0.4/8080/0
2001/05/22 04:08:41| Loaded Icons.
2001/05/22 04:08:41| Ready to serve requests.
2001/05/22 04:08:41| Restarting Squid Cache (version 2.4.STABLE6)...
2001/05/22 04:08:41| FD 8 Closing HTTP connection
2001/05/22 04:08:41| FD 10 Closing ICP connection
2001/05/22 04:08:41| Cache dir '/cache1' size remains unchanged at 1024000 KB
2001/05/22 04:08:41| Cache dir '/cache2' size remains unchanged at 1024000 KB
2001/05/22 04:08:41| Cache dir '/cache3' size remains unchanged at 1024000 KB
2001/05/22 04:08:41| Cache dir '/cache4' size remains unchanged at 1024000 KB
2001/05/22 04:08:41| DNS Socket created on FD 4
2001/05/22 04:08:41| Adding nameserver 192.168.0.1 from /etc/resolv.conf
2001/05/22 04:08:41| Adding nameserver 202.69.33.35 from /etc/resolv.conf
2001/05/22 04:08:41| Adding nameserver 202.69.33.5 from /etc/resolv.conf
2001/05/22 04:08:41| Accepting HTTP connections at 0.0.0.0, port 8080, FD 8.
2001/05/22 04:08:41| Accepting ICP messages at 0.0.0.0, port 3130, FD 10.
2001/05/22 04:08:41| WCCP Disabled.
2001/05/22 04:08:41| Configuring Parent 192.168.0.2/8080/0
2001/05/22 04:08:41| Configuring Parent 192.168.0.4/8080/0
2001/05/22 04:08:41| Loaded Icons.
2001/05/22 04:08:41| Ready to serve requests.
-
- Lieutenant Colonel
- Posts: 660
- Joined: Sat Jul 06, 2002 12:35 pm
- Location: Islamabad
- Contact:
why is it configuring parents at 192.168.0.2? i couldnt get it. why did u set them up as parents.also check if there is a domain section in your resolv.conf . if there is one then remove it and see. if u r running the dns server on linux then include a forwarders statement in ur named.conf.
Regards
Zaeem Arshad
Regards
Zaeem Arshad
-
- Battalion Quarter Master Havaldaar
- Posts: 207
- Joined: Sat Aug 09, 2003 5:00 pm
- Location: Karachi
- Contact:
Is it SQUID problem or ????
Because I am running 2 more SQUID proxy server as round-robin parent so I define parent proxy here on server1.
-
- Lieutenant Colonel
- Posts: 660
- Joined: Sat Jul 06, 2002 12:35 pm
- Location: Islamabad
- Contact:
really difficult to comment as your setup seems to be a bit complex. it seems that u have changed a few settings and really i am unable to suggest a solution without taking a look at them. if u find it easy then mail me the changes at my hotmail account. i will take a look at it and post a solution back.
what i think of the problem though is setting parents to round robin. u should set them as peers and not as parents as this might be slowing down ur requests. try that.
Regards
Zaeem Arshad
what i think of the problem though is setting parents to round robin. u should set them as peers and not as parents as this might be slowing down ur requests. try that.
Regards
Zaeem Arshad