in reply to Connecting to PostgreSQL with SSL using DBD::Pg
in thread Port Forwarding with Net::SSH::Perl?

Actually now that I thought about the situation more. It would be possible for me to use SSL for my postgres database and force any connection to it to be SSL.

In my particular situation I could not require the same of my DB2 database. I have other applications (that don't know how to use SSL and can't be changed) that require the ability to access the DB2 database.

I need my application to be able to access both of these. I am fairly familiar with DBI and with basic Perl programming, I however have little experience with Perl network programming.

Could I possibly use IO::Socket to collect the data that comes in on my local machine on port 3333 then use the Net::SSH::Perl::Packet to send the information across the SSH connection? I am a bit confused on how I could specify the remote port in which to forward the data to.

I'm not sure if I'm looking in the right direction for this or not, or if it is even possible at this point with this particular module.I think I need to grab me a Perl networking book....

Please keep any input coming.. I'm diggin for ideas
  • Comment on Re: Connecting to PostgreSQL with SSL using DBD::Pg