jaw
jaw

Reputation: 1032

Reverse Proxy: How to relay (encrypted) SSL traffic to a (decrypted) TCP connection?

my problem is as follows:

I currently have the following network layout:

Embedded Client <-> TCP <-> Server:PortA

On top of TCP, there is a proprietary binary protocol. We want to add secure transmission with least effort. So we will modify the client to use SSL on top of TCP. However, we want to keep the server untouched, if possible. So the idea is, to use a proxy that achieves the following:

Embedded Client <-> SSL <-> Proxy:PortB <-> TCP <-> Server:PortA

The proxy will have the necessary SSL certificate. The question is, is there any software that allows this type of reverse-proxying that has nothing to do with HTTP? I know there are some proxies like mod_proxy, Squid or NginX, but as far as I know the only support HTTP or a few well defined other protocols.

Upvotes: 1

Views: 851

Answers (1)

Steve
Steve

Reputation: 1243

It sounds like stunnel is exactly what you want.

Upvotes: 3

Related Questions