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

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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.