| Author |
Message |
Henrik Nordstrom *nix forums Guru
Joined: 01 Feb 2005
Posts: 2377
|
Posted: Thu Feb 23, 2006 3:07 pm Post subject:
Re: 0 means no limit??
|
|
|
tor 2006-02-23 klockan 17:24 +0530 skrev mohinder garg:
| Quote: | Hi,
I have seen in squid 2.5 stable10 that at many places if i give 0
value, it means no limit.
|
where this is mentioned in the squid.conf.default comments yes.
| Quote: | for example: connect_timeout 0 (it means no limit to connect timeout).
|
connect_timeout does not work like this. If you set it to 0 then
requests will time out very quickly (less than one second).
Regards
Henrik |
|
| Back to top |
|
 |
mohinder garg *nix forums beginner
Joined: 01 Dec 2005
Posts: 11
|
Posted: Fri Feb 24, 2006 4:38 am Post subject:
Re: 0 means no limit??
|
|
|
Hi,
when you say less than 1 sec. Isn't it exactly zero?
Thanks
Mohinder
On 2/23/06, Henrik Nordstrom <henrik@henriknordstrom.net> wrote:
| Quote: | tor 2006-02-23 klockan 17:24 +0530 skrev mohinder garg:
Hi,
I have seen in squid 2.5 stable10 that at many places if i give 0
value, it means no limit.
where this is mentioned in the squid.conf.default comments yes.
for example: connect_timeout 0 (it means no limit to connect timeout).
connect_timeout does not work like this. If you set it to 0 then
requests will time out very quickly (less than one second).
Regards
Henrik
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (GNU/Linux)
iD8DBQBD/c+X516QwDnMM9sRAmbqAJ9W8ppr6QW5l9RY5Z1jsvg1ghbKAQCffssI
3LlYpcyAA/sNPCgPBwx0t78> =OQtV
-----END PGP SIGNATURE-----
|
--
Mohinder Paul
Software Engineer
NET Devices Inc.
Bangalore-95, India.
Contact No. +91 80 55171314 (O)
+91 9886176467 (M) |
|
| Back to top |
|
 |
Muhammad Bilal Ahmad *nix forums beginner
Joined: 12 Jun 2005
Posts: 6
|
Posted: Fri Feb 24, 2006 12:15 pm Post subject:
Help needed transparent proxy doesnt work
|
|
|
Dear all,
My browser works if I give him the proxy address with port 80 or 3128 but
doesn't work via default gateway. I gave the following command on the
command prompt of windows and got the following output.
C:\> telnet 192.168.0.29 80
HTTP/1.0 400 Bad Request
Server: squid/2.5.STABLE5
Mime-Version: 1.0
Date: Fri, 24 Feb 2006 12:05:34 GMT
Content-Type: text/html
Content-Length: 1219
Expires: Fri, 24 Feb 2006 12:05:34 GMT
X-Squid-Error: ERR_INVALID_REQ 0
X-Cache: MISS from proxy
Proxy-Connection: close
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.or
g/TR/html4/loose.dtd">
<HTML><HEAD><META HTTP-EQUIV="Content-Type"
CONTENT="text/
html; charset=iso-8859-1">
<TITLE>ERROR: The requested URL could not be
retrieved
</TITLE>
<STYLE
type="text/css"><!--BODY{background-color:#ffffff;font-family:ver
dana,sans-serif}PRE{font-family:sans-serif}--></STYLE>
</HEAD><BODY>
<H1>ERROR</H1
| Quote: |
H2>The requested URL could not be retrieved</H2 |
<HR noshade size="1px">
<P>
Whil
e trying to process the request:
<PRE>
www.yahoo.com
&# 3;&# 3;&# 3;
</PRE>
<P>
The following error was encountered:
<UL>
<LI>
<STRONG>
I
nvalid Request
</STRONG>
</UL>
<P>
Some aspect of the HTTP Request is invalid.
Poss
ible problems:
<UL>
<LI>Missing or unknown request method
<LI>Missing URL
<LI>Missin
g HTTP Identifier (HTTP/1.0)
<LI>Request is too large
<LI>Content-Length
missing f
or POST or PUT requests
<LI>Illegal character in hostname; underscores are
not al
lowed
</UL>
<P>Your cache administrator is <A
HREF="mailto:bilal@naveena.com.pk">b
ilal@naveena.com.pk</A>.
<BR clear="all">
<HR noshade size="1px">
<ADDRESS>
Generat
ed Fri, 24 Feb 2006 12:05:34 GMT by proxy (squid/2.5.STABLE5)
</ADDRESS>
</BODY></
HTML>
Connection to host lost.
C:\>
If any body can help me I would be very grateful.
Thanx a lot
Kind Regards
M Bilal Ahmad |
|
| Back to top |
|
 |
Mark Elsen *nix forums Guru
Joined: 23 Feb 2005
Posts: 622
|
Posted: Fri Feb 24, 2006 1:42 pm Post subject:
Re: Help needed transparent proxy doesnt work
|
|
|
| Quote: |
Dear all,
My browser works if I give him the proxy address with port 80 or 3128 but
doesn't work via default gateway. I gave the following command on the
command prompt of windows and got the following output.
C:\> telnet 192.168.0.29 80
....
|
- Squid by default does not operate as a transp. proxy, even if , for instance
your network (and routing) parametes are correct.
For setting up transparant proxying, check the FAQ for numerous examples
in different cases.
But , before thinking about that read :
http://squidwiki.kinkie.it/SquidFaq/InterceptionProxy?highlight=%28intercept%29#head-1cf13b27d5a6f8c523a4582d38a8cfaaacafb896
first; then take a long walk.
M. |
|
| Back to top |
|
 |
Henrik Nordstrom *nix forums Guru
Joined: 01 Feb 2005
Posts: 2377
|
Posted: Fri Feb 24, 2006 4:14 pm Post subject:
Re: 0 means no limit??
|
|
|
fre 2006-02-24 klockan 09:56 +0530 skrev mohinder garg:
| Quote: | when you say less than 1 sec. Isn't it exactly zero?
|
No, it's up to a second. Squid only checks connection related timeouts
once per second so all timeouts are +- 1 second.
Regards
Henrik |
|
| Back to top |
|
 |
ashraf modi *nix forums beginner
Joined: 28 Dec 2005
Posts: 24
|
Posted: Sun Jun 18, 2006 7:43 am Post subject:
peer weight is not working please help
|
|
|
here is the cachemgr genrated view why the weight
didnt
Only first peer is working
Parent : proxy.newbar.com/8080/7
Flags : no-query no-digest default round-robin
no-netdb-exchange no-delay
Address[0] : 212.163.145.85
Status : Up
AVG RTT : 0 msec
OPEN CONNS : 0
LAST QUERY : 1150640774 seconds ago
LAST REPLY : 1150640774 seconds ago
PINGS SENT : 0
PINGS ACKED: 0 0%
FETCHES : 740 0%
IGNORED : 0 0%
Histogram of PINGS ACKED:
keep-alive ratio: 84%
Parent : proxy.altang.net/8080/7
Flags : no-query no-digest default round-robin
no-netdb-exchange no-delay
Address[0] : 212.86.156.87
Status : Up
AVG RTT : 0 msec
OPEN CONNS : 0
LAST QUERY : 1150640774 seconds ago
LAST REPLY : 1150640774 seconds ago
PINGS SENT : 0
PINGS ACKED: 0 0%
FETCHES : 0 0%
IGNORED : 0 0%
Histogram of PINGS ACKED:
keep-alive ratio: 0%
Parent : proxy.ariw.net/8080/7
Flags : no-query no-digest default round-robin
no-netdb-exchange no-delay
Address[0] : 212.115.125.24
Status : Up
AVG RTT : 0 msec
OPEN CONNS : 0
LAST QUERY : 1150640774 seconds ago
LAST REPLY : 1150640774 seconds ago
PINGS SENT : 0
PINGS ACKED: 0 0%
FETCHES : 0 0%
IGNORED : 0 0%
Histogram of PINGS ACKED:
keep-alive ratio: 0%
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com |
|
| Back to top |
|
 |
Henrik Nordstrom *nix forums Guru
Joined: 01 Feb 2005
Posts: 2377
|
Posted: Sun Jun 18, 2006 1:37 pm Post subject:
Re: peer weight is not working please help
|
|
|
sön 2006-06-18 klockan 00:43 -0700 skrev squid learner:
| Quote: | here is the cachemgr genrated view why the weight
didnt
Only first peer is working
|
Hmm... odd.
Note: round-robin does not have any weight. The requests should be
distributed equal among the available peers.
Are you perhaps using any cache_peer_access/cache_peer_domain directives
limiting which peers may be used for the request?
Regards
Henrik |
|
| Back to top |
|
 |
ashraf modi *nix forums beginner
Joined: 28 Dec 2005
Posts: 24
|
Posted: Sun Jun 18, 2006 6:45 pm Post subject:
Re: peer weight is not working please help
|
|
|
Thanks for help
I already tried deffrent weights (but just first one
have FETCHES
it shows up in cachimgr but no FETCHES
cache_peer proxy.firstisp parent 8080 7 no-query
default round-robin weight=20
no-digest no-netdb-exchange no-delay
cache_peer proxy.secondisp parent 8080 7 no-query
default round-robin weight=70 no-digest
no-netdb-exchange no-delay
--- Henrik Nordstrom <henrik@henriknordstrom.net>
wrote:
| Quote: | sön 2006-06-18 klockan 00:43 -0700 skrev squid
learner:
here is the cachemgr genrated view why the weight
didnt
Only first peer is working
Hmm... odd.
Note: round-robin does not have any weight. The
requests should be
distributed equal among the available peers.
Are you perhaps using any
cache_peer_access/cache_peer_domain directives
limiting which peers may be used for the request?
Regards
Henrik
|
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com |
|
| Back to top |
|
 |
Henrik Nordstrom *nix forums Guru
Joined: 01 Feb 2005
Posts: 2377
|
Posted: Mon Jun 19, 2006 11:40 am Post subject:
Re: peer weight is not working please help
|
|
|
sön 2006-06-18 klockan 11:45 -0700 skrev squid learner:
| Quote: | I already tried deffrent weights (but just first one
have FETCHES
it shows up in cachimgr but no FETCHES
cache_peer proxy.firstisp parent 8080 7 no-query
default round-robin weight=20
|
Take away "default" (from all the peers) and results should be better.
Regards
Henrik |
|
| Back to top |
|
 |
ashraf modi *nix forums beginner
Joined: 28 Dec 2005
Posts: 24
|
Posted: Tue Jun 20, 2006 5:45 am Post subject:
Re: peer weight is not working please help
|
|
|
Sir
thankyou
As per your advice i remove that
a good improvement i check the access log
here now the problem is freq failur of tcp conncetion
to peer
Last failed connect() at: 20/Jun/2006:08:22:41 -0400
keep-alive ratio: 0%
===========
log shows the page is fetched from isp2 & isp3
bur cachemgr
still shows (even after rebuilt and reconfigure )
isp 1 (FETCHES : 407 0%)
isp 2 (FETCHES : 0 0%)
isp 3 (FETCHES : 0 0%)
thanks for help again
--- Henrik Nordstrom <henrik@henriknordstrom.net>
wrote:
| Quote: | sön 2006-06-18 klockan 11:45 -0700 skrev squid
learner:
I already tried deffrent weights (but just first
one
have FETCHES
it shows up in cachimgr but no FETCHES
cache_peer proxy.firstisp parent 8080 7 no-query
default round-robin weight=20
Take away "default" (from all the peers) and results
should be better.
Regards
Henrik
|
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com |
|
| Back to top |
|
 |
ashraf modi *nix forums beginner
Joined: 28 Dec 2005
Posts: 24
|
Posted: Tue Jun 20, 2006 7:54 am Post subject:
Re: peer weight is not working please help
|
|
|
a little more with advance THANKS
here you see the access log the peer sellection is
very fast
and it goes to other with out completing req
is there any way to reduce this
that every peer should change after some time like
after 5 minuts or so
you see the acces log it changes very fast
and when it change it leave the req incomplete
because every peer is given direction to diffrent
router
Kernel IP routing table
Destination Gateway Genmask Flags
Metric Ref Use Iface
212.107.116.243 192.168.1.2 255.255.255.255 UGH
0 0 0 eth0
212.162.158.85 192.168.1.3 255.255.255.255 UGH
0 0 0 eth0
212.92.193.87 192.168.1.1 255.255.255.255 UGH
0 0 0 eth0
192.168.1.0 * 255.255.255.0 U
0 0 0 eth0
169.254.0.0 * 255.255.0.0 U
0 0 0 eth0
127.0.0.0 * 255.0.0.0 U
0 0 0 lo
default 192.168.1.3 0.0.0.0 UG
0 0 0 eth0
default 192.168.1.2 0.0.0.0 UG
0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG
0 0 0 eth0
[root@modi root]#
1150813218.959 556 192.168.1.23 TCP_MISS/204 258
GET http://www.google.com/url? -
ROUNDROBIN_PARENT/proxy.jeel.com text/html
1150813225.025 6494 192.168.1.23 TCP_MISS/000 0 GET
http://www.newscientist.com/ -
ROUNDROBIN_PARENT/proxy.cyberia.net.sa -
1150813225.947 902 192.168.1.23 TCP_MISS/302 567
GET http://www.newscientist.com/ - NONE/- text/html
1150813227.375 1428 192.168.1.23 TCP_MISS/000 0 GET
http://www.newscientist.com/home.ns -
ROUNDROBIN_PARENT/proxy.cyberia.net.sa -
1150813228.705 1424 192.168.1.23 TCP_MISS/000 0 GET
http://www.google.com/url? -
ROUNDROBIN_PARENT/proxy.awalnet.net.sa -
1150813228.713 3858 192.168.1.23 TCP_MISS/000 0 GET
http://www.google.com/url? -
ROUNDROBIN_PARENT/proxy.awalnet.net.sa -
1150813229.625 2204 192.168.1.23 TCP_MISS/200 28299
GET http://content.nejm.org/ - NONE/- text/html
1150813229.629 905 192.168.1.23 TCP_MISS/000 0 GET
http://content.nejm.org/homepage.css -
ROUNDROBIN_PARENT/proxy.cyberia.net.sa -
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com |
|
| Back to top |
|
 |
Chris Robertson *nix forums Guru
Joined: 01 Feb 2005
Posts: 373
|
Posted: Tue Jun 20, 2006 6:37 pm Post subject:
Re: peer weight is not working please help
|
|
|
squid learner wrote:
| Quote: | a little more with advance THANKS
here you see the access log the peer sellection is
very fast
and it goes to other with out completing req
This is working as designed. Each HTTP request is (should be) a stand |
alone request. No HTTP request relies on any other to finish.
| Quote: | is there any way to reduce this
that every peer should change after some time like
after 5 minuts or so
you see the acces log it changes very fast
and when it change it leave the req incomplete
because every peer is given direction to diffrent
router
This is incorrect. The request is being passed to the parent, but the |
parent is not responding in a timely fashion (over six seconds in one
instance). The user controlling the client gets tired of waiting, and
hits "stop" or "reload" on the browser, which causes Squid to log a
TCP_MISS/000. More interpretation follows...
| Quote: | Kernel IP routing table
Destination Gateway Genmask Flags
Metric Ref Use Iface
212.107.116.243 192.168.1.2 255.255.255.255 UGH
0 0 0 eth0
212.162.158.85 192.168.1.3 255.255.255.255 UGH
0 0 0 eth0
212.92.193.87 192.168.1.1 255.255.255.255 UGH
0 0 0 eth0
192.168.1.0 * 255.255.255.0 U
0 0 0 eth0
169.254.0.0 * 255.255.0.0 U
0 0 0 eth0
127.0.0.0 * 255.0.0.0 U
0 0 0 lo
default 192.168.1.3 0.0.0.0 UG
0 0 0 eth0
default 192.168.1.2 0.0.0.0 UG
0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG
0 0 0 eth0
[root@modi root]#
1150813218.959 556 192.168.1.23 TCP_MISS/204 258
GET http://www.google.com/url? -
ROUNDROBIN_PARENT/proxy.jeel.com text/html
This cache parent was successfully contacted. Response contained no content |
| Quote: | 1150813225.025 6494 192.168.1.23 TCP_MISS/000 0 GET
http://www.newscientist.com/ -
ROUNDROBIN_PARENT/proxy.cyberia.net.sa -
This request was canceled by the client before any data was returned. |
| Quote: | 1150813227.375 1428 192.168.1.23 TCP_MISS/000 0 GET
http://www.newscientist.com/home.ns -
ROUNDROBIN_PARENT/proxy.cyberia.net.sa -
This request was canceled by the client before any data was returned. |
| Quote: | 1150813228.705 1424 192.168.1.23 TCP_MISS/000 0 GET
http://www.google.com/url? -
ROUNDROBIN_PARENT/proxy.awalnet.net.sa -
This request was canceled... |
| Quote: | 1150813228.713 3858 192.168.1.23 TCP_MISS/000 0 GET
http://www.google.com/url? -
ROUNDROBIN_PARENT/proxy.awalnet.net.sa -
This request was canceled... |
| Quote: | 1150813229.625 2204 192.168.1.23 TCP_MISS/200 28299
GET http://content.nejm.org/ - NONE/- text/html
Successful request. No parent used. |
I don't see a single successful request made through a parent cache.
You need to figure out why the parent caches are not passing you any
data. Round robin will bounce every request to a different parent,
true, but it will not cause a request to canceled before it is serviced.
Chris |
|
| Back to top |
|
 |
Henrik Nordstrom *nix forums Guru
Joined: 01 Feb 2005
Posts: 2377
|
Posted: Tue Jun 20, 2006 7:43 pm Post subject:
Re: peer weight is not working please help
|
|
|
tis 2006-06-20 klockan 10:37 -0800 skrev Chris Robertson:
Note: there is a bug in current Squid versions not always logging the
hierarchy field correct... Squid Bug #1605.
Regards
Henrik |
|
| Back to top |
|
 |
ashraf modi *nix forums beginner
Joined: 28 Dec 2005
Posts: 24
|
Posted: Wed Jun 21, 2006 7:47 am Post subject:
Re: peer weight is not working please help
|
|
|
| Quote: |
I don't see a single successful request made through
a parent cache.
You need to figure out why the parent caches are not
passing you any
data. Round robin will bounce every request to a
different parent,
true, but it will not cause a request to canceled
before it is serviced.
Chris
Thanks Chris |
I am not very much familer with all so i need help
all my parent are work fine if i use them direct in my
client browser
and about bug as explain by "Sir Henric
I dont no what to do do ire install squid or change
the version go back to STABLE6-6 or 7
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com |
|
| Back to top |
|
 |
ashraf modi *nix forums beginner
Joined: 28 Dec 2005
Posts: 24
|
Posted: Wed Jun 21, 2006 7:50 am Post subject:
Re: peer weight is not working please help
|
|
|
--- Henrik Nordstrom <henrik@henriknordstrom.net>
wrote:
| Quote: | tis 2006-06-20 klockan 10:37 -0800 skrev Chris
Robertson:
1150813225.947 902 192.168.1.23 TCP_MISS/302
567
GET http://www.newscientist.com/ - NONE/-
text/html
No parent was used.
Note: there is a bug in current Squid versions not
always logging the
hierarchy field correct... Squid Bug #1605.
Regards
Henrik
Thanks for information |
Sir
what i have to do now did i go back to test old
versions what is best as your advice
some told the STABLE7 is best
please advice
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|