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
сервис_stunnel [2014/04/01 15:24]
val [Ubuntu]
сервис_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>​
-# apt-get install stunnel4+# apt install stunnel4
  
-cat /​etc/​default/​stunnel4 +systemctl enable ​stunnel4.service 
-</code><​code> +</​code>​ 
-... + 
-ENABLED=1 +  * [[Пакет OpenSSL#​Создание самоподписанного сертификата]] 
-... + 
-</​code>​<​code>​ +<​code>​ 
-# cat proxy.key proxy.crt ​>> /​etc/​stunnel/​proxy.keycrt+# cat proxy.key proxy.crt > /​etc/​stunnel/​proxy.keycrt
  
 # cat /​etc/​stunnel/​stunnel.conf # cat /​etc/​stunnel/​stunnel.conf
 </​code><​code>​ </​code><​code>​
 +output = /​stunnel.log ​ # need correct logrotate conf
 +
 cert = /​etc/​stunnel/​proxy.keycrt cert = /​etc/​stunnel/​proxy.keycrt
 chroot = /​var/​lib/​stunnel4/​ chroot = /​var/​lib/​stunnel4/​
Line 24: 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.1396351488.txt.gz · Last modified: 2014/04/01 15:24 by val