From: | "Linsong GUO" <comrade(dot)gls(at)gmail(dot)com> |
---|---|
To: | "Martijn van Oosterhout" <kleptog(at)svana(dot)org>, "Linsong GUO" <comrade(dot)gls(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: psql proxy |
Date: | 2008-05-16 11:34:56 |
Message-ID: | f13481620805160434m2320a26ch342cd654f75805f9@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
in the terminal I input psql -h localhost -U bob network
the problem is I do not know how to capture the user name and password
information in my proxy code.
after read function it is seems nothing in the buf
could you suggest some stand proxy example for me
thanks for your help
On Fri, May 16, 2008 at 6:23 PM, Martijn van Oosterhout <kleptog(at)svana(dot)org>
wrote:
> On Fri, May 16, 2008 at 01:53:30PM +1000, Linsong GUO wrote:
> > I want build a psql proxy which could deal with the connection request
> from
> > localhost to psql server which on other machine by type in psql -h
> localhost
> > -U bob network.
>
> Simple solution: use ssh tunneling
>
> Without any security: use netcat
>
> > what function should I use to capture these information in my proxy code.
> I
> > try to print the buf but there is nothing there after the read function.
>
> There's nothing special needed for psql, just using a standard network
> proxy will be fine.
>
> Have a nice day,
> --
> Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> > Please line up in a tree and maintain the heap invariant while
> > boarding. Thank you for flying nlogn airlines.
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFILUR2IB7bNG8LQkwRAsd7AJ9tZxwvb5ZYYQIj0uLUj7Bo1B2IiwCfdF/B
> KBXplgDjJXOCgw6lqJvZ2VI=
> =Zbvh
> -----END PGP SIGNATURE-----
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Albe Laurenz | 2008-05-16 11:46:44 | Re: SSL auth problem |
Previous Message | Toni Tortosa | 2008-05-16 11:25:52 | Pg_dump version mismatch |