From: Donald Fraser <postgres@kiwi-fraser.net>
To: [JDBC] <pgsql-jdbc@postgresql.org>
Subject: Re: Java proxies connection to postgres
Date: Mon, 9 Aug 2010 12:47:18 +0100
Message-ID: <7BF0F1662EE14F6FA6F3C8EFE951A69F@DEVELOP1> (raw)
References: <AANLkTimPbHhimxz48Yva7apqBaTFH=DvDww-3gb1pc2h@mail.gmail.com>
<4C5EB971.7000403@postnewspapers.com.au>
<AANLkTi=xL6TOwZ2RbZhp0Fj8xfL8jZqmGpd58e_rjJOd@mail.gmail.com>
<AANLkTimWGZAAKzcTP=DYkYyqJ+6QQcvokmvuCn1o_-Ke@mail.gmail.com>
Please look at the attached source taken from a patched version of the 7.4
driver, which is a little out of date with respect to the latest drivers.
However it gives you the idea of what you need to do in order to modify one
of the latest drivers.
The main problem with all HTTP style proxies is that you can only specify
ports 80, 443 and sometimes 8080 and or 8000.
I've spent a lot of time with proxies and to get a reliable connection you
need to use SSL on port 443.
This means you must redirect incomming requests, on the firewall that serves
requests to your PostgreSQL server, from port 443 to port 5432. Which also
means that you cannot have a secure web-server on the same IP address as
your PostgreSQL server!
Regards
Donald Fraser
Attachments:
PGStream.java (application/octet-stream, 14.2K) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: postgres@kiwi-fraser.net
Subject: Re: Java proxies connection to postgres
In-Reply-To: <7BF0F1662EE14F6FA6F3C8EFE951A69F@DEVELOP1>
References: <AANLkTimPbHhimxz48Yva7apqBaTFH=DvDww-3gb1pc2h@mail.gmail.com> <4C5EB971.7000403@postnewspapers.com.au> <AANLkTi=xL6TOwZ2RbZhp0Fj8xfL8jZqmGpd58e_rjJOd@mail.gmail.com> <AANLkTimWGZAAKzcTP=DYkYyqJ+6QQcvokmvuCn1o_-Ke@mail.gmail.com> <7BF0F1662EE14F6FA6F3C8EFE951A69F@DEVELOP1>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox