Java proxies connection to postgres

From: - <grandebuzon(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Java proxies connection to postgres
Date: 2010-08-08 09:24:28
Message-ID: AANLkTimPbHhimxz48Yva7apqBaTFH=DvDww-3gb1pc2h@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Could someone help me or suggest a solution? I want to connect from a
computer that has firewall to other where the postgres server run. The
problem is that computer (client) has a firewall and I have not access to
configure it, or open ports, ping does not respond. The computer (server)
where PostgreSQL has open ports but I can not connect to it from another
because of firewall. I can only access the computer through proxy.
How I could with Java programming access remotely through proxy to postgres
forgetting firewall?
Java has a connection with proxies. But I dont now how put together with
postgres connection.
Thank you all.
the same text in Spanish, sorry for bad English

Me podría ayudar alquien o sugerir la solución? Yo quiero conectarse desde
ordenador que tiene firewall a servidor donde esta postgres. El problema
esta que ordenador (cliente) tiene firewall y yo no tengo acceso para
configurar a el, o abrir puertos, ping no contesta. El ordenador (servidor)
donde esta postgre tiene abiertos puertos pero no puedo conectarme a el
desde otro por causa de firewall. Solo puedo acceder a ordenador a través de
proxy.
Como podría programando con Java acceder remotamente a través de proxy a
postgres pasando el firewall?
Java tiene conexión con proxys. Pero no se como juntar con conexión a
postgres.
Gracias a todos.

System.getProperties().put( "proxySet", "true" );
System.getProperties().put( "proxyHost", "67.210.82.198" );
System.getProperties().put( "proxyPort", "80" );

URL validateURL = new URL("http://domain.com");
URLConnection urlConnection = validateURL.openConnection();

//how put together ???

Class.forName("org.postgresql.Driver");
Connection connection =
DriverManager.getConnection("jdbc:postgresql://ipPublica:5432/DataBase","user",
"pass");

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Craig Ringer 2010-08-08 14:04:33 Re: Java proxies connection to postgres
Previous Message Craig Ringer 2010-08-08 05:43:53 Re: one more question about LISTEN / NOTIFY