Re: Health check for backend constituted with multiple socks proxies.

2015-04-06 Thread Hongyi Zhao
On Fri, 03 Apr 2015 11:10:31 +0200, Baptiste wrote:

> I mean what happens if you point your browser directly to one of the Ip
> address?
> Cause, what you're doing with your HAProxy configuration currently, is
> only forwarding the TCP connection from a browser client to a socks5
> server.
> If your browser client don't know how to speak to the socks5 server,
> HAProxy won't do it on behalf of it.
> So please confirm first the browser can use any of the listed IP without
> using HAProxy.

Because these all are * free * socks5 proxy servers found on the 
internet, the stability cann't be ensured.  Some of them can be used to 
let my browser directly access the internet, some may not; or if do the 
test in different time, the one cann't becomes good, and vice versa.  
Based on the above fact, I want to use all of them in one group of the 
backend of haproxy to get the redundancy and the loadbalance capability.  
The only issue for my case it that I want let haproxy to determine the 
correspoing server are up or down at the specific port and then direct me 
the up ones at the testing time done by haproxy.

Regards  

> 
> Then we'll dig into your issue...
> 
> Baptiste





-- 
.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.




Re: Health check for backend constituted with multiple socks proxies.

2015-04-03 Thread Baptiste
I mean what happens if you point your browser directly to one of the Ip address?
Cause, what you're doing with your HAProxy configuration currently, is
only forwarding the TCP connection from a browser client to a socks5
server.
If your browser client don't know how to speak to the socks5 server,
HAProxy won't do it on behalf of it.
So please confirm first the browser can use any of the listed IP
without using HAProxy.

Then we'll dig into your issue...

Baptiste


On Fri, Apr 3, 2015 at 2:05 AM, Hongyi Zhao  wrote:
> On Thu, 02 Apr 2015 15:04:09 +0200, Baptiste wrote:
>
>> Hi Hongyi,
>>
>> What happens if you brows directly one of the IP address???
>
> These are socks5 proxies servers address, not websites.
>
> What do you mean by saying that 'brows directly one of the IP address'
> for my case?
>
> Regards
>>
>> Baptiste
>
>
>
>
>
> --
> .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.
>
>



Re: Health check for backend constituted with multiple socks proxies.

2015-04-02 Thread Hongyi Zhao
On Thu, 02 Apr 2015 15:04:09 +0200, Baptiste wrote:

> Hi Hongyi,
> 
> What happens if you brows directly one of the IP address???

These are socks5 proxies servers address, not websites.

What do you mean by saying that 'brows directly one of the IP address' 
for my case?

Regards
> 
> Baptiste





-- 
.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.




Re: Health check for backend constituted with multiple socks proxies.

2015-04-02 Thread Baptiste
On Thu, Apr 2, 2015 at 2:27 PM, Hongyi Zhao  wrote:
> Hi all,
>
> My haproxy.cfg is as follows:
>
> -
> global
> maxconn 4096
> daemon
> nbproc 3
> defaults
>  mode tcp
>  timeout connect 5000ms
>  timeout client 5ms
>  timeout server 5ms
> frontend socks5
> bind0.0.0.0:
> default_backend socks5-balance
> backend socks5-balance
> balance roundrobin
>
> server socks5-1 104.220.35.112:48178 check
> server socks5-2 104.236.196.208:1234 check
> server socks5-3 113.61.111.196:60088 check
> server socks5-4 114.94.131.120:8118 check
> server socks5-5 115.119.233.36:2235 check
> server socks5-6 115.29.49.52: check
> server socks5-7 117.247.65.204:1080 check
> server socks5-8 118.26.201.224:1080 check
> server socks5-9 118.26.228.8:1080 check
> ...
> server socks5-3194.23.80.193:60088 check
> server socks5-3295.163.65.88:49389 check
> -
>
> I found that the the health-check results given by haproxy are not
> consistent with the real statues/availabilities of these servers listed
> in the backend section.
>
> For example, when I use the -db mode to see the message on stdout, I can
> found that even haproxy reported there are serveral backend servers are
> available, I still cann't use 127.0.0.1: as proxy to access websites/
> urls.
>
> Any hints on how to let haproxy give a more precise/reliable/correctness
> health-check for this case?
>
> Thanks in advance.
>
> Regards
> --
> .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.
>

Hi Hongyi,

What happens if you brows directly one of the IP address???

Baptiste



Health check for backend constituted with multiple socks proxies.

2015-04-02 Thread Hongyi Zhao
Hi all,

My haproxy.cfg is as follows:

-
global
maxconn 4096
daemon 
nbproc 3
defaults
 mode tcp   
 timeout connect 5000ms 
 timeout client 5ms
 timeout server 5ms 
frontend socks5
bind0.0.0.0:
default_backend socks5-balance
backend socks5-balance
balance roundrobin 

server socks5-1 104.220.35.112:48178 check
server socks5-2 104.236.196.208:1234 check
server socks5-3 113.61.111.196:60088 check
server socks5-4 114.94.131.120:8118 check
server socks5-5 115.119.233.36:2235 check
server socks5-6 115.29.49.52: check
server socks5-7 117.247.65.204:1080 check
server socks5-8 118.26.201.224:1080 check
server socks5-9 118.26.228.8:1080 check
...
server socks5-3194.23.80.193:60088 check
server socks5-3295.163.65.88:49389 check
-

I found that the the health-check results given by haproxy are not 
consistent with the real statues/availabilities of these servers listed 
in the backend section.

For example, when I use the -db mode to see the message on stdout, I can 
found that even haproxy reported there are serveral backend servers are 
available, I still cann't use 127.0.0.1: as proxy to access websites/
urls.

Any hints on how to let haproxy give a more precise/reliable/correctness 
health-check for this case? 

Thanks in advance.

Regards
-- 
.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.