User Tools

Site Tools


сервис_stunnel

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
сервис_stunnel [2014/02/20 17:30]
val [Ubuntu]
сервис_stunnel [2021/10/08 19:22]
val [Сервис stunnel]
Line 1: Line 1:
 ====== Сервис stunnel ====== ====== Сервис stunnel ======
  
-===== Ubuntu =====+  * [[https://​gist.github.com/​enricmcalvo/​6151178|RDP SSL tunneling with stunnel]] - надо попробовать 
 + 
 +===== Debian/Ubuntu ​Server ​=====
 <​code>​ <​code>​
-# apt-get install stunnel4+# apt install stunnel4
  
-cat /​etc/​default/​stunnel4 +systemctl enable ​stunnel4.service 
-..+</​code>​
-ENABLED=1 +
-...+
  
-# cat privkey.pem cacert.pem >> /​etc/​stunnel/​stunnel.pem+  * [[Пакет 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>​ 
 +cert = /​etc/​stunnel/​proxy.keycrt
 chroot = /​var/​lib/​stunnel4/​ chroot = /​var/​lib/​stunnel4/​
 setuid = stunnel4 setuid = stunnel4
Line 22: Line 26:
 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.txt · Last modified: 2022/02/16 10:33 by val