Stunnel from the Source: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „*apt install libssl-dev *wget https://www.stunnel.org/downloads/stunnel-5.55.tar.gz *tar -xvzf stunnel-5.55.tar.gz *cd stunnel-5.55/ *./configure *make *make…“)
 
 
(3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
 +
=download, compile and install=
 
*apt install libssl-dev
 
*apt install libssl-dev
 
*wget https://www.stunnel.org/downloads/stunnel-5.55.tar.gz
 
*wget https://www.stunnel.org/downloads/stunnel-5.55.tar.gz
Zeile 6: Zeile 7:
 
*make
 
*make
 
*make install
 
*make install
 +
=configure=
 +
*cat /usr/local/etc/stunnel/stunnel.conf
 +
<pre>
 +
debug = 7
 +
output = /var/log/stunnel.log
 +
pid = /var/run/stunnel4/stunnel.pid
 +
[https]
 +
accept = 443
 +
connect = 10.80.100.10:80
 +
cert = /etc/stunnel/example.pem
 +
</pre>
 +
 +
=systemd=
 +
*cp /usr/src/stunnel-5.55/tools/stunnel.service /etc/systemd/system
 +
*cat /etc/systemd/system/stunnel.service
 +
<pre>
 +
[Unit]
 +
Description=TLS tunnel for network daemons
 +
After=syslog.target network.target
 +
 +
[Service]
 +
ExecStart=/usr/local/bin/stunnel
 +
Type=forking
 +
 +
[Install]
 +
WantedBy=multi-user.target
 +
</pre>
 +
*systemctl daemon-reload
 +
*systemctl start stunnel
 +
*systemctl enable stunnel

Aktuelle Version vom 2. September 2019, 11:12 Uhr

download, compile and install

configure

  • cat /usr/local/etc/stunnel/stunnel.conf
debug = 7
output = /var/log/stunnel.log
pid = /var/run/stunnel4/stunnel.pid
[https]
accept = 443
connect = 10.80.100.10:80
cert = /etc/stunnel/example.pem

systemd

  • cp /usr/src/stunnel-5.55/tools/stunnel.service /etc/systemd/system
  • cat /etc/systemd/system/stunnel.service
[Unit]
Description=TLS tunnel for network daemons
After=syslog.target network.target

[Service]
ExecStart=/usr/local/bin/stunnel
Type=forking

[Install]
WantedBy=multi-user.target
  • systemctl daemon-reload
  • systemctl start stunnel
  • systemctl enable stunnel