From: Bruce Momjian <bruce@momjian.us>
To: Angel Dabov <onzi@ustrem.org>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6102: JDBC BIND Source IP Address
Date: Tue, 12 Jul 2011 17:50:54 -0400 (EDT)
Message-ID: <201107122150.p6CLosh14383@momjian.us> (raw)
In-Reply-To: <201107081509.p68F9ZrP035079@wwwmaster.postgresql.org>
Angel Dabov wrote:
>
> The following bug has been logged online:
>
> Bug reference: 6102
> Logged by: Angel Dabov
> Email address: onzi@ustrem.org
> PostgreSQL version: JDBC 8.3
> Operating system: Windows
> Description: JDBC BIND Source IP Address
> Details:
>
> Hi,
>
> We have Tomcat Windows server with five applications which listen on
> different IP addresses. Every application connects Postgres DB on different
> server. These IP addresses are aliases on one NIC in same subnet.
> The problem:
> Every connection to the DB from JDBC driver bind different IP for source
> address. We have firewall before DBs and need to use specific source ip
> address for every application.
> Is there any chance to fix in PGstream.java
> socket(host, port) with socket(host, port, sourceaddress, null) and give us
> prop to set sourceaddress?
I think you should ask this on the PG jdbc email list:
http://archives.postgresql.org/pgsql-jdbc/
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ It's impossible for everything to be true. +
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-bugs@postgresql.org
Cc: bruce@momjian.us, onzi@ustrem.org
Subject: Re: BUG #6102: JDBC BIND Source IP Address
In-Reply-To: <201107122150.p6CLosh14383@momjian.us>
References: <201107081509.p68F9ZrP035079@wwwmaster.postgresql.org> <201107122150.p6CLosh14383@momjian.us>
* 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