Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Redirect TCP MySQL connection to proxy

I have a Delphi application which connects to a MySQL published database on Internet with address like mysql01.example.com:3306.

However, my client computer is behind a proxy and I just can connect if I pass by the proxy. I use the ZeosLib to connect and it doesn't have proxy authentication.

Is it possible to forward connection to the proxy using some kind of proxy forward program? Is there another possibility to solve this problem?

Thanks a lot.

like image 921
André Scaravelli Avatar asked Oct 07 '22 12:10

André Scaravelli


1 Answers

Synapse framework has a socks proxy implementation.

Or you can make it yourself (quite easy, since socks protocol is really simple, even version 5). See:

  • SOCKS 4 SPECS
  • SOCKS 5 RFC
  • SOCKS 5 user/pass auth
  • SOCKS 5 GSS-API auth
  • Synapse blcksock code
like image 152
NotGaeL Avatar answered Oct 10 '22 02:10

NotGaeL