Hi Ludolf,
Thanks for your reply.
in your picture above, I don't understand who is supposed to establish the connection (i.e. who is to act as a client) and who is supposed to wait for connections (i.e. who is to act as a server).
There are 2 clients (left and right side) and the middle is the server
[host1] ------------- [host2] ------------ [host3] [stunnel client] ---> [stunnel server] <-- [stunnel client] [telnet client] ----> [tunnelserver] ----> [telnet server]
These arrows are on my original pictures.
The server has 2 instances of stunnel and I'd like to connect them somehow.
/Maybe/ you are thinking of running the stunnel instance in server mode on a different host than the telnet server:
No, I do not think it.
Kind regards, Gabor
________________________________________ From: stunnel-users [stunnel-users-bounces@stunnel.org] on behalf of Ludolf Holzheid [lholzheid@bihl-wiedemann.de] Sent: Thursday, March 31, 2016 11:19 AM To: stunnel-users@stunnel.org Subject: Re: [stunnel-users] Connecting stunnels
On Thu, 2016-03-31 06:16:24 +0000, Juhasz Gabor wrote:
Hi Ludolf,
Thanks for you reply.
Sorry, my first explanation was a bit fuzzy.
I modofied your picture a bit to explain what I want :
stunnel client stunnel server stunnel client +---------------+ +------------------+ +---------------+ | | | | | | | telnet client | | 5.6.7.8:993 <======== 4.5.6.7:y | | 127.0.0.1:x | | stunnel | | stunnel | | : | | 127.0.0.1:q | | 127.0.0.1:p | | : | | : | | : | | V | | : | | : | | 127.0.0.1:23 | | 127.0.0.1:z | | V | | stunnel | | stunnel | | 127.0.0.1:23 | | 1.2.3.4:y ===============> 5.6.7.8:992 | | telnetserver | | | | | | | +---------------+ +------------------+ +---------------+
Hi Gabor,
in your picture above, I don't understand who is supposed to establish the connection (i.e. who is to act as a client) and who is supposed to wait for connections (i.e. who is to act as a server).
An IP connection is similar to a telephone connection. The caller (acting as the client) is supposed to dial the number of the callee's phone and the callee (acting as the server) is supposed to sit next to this very phone, waiting for incoming connections.
In my picture, I tried to depict this by giving the connections 'a direction': The unit at the arrow head is the server, the unit at the arrow tail is the client.
/Maybe/ you are thinking of running the stunnel instance in server mode on a different host than the telnet server:
telnet client's host intermediate host telnet server's host +---------------+ +------------------+ +----------------+ | | | | | | | telnet client | | | | | | 127.0.0.1:x | | | | | | : | | | | | | : | | | | | | V | | | | | | 127.0.0.1:23 | | 5.6.7.8:z ............> 4.5.6.7:23 | | stunnel | | stunnel | | telnet | | 1.2.3.4:y ===============> 5.6.7.8:992 | | server | | | | | | | +---------------+ +------------------+ +----------------+
This is essentially the same as my first picture except for the 'connect' statement in the configuration file of the stunnel in server mode.
Ludolf
--
Ludolf Holzheid
Bihl+Wiedemann GmbH Floßwörthstraße 41 68199 Mannheim, Germany
Tel: +49 621 33996-0 Fax: +49 621 3392239
mailto:lholzheid@bihl-wiedemann.de http://www.bihl-wiedemann.de
Sitz der Gesellschaft: Mannheim Geschäftsführer: Jochen Bihl, Bernhard Wiedemann Amtsgericht Mannheim, HRB 5796 _______________________________________________ stunnel-users mailing list stunnel-users@stunnel.org https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users