[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squid-users
Subject:    Re: [squid-users] The system returned: (111) Connection refused;
From:       deepa ganu <deepaganu () gmail ! com>
Date:       2016-05-27 15:15:11
Message-ID: CA+qV5kKsahx91qeejOpQha7+E50T9Xob=HVmOu6G9xMNguez=w () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On May 27, 2016 5:43 PM, "Amos Jeffries" <squid3@treenet.co.nz> wrote:
>
> On 27/05/2016 8:55 p.m., deepa ganu wrote:
> > Hi
> > I am using squid as a reverse.
> >
> > #http_port  80 accel defaultsite=202.53.13.19
> > https_port 443 accel  cert=/var/www/html/webrtc/imp/teleuniv.net.crt
> > key=/var/www/html/webrtc/imp/teleuniv.net.key
> > cafile=/var/www/html/webrtc/imp/intermediate.crt
defaultsite=202.53.13.19
> > no-vhost
> >
> >
> > #this ACL is url path specific which accepts only portal urls and deny
> > others.
> > acl portal urlpath_regex ^/portal6may
> > cache_peer 172.20.36.144 parent 80 0 no-query originserver
name=portalserver
> > cache_peer_access portalserver allow portal
> > cache_peer_access portalserver deny all
> > http_access allow portal
> >
> >
> > cache_peer 172.20.36.150 parent 443 0 no-query originserver ssl
> > sslflags=DONT_VERIFY_PEER login=PASS connection-auth=off name=teleuniv
> > acl our_sites dstdomain 202.53.13.19
> > http_access allow our_sites
> > cache_peer_access teleuniv allow our_sites
> > cache_peer_access teleuniv deny all
> >
> > SO when i try to access the url https://202.53.13.19/ I get the
following
> > error
> > "The following error was encountered while trying to retrieve the URL:
The
> > system returned: (111) Connection refused; The remote host or network
may
> > be down. Please try the request again."
> >
> > It only gives for 172.20.36.144 not for the urlpath acl.
>
> You have configured Squid to:
>
>  1) "no-vhost" - ignore the Host header the client sent indicating what
> domain name it was contacting.
It usually is vhost and the domain name is teleuniv.com but for testing
purposes we use public IP 202.53.13.19
>
>  2) defaultsite=202.53.13.19 - use "202.53.13.19" as the domain *name*
> for all requests received through that https_port.
>
> Why would you expect to see anything other than https://202.53.13.19 in
> the URL when you have configured those?
Didnt understand the above mentioned point
>
> > But this happens
> > only sometimes. When I physically go to that server (172.20.36.150) and
> > click on the wired connection (one of the LAN options using linux). It
> > works again. I am very confused
>
> Your use of "physically" seems to be incorrect. You walked up to the
> machine hardware and did what ?
> I logged in the machine and click on "wired connection"
> "Clicking" seems to be that you logged in (not physically) and changed
> something which affected how Squid was able to connect to it.
>
>
> All traffic with the domain name "202.53.13.19" and not the path
> "/portal6may" gets sent to the second cache_peer (172.20.36.150).
>
> So what do you expect to happen when the server 172.20.36.150 receives a
> request with Host: header domain name set to "202.53.13.19"  ?
>I didn't understand the host: header part any references to understand
>
> It seems like the servers connectivity is a bit flakey and getting
> disconnected occasionally. But the wrong Squid configuration could be
> hiding some other issue.
> I read somewhere it happens when cache is full. Can u tell me what should
be cache size if my HDD 500 gb and 32 MB RAM
> Amos
>
> _______________________________________________
> squid-users mailing list
> squid-users@lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-user

[Attachment #5 (text/html)]

<p dir="ltr"><br>
On May 27, 2016 5:43 PM, &quot;Amos Jeffries&quot; &lt;<a \
href="mailto:squid3@treenet.co.nz">squid3@treenet.co.nz</a>&gt; wrote:<br> &gt;<br>
&gt; On 27/05/2016 8:55 p.m., deepa ganu wrote:<br>
&gt; &gt; Hi<br>
&gt; &gt; I am using squid as a reverse.<br>
&gt; &gt;<br>
&gt; &gt; #http_port   80 accel defaultsite=202.53.13.19<br>
&gt; &gt; https_port 443 accel   cert=/var/www/html/webrtc/imp/teleuniv.net.crt<br>
&gt; &gt; key=/var/www/html/webrtc/imp/teleuniv.net.key<br>
&gt; &gt; cafile=/var/www/html/webrtc/imp/intermediate.crt \
defaultsite=202.53.13.19<br> &gt; &gt; no-vhost<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; #this ACL is url path specific which accepts only portal urls and deny<br>
&gt; &gt; others.<br>
&gt; &gt; acl portal urlpath_regex ^/portal6may<br>
&gt; &gt; cache_peer 172.20.36.144 parent 80 0 no-query originserver \
name=portalserver<br> &gt; &gt; cache_peer_access portalserver allow portal<br>
&gt; &gt; cache_peer_access portalserver deny all<br>
&gt; &gt; http_access allow portal<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; cache_peer 172.20.36.150 parent 443 0 no-query originserver ssl<br>
&gt; &gt; sslflags=DONT_VERIFY_PEER login=PASS connection-auth=off name=teleuniv<br>
&gt; &gt; acl our_sites dstdomain 202.53.13.19<br>
&gt; &gt; http_access allow our_sites<br>
&gt; &gt; cache_peer_access teleuniv allow our_sites<br>
&gt; &gt; cache_peer_access teleuniv deny all<br>
&gt; &gt;<br>
&gt; &gt; SO when i try to access the url <a \
href="https://202.53.13.19/">https://202.53.13.19/</a> I get the following<br> &gt; \
&gt; error<br> &gt; &gt; &quot;The following error was encountered while trying to \
retrieve the URL: The<br> &gt; &gt; system returned: (111) Connection refused; The \
remote host or network may<br> &gt; &gt; be down. Please try the request \
again.&quot;<br> &gt; &gt;<br>
&gt; &gt; It only gives for 172.20.36.144 not for the urlpath acl.<br>
&gt;<br>
&gt; You have configured Squid to:<br>
&gt;<br>
&gt;   1) &quot;no-vhost&quot; - ignore the Host header the client sent indicating \
what<br> &gt; domain name it was contacting.<br>
It usually is vhost and the domain name is <a \
href="http://teleuniv.com">teleuniv.com</a> but for testing purposes we use public IP \
202.53.13.19<br> &gt;<br>
&gt;   2) defaultsite=202.53.13.19 - use &quot;202.53.13.19&quot; as the domain \
*name*<br> &gt; for all requests received through that https_port.<br>
&gt;<br>
&gt; Why would you expect to see anything other than <a \
href="https://202.53.13.19">https://202.53.13.19</a> in<br> &gt; the URL when you \
have configured those?<br> Didnt understand the above mentioned point<br>
&gt;<br>
&gt; &gt; But this happens<br>
&gt; &gt; only sometimes. When I physically go to that server (172.20.36.150) and<br>
&gt; &gt; click on the wired connection (one of the LAN options using linux). It<br>
&gt; &gt; works again. I am very confused<br>
&gt;<br>
&gt; Your use of &quot;physically&quot; seems to be incorrect. You walked up to \
the<br> &gt; machine hardware and did what ?<br>
&gt; I logged in the machine and click on &quot;wired connection&quot;<br>
&gt; &quot;Clicking&quot; seems to be that you logged in (not physically) and \
changed<br> &gt; something which affected how Squid was able to connect to it.<br>
&gt; <br>
&gt;<br>
&gt; All traffic with the domain name &quot;202.53.13.19&quot; and not the path<br>
&gt; &quot;/portal6may&quot; gets sent to the second cache_peer (172.20.36.150).<br>
&gt;<br>
&gt; So what do you expect to happen when the server 172.20.36.150 receives a<br>
&gt; request with Host: header domain name set to &quot;202.53.13.19&quot;   ?<br>
&gt;I didn&#39;t understand the host: header part any references to understand <br>
&gt;<br>
&gt; It seems like the servers connectivity is a bit flakey and getting<br>
&gt; disconnected occasionally. But the wrong Squid configuration could be<br>
&gt; hiding some other issue.<br>
&gt; I read somewhere it happens when cache is full. Can u tell me what should be \
cache size if my HDD 500 gb and 32 MB RAM <br> &gt; Amos<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; squid-users mailing list<br>
&gt; <a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.org</a><br>
 &gt; <a href="http://lists.squid-cache.org/listinfo/squid-user">http://lists.squid-cache.org/listinfo/squid-user</a></p>



[Attachment #6 (text/plain)]

_______________________________________________
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic