How to tunnel local port through proxy server?

Posted by Joe Casadonte on Server Fault See other posts from Server Fault or by Joe Casadonte
Published on 2010-08-09T18:09:23Z Indexed on 2011/01/05 0:55 UTC
Read the original article Hit count: 162

Filed under:
|

I have a non-proxy-aware program that I need to get working through an HTTP proxy server. The program (MYPROG) running on a machine I can configure at will (MYSRV) connects to a specific server (DESTSRV) on a specific port (DESTPRT). There is an existing HTTP proxy server (PROXYSRV:PROXYPRT) that will allow the traffic through if MYPROG was proxy-aware, but it isn't.

Is there a way to listen locally on a specific port and forward the traffic through the proxy server? I can totally configure where MYPROG points to, so I could point it to MYSRV:4545 with the thought that some wonder program will redirect the data to DESTSRV:DESTPRT through PROXYSRV:PROXYPRT. I'm thinking IP Tables or netcat could do the trick if only I could figure them out...

Thanks!

© Server Fault or respective owner

Related posts about proxy

Related posts about http-proxy