Re: Java proxies connection to postgres

From: Matthew Wakeling <matthew(at)flymine(dot)org>
To: Donald Fraser <postgres(at)kiwi-fraser(dot)net>
Cc: "[JDBC]" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Java proxies connection to postgres
Date: 2010-08-09 12:58:01
Message-ID: alpine.DEB.2.00.1008091354510.2654@aragorn.flymine.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Mon, 9 Aug 2010, Donald Fraser wrote:
> We have 30+ clients all using HTTP proxies to connect to our database. It
> works be cause as previously stated you must use SSL. That is, as soon as you
> specify the target port to be 443, the proxy has to let the packets pass
> through un touched otherwise SSL handshake will not work. We haven't found a
> HTTP proxy that doesn't work with this technique.

The proxies pass the data through to where? How does the proxy know where
to forward the data on to unless it can inspect the headers of the
request?

No, if you are using a general HTTP proxy for an outgoing connection, the
client software needs to be proxy aware, enough to tell the proxy which
server it wants to connect to. This is done using the CONNECT command. SSL
handshake occurs after that with the target server once that connection is
set up.

Matthew

--
***** Support feudalism - Your Count Votes! *****

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Donald Fraser 2010-08-09 15:20:46 Re: Java proxies connection to postgres
Previous Message Donald Fraser 2010-08-09 12:49:49 Re: Java proxies connection to postgres