One machine - server AND client with STunnel

I know that STunnel can be configured as a server or client with the lines "client = no" or "client = yes" in the configuration file. Is there a way for the machine to be BOTH server and client?

+3
source share
3 answers

You can specify the path to the configuration file on the command line, see stunnel(8).

+1
source

This is much simpler, you can just you just need to set client = no under [] (service), where stunnel works as a server and client = yes otherwise. You must also specify special service settings, such as the certificates in which they belong.

Sort of:

[server1]
..
client=no

[client1]
..
client=yes
0
source

/etc/stunnel/README,

", /etc/stunnel, .conf, stunnel4 , , ..."

I assume that you can store 2 separate configuration files: one for the server and the other for the client. Then you will have 2 demons. Examples of configuration files can be found in the file/usr/share/doc/stunnel4/examples/stunnel.conf-sample

0
source

Source: https://habr.com/ru/post/1790247/


All Articles