Re: [squid-users] Squid is not worked in OpenVZ VPS.

2015-12-31 Thread L . P . H . van Belle
A simple test, and quick fix. 

ping6 ipv6.google.com 
No reply. 
Add in your interfaces : 

auto 6to4
iface 6to4 inet6 6to4
local YOUR_EXTERNAL_IP

ifup 6to4 

and ping6 ipv6.google.com again. 
Not the most elegant solution but works here for me. 


Greetz, 

Louis


> -Oorspronkelijk bericht-
> Van: squid-users [mailto:squid-users-boun...@lists.squid-cache.org] Namens
> Eliezer Croitoru
> Verzonden: woensdag 30 december 2015 19:39
> Aan: squid-users@lists.squid-cache.org
> Onderwerp: Re: [squid-users] Squid is not worked in OpenVZ VPS.
> 
> On 30/12/2015 19:29, Billy.Zheng (zw963) wrote:
> > I can acess `www.google.com' in side my VPS with W3M.
> >
> > But, can not accesswww.google.com  across my Squid server.
> >
> > I don't what happen here, those VPS provider guys work on this two days,
> > not resolved.
> 
> Hey Billy,
> 
>  From the information page it is clear that your server tries to access
> some IPV6 host and doesn't succeeded.
> If you can run couple tests, try to contact my web server at:
> http://ngtech.co.il/
> 
> And see if it works.
> Also does this VPS machine has ipv6 access at all? ping6 .. other tools?
> 
> There is also another option that you can try to add  "dns_v4_first on"
> (http://www.squid-cache.org/Doc/config/dns_v4_first/)
> 
> into the squid.conf and only then try to access http://www.google.com/ .
> It will clear many doubts and very fast.
> 
> Eliezer
> 
> 
> 
> 
> ___
> squid-users mailing list
> squid-users@lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users

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


Re: [squid-users] Squid is not worked in OpenVZ VPS.

2015-12-30 Thread zw963
I can acess `www.google.com' in side my VPS with W3M.

But, can not access www.google.com across my Squid server.

I don't what happen here, those VPS provider guys work on this two days, 
not resolved.

Kinkie writes:

> Well, the IPv6 address could be telling. Maybe OpenVZ is setting up a
> V6 network but has no route out of it.
> Can you try accessing a known V4 and a known V6 address? It could help
> you understand if the issue is there. In that case, you need to fix
> the issue at the OpenVZ level.
>
>
> On Wed, Dec 30, 2015 at 3:14 PM, Billy.Zheng  wrote:
>> Thanks for you reply.
>>
>> The failed message is: `Connection to  failed',  is a IPV6
>> address somehow.
>>
>> I found i just could't access part of website, not all.
>>
>> so, I thought this is not Squid problem, maybe china GFW prevent this,
>> I doubt OpenVZ provider's machine room exist some problem.
>>
>> Thanks.
>>
>> Francesco Chemolli writes:
>>
 On 30 Dec 2015, at 11:39, Billy.Zheng(zw963)  wrote:

 Hi, I have two VPS in same location(HONG KONG)

 the two VPS is blongs to two service provider, one OpenVZ, one XEN.

 I choice with same version CentOS(6.7), and with same config script for
 a FORWARD proxy to access free world.

 XEN always worked for me, but OpenVZ is not.

>>>
 the second logs is so strange,  www.vpsnine.com is my OpenVZ VPS
 provider domain name, I never access it from my local browser.
 and not like another XEN VPS, those log output is very very slow.

 Could you give me some clue for resolve this? Thanks.
>>>
>>> when you try accessing some destination with the proxy that is not working, 
>>> what does the error page say?
>>>
>>>   Kinkie
>>> ___
>>> squid-users mailing list
>>> squid-users@lists.squid-cache.org
>>> http://lists.squid-cache.org/listinfo/squid-users
>>
>> --
>> Geek, Rubyist, Emacser
>> Homepage: http://zw963.github.io
>>

-- 
Geek, Rubyist, Emacser
Homepage: http://zw963.github.io

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


Re: [squid-users] Squid is not worked in OpenVZ VPS.

2015-12-30 Thread Eliezer Croitoru

On 30/12/2015 19:29, Billy.Zheng (zw963) wrote:

I can acess `www.google.com' in side my VPS with W3M.

But, can not accesswww.google.com  across my Squid server.

I don't what happen here, those VPS provider guys work on this two days,
not resolved.


Hey Billy,

From the information page it is clear that your server tries to access 
some IPV6 host and doesn't succeeded.

If you can run couple tests, try to contact my web server at:
http://ngtech.co.il/

And see if it works.
Also does this VPS machine has ipv6 access at all? ping6 .. other tools?

There is also another option that you can try to add  "dns_v4_first on" 
(http://www.squid-cache.org/Doc/config/dns_v4_first/)


into the squid.conf and only then try to access http://www.google.com/ .
It will clear many doubts and very fast.

Eliezer




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


[squid-users] Squid is not worked in OpenVZ VPS.

2015-12-30 Thread zw963
Hi, I have two VPS in same location(HONG KONG)

the two VPS is blongs to two service provider, one OpenVZ, one XEN.

I choice with same version CentOS(6.7), and with same config script for
a FORWARD proxy to access free world.

XEN always worked for me, but OpenVZ is not.

following is some simple description:

I start squid with a https port(11223), and I can access squid server
from my local host with stunnel/telnet in both VPS.

But, only zhe XEN vps can forward my request to my destination host.

e.g.
I access www.google.com from my local browser, will see following logs:

>> 1451383747.833 19921 60.221.123.69 TCP_MISS/000 0 GET http://www.google.com/ 
>> - DIRECT/www.google.com -
>> 1451383819.941 61710 60.221.123.69 TCP_MISS/503 0 CONNECT 
>> www.vpsnine.com:443 - DIRECT/2400:cb00:2048:1::6819:341f -
>> ...


the second logs is so strange,  www.vpsnine.com is my OpenVZ VPS
provider domain name, I never access it from my local browser.
and not like another XEN VPS, those log output is very very slow.

Could you give me some clue for resolve this? Thanks.
-- 
Geek, Rubyist, Emacser
Homepage: http://zw963.github.io

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


Re: [squid-users] Squid is not worked in OpenVZ VPS.

2015-12-30 Thread Francesco Chemolli

> On 30 Dec 2015, at 11:39, Billy.Zheng(zw963)  wrote:
> 
> Hi, I have two VPS in same location(HONG KONG)
> 
> the two VPS is blongs to two service provider, one OpenVZ, one XEN.
> 
> I choice with same version CentOS(6.7), and with same config script for
> a FORWARD proxy to access free world.
> 
> XEN always worked for me, but OpenVZ is not.
> 

> the second logs is so strange,  www.vpsnine.com is my OpenVZ VPS
> provider domain name, I never access it from my local browser.
> and not like another XEN VPS, those log output is very very slow.
> 
> Could you give me some clue for resolve this? Thanks.

when you try accessing some destination with the proxy that is not working, 
what does the error page say?

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


Re: [squid-users] Squid is not worked in OpenVZ VPS.

2015-12-30 Thread zw963
Thanks for you reply.

The failed message is: `Connection to  failed',  is a IPV6
address somehow.

I found i just could't access part of website, not all.

so, I thought this is not Squid problem, maybe china GFW prevent this, 
I doubt OpenVZ provider's machine room exist some problem.

Thanks.

Francesco Chemolli writes:

>> On 30 Dec 2015, at 11:39, Billy.Zheng(zw963)  wrote:
>> 
>> Hi, I have two VPS in same location(HONG KONG)
>> 
>> the two VPS is blongs to two service provider, one OpenVZ, one XEN.
>> 
>> I choice with same version CentOS(6.7), and with same config script for
>> a FORWARD proxy to access free world.
>> 
>> XEN always worked for me, but OpenVZ is not.
>> 
>
>> the second logs is so strange,  www.vpsnine.com is my OpenVZ VPS
>> provider domain name, I never access it from my local browser.
>> and not like another XEN VPS, those log output is very very slow.
>> 
>> Could you give me some clue for resolve this? Thanks.
>
> when you try accessing some destination with the proxy that is not working, 
> what does the error page say?
>
>   Kinkie
> ___
> squid-users mailing list
> squid-users@lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users

-- 
Geek, Rubyist, Emacser
Homepage: http://zw963.github.io

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


Re: [squid-users] Squid is not worked in OpenVZ VPS.

2015-12-30 Thread Kinkie
Well, the IPv6 address could be telling. Maybe OpenVZ is setting up a
V6 network but has no route out of it.
Can you try accessing a known V4 and a known V6 address? It could help
you understand if the issue is there. In that case, you need to fix
the issue at the OpenVZ level.


On Wed, Dec 30, 2015 at 3:14 PM, Billy.Zheng  wrote:
> Thanks for you reply.
>
> The failed message is: `Connection to  failed',  is a IPV6
> address somehow.
>
> I found i just could't access part of website, not all.
>
> so, I thought this is not Squid problem, maybe china GFW prevent this,
> I doubt OpenVZ provider's machine room exist some problem.
>
> Thanks.
>
> Francesco Chemolli writes:
>
>>> On 30 Dec 2015, at 11:39, Billy.Zheng(zw963)  wrote:
>>>
>>> Hi, I have two VPS in same location(HONG KONG)
>>>
>>> the two VPS is blongs to two service provider, one OpenVZ, one XEN.
>>>
>>> I choice with same version CentOS(6.7), and with same config script for
>>> a FORWARD proxy to access free world.
>>>
>>> XEN always worked for me, but OpenVZ is not.
>>>
>>
>>> the second logs is so strange,  www.vpsnine.com is my OpenVZ VPS
>>> provider domain name, I never access it from my local browser.
>>> and not like another XEN VPS, those log output is very very slow.
>>>
>>> Could you give me some clue for resolve this? Thanks.
>>
>> when you try accessing some destination with the proxy that is not working, 
>> what does the error page say?
>>
>>   Kinkie
>> ___
>> squid-users mailing list
>> squid-users@lists.squid-cache.org
>> http://lists.squid-cache.org/listinfo/squid-users
>
> --
> Geek, Rubyist, Emacser
> Homepage: http://zw963.github.io
>



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