Does Stunnel support non-encrypt connection?
Asked Answered
K

1

6

1 question about Stunnel. I would like to use Stunnel as a FIX (Financial Information eXchange) gateway for internet, to support both SSL and non-SSL connection. Is Stunnel able to do without any encryption? I just had a try with plain socket but it looked Stunnel rejected the connection saying 'invalid protocol' or something.

Kwangtung answered 31/8, 2012 at 10:27 Comment(3)
What exactly are you trying to achieve with a non-encrypted Stunnel? Are you after using SSL/TLS without encryption or are you after a simple TCP relay of some sort?Potluck
Hi Bruno, what I want to do is just to run it as a gateway, route the incoming TCP msg to aonther ip/port.Kwangtung
I've just voted to move this to SuperUser, since this isn't really a programming-related question.Potluck
P
3

It's possible to use SSL/TLS without encryption using cipher suites with null encryption (e.g. TLS_RSA_WITH_NULL_SHA), which are normally disabled by default, but could be set via the ciphers option of Stunnel. However, you would still be using SSL/TLS, which isn't what you seem to be looking for.

It looks like you're more generally looking for what's usually called a TCP bouncer. You should be able to find a number of implementations around.

Potluck answered 3/9, 2012 at 7:39 Comment(2)
Bruno, could you please recommend a solution of 'TCP bouncer'? I searched a lot, it looks few result with it.Kwangtung
Not sure, it depends on your environment. There are multiple forms of "TCP bouncing": it can be done via a router similarly to "reverse NAT" solutions (e.g. via ipchains), via independent applications, or via SSH (which would also secure the section of the connection that's using SSH).Potluck

© 2022 - 2024 — McMap. All rights reserved.