Stunnel from the Source: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 8: Zeile 8:
*make install
*make install
=configure=
=configure=
*mkdir /etc/stunnel
*cat /usr/local/etc/stunnel/stunnel.conf  
*cat stunnel.conf  
<pre>
<pre>
debug = 7
debug = 7
Zeile 19: Zeile 18:
cert = /etc/stunnel/example.pem
cert = /etc/stunnel/example.pem
</pre>
</pre>
=systemd=
=systemd=
*cp /usr/src/stunnel-5.55/tools/stunnel.service /etc/systemd/system
*cp /usr/src/stunnel-5.55/tools/stunnel.service /etc/systemd/system

Version vom 2. September 2019, 11:11 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