Re: Java proxies connection to postgres - Mailing list pgsql-jdbc

From Matthew Wakeling
Subject Re: Java proxies connection to postgres
Date
Msg-id alpine.DEB.2.00.1008091354510.2654@aragorn.flymine.org
Whole thread Raw
In response to Re: Java proxies connection to postgres  ("Donald Fraser" <postgres@kiwi-fraser.net>)
List 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!  *****

pgsql-jdbc by date:

Previous
From: "Donald Fraser"
Date:
Subject: Re: Java proxies connection to postgres
Next
From: "Donald Fraser"
Date:
Subject: Re: Java proxies connection to postgres