User Tools

Site Tools


сервис_stunnel

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
сервис_stunnel [2014/02/20 17:30]
val создано
сервис_stunnel [2022/02/16 10:33] (current)
val [Debian/Ubuntu Server]
Line 1: Line 1:
 ====== Сервис stunnel ====== ====== Сервис stunnel ======
  
-===== Ubuntu =====+  * [[https://​gist.github.com/​enricmcalvo/​6151178|RDP SSL tunneling with stunnel]] - надо попробовать 
 + 
 +===== Debian/Ubuntu ​Server ​=====
 <​code>​ <​code>​
-cat /​etc/​default/​stunnel4 +apt install ​stunnel4
-... +
-ENABLED=1 +
-...+
  
-# cat privkey.pem cacert.pem >> /​etc/​stunnel/​stunnel.pem+# systemctl enable stunnel4.service 
 +</​code>​ 
 + 
 +  * [[Пакет OpenSSL#​Создание самоподписанного сертификата]] 
 + 
 +<​code>​ 
 +# cat proxy.key proxy.crt > /​etc/​stunnel/​proxy.keycrt
  
 # cat /​etc/​stunnel/​stunnel.conf # cat /​etc/​stunnel/​stunnel.conf
-cert = /​etc/​stunnel/​stunnel.pem+</​code><​code>​ 
 +output = /​stunnel.log ​ # need correct logrotate conf 
 + 
 +cert = /​etc/​stunnel/​proxy.keycrt
 chroot = /​var/​lib/​stunnel4/​ chroot = /​var/​lib/​stunnel4/​
 setuid = stunnel4 setuid = stunnel4
Line 20: Line 28:
 accept = 8080 accept = 8080
 connect = 127.0.0.1:​3128 connect = 127.0.0.1:​3128
 +</​code>​
 +
 +===== Client (Windows/​Linux) =====
 +
 +  * [[https://​www.stunnel.org/​downloads.html]]
 +
 +<​code>​
 +debian:~# cat /​etc/​stunnel/​stunnel.conf
 +
 +admin notepad++ Open    C:\Program Files (x86)\stunnel\stunnel.conf
 +</​code><​code>​
 +[proxy]
 +client = yes
 +accept = 127.0.0.1:​3128
 +connect = proxy.corpX.un:​8080
 </​code>​ </​code>​
сервис_stunnel.1392903036.txt.gz · Last modified: 2014/02/20 17:30 by val