Re: Is it possible for a http frontend using a tcp backend?

2020-08-27 Thread Willy Tarreau
On Thu, Aug 27, 2020 at 09:19:24PM +0800, Hongyi Zhao wrote:
> On Thu, Aug 27, 2020 at 9:51 AM Willy Tarreau  wrote:
> >
> > Hi,
> >
> > On Mon, Aug 17, 2020 at 10:09:36PM +0800, Hongyi Zhao wrote:
> > > Hi,
> > >
> > > Is it possible for the following settings in haproxy:
> > >
> > > A http frontend listening on the localhost:18887 which uses a backend
> > > consisting of several remote socks5 servers?
> >
> > Not exactly, however you can use a socks4 encapsulation when reaching a
> > server. That doesn't change the http mode on the backend, it just inserts
> > a socks4 "header" on the connection to the server.
> 
> Are there examples/tutorials for this case?

I think that if you look for "socks4" in the configuration manual you'll
find at least one place indicating the syntax to use on the server line.
>From memory, it should just be one word on the server line to enable this
encapsulation.

Willy



Re: Is it possible for a http frontend using a tcp backend?

2020-08-27 Thread Hongyi Zhao
On Thu, Aug 27, 2020 at 9:51 AM Willy Tarreau  wrote:
>
> Hi,
>
> On Mon, Aug 17, 2020 at 10:09:36PM +0800, Hongyi Zhao wrote:
> > Hi,
> >
> > Is it possible for the following settings in haproxy:
> >
> > A http frontend listening on the localhost:18887 which uses a backend
> > consisting of several remote socks5 servers?
>
> Not exactly, however you can use a socks4 encapsulation when reaching a
> server. That doesn't change the http mode on the backend, it just inserts
> a socks4 "header" on the connection to the server.

Are there examples/tutorials for this case?

> We don't support socks5
> however, I seem to remember that it requires more than just a prefix in
> each direction.
>
> Hoping this helps,
> Willy



-- 
Hongyi Zhao 



Re: Is it possible for a http frontend using a tcp backend?

2020-08-26 Thread Willy Tarreau
Hi,

On Mon, Aug 17, 2020 at 10:09:36PM +0800, Hongyi Zhao wrote:
> Hi,
> 
> Is it possible for the following settings in haproxy:
> 
> A http frontend listening on the localhost:18887 which uses a backend
> consisting of several remote socks5 servers?

Not exactly, however you can use a socks4 encapsulation when reaching a
server. That doesn't change the http mode on the backend, it just inserts
a socks4 "header" on the connection to the server. We don't support socks5
however, I seem to remember that it requires more than just a prefix in
each direction.

Hoping this helps,
Willy



Is it possible for a http frontend using a tcp backend?

2020-08-17 Thread Hongyi Zhao
Hi,

Is it possible for the following settings in haproxy:

A http frontend listening on the localhost:18887 which uses a backend
consisting of several remote socks5 servers?

Regards
-- 
Hongyi Zhao