Downgrade mit stunnel: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
 
(10 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
 
=Installation=
 
=Installation=
 
*apt install stunnel
 
*apt install stunnel
−
=Konfiguration=
+
=Vorbereitung=
−
*FQDN="www.xinux.de"
 
 
*cd /etc/stunnel
 
*cd /etc/stunnel
−
*cat<<HERE >stunnel.conf
 
  
 +
=Konfiguration=
 +
*vi imap.conf
 
<pre>
 
<pre>
 
debug = 7
 
debug = 7
 +
foreground = yes
 
options = NO_SSLv2
 
options = NO_SSLv2
 
output = /var/log/stunnel.log
 
output = /var/log/stunnel.log
Zeile 13: Zeile 14:
 
[to-server]
 
[to-server]
 
client = yes
 
client = yes
−
accept = 127.0.0.1:80
+
accept = 0.0.0.0:143
−
connect = $FQDN:443
+
connect = mail.xinmen.de:993
 
CAPath = /etc/ssl/certs/
 
CAPath = /etc/ssl/certs/
 
verify = 2
 
verify = 2
 +
</pre>
  
−
[from-client]
+
=Restart=
−
accept  = 0.0.0.0:443
+
* systemctl restart  stunnel@imap.service
−
connect = 127.0.0.1:80
 
−
cert = /etc/stunnel/$FQDN.crt
 
−
key = /etc/stunnel/$FQDN.key
 
−
CAfile = /etc/stunnel/ca.crt
 
−
</pre>
 
−
*HERE
 

Aktuelle Version vom 24. Juni 2026, 06:43 Uhr

Installation

  • apt install stunnel

Vorbereitung

  • cd /etc/stunnel

Konfiguration

  • vi imap.conf
debug = 7
foreground = yes
options = NO_SSLv2
output = /var/log/stunnel.log

[to-server]
client = yes
accept = 0.0.0.0:143
connect = mail.xinmen.de:993
CAPath = /etc/ssl/certs/
verify = 2

Restart

  • systemctl restart stunnel@imap.service