====== Сервис stunnel ====== * [[https://gist.github.com/enricmcalvo/6151178|RDP SSL tunneling with stunnel]] - надо попробовать ===== Debian/Ubuntu Server ===== # apt install stunnel4 # systemctl enable stunnel4.service * [[Пакет OpenSSL#Создание самоподписанного сертификата]] # cat proxy.key proxy.crt > /etc/stunnel/proxy.keycrt # cat /etc/stunnel/stunnel.conf output = /stunnel.log # need correct logrotate conf cert = /etc/stunnel/proxy.keycrt chroot = /var/lib/stunnel4/ setuid = stunnel4 setgid = stunnel4 pid = /stunnel4.pid [squid] accept = 8080 connect = 127.0.0.1:3128 ===== Client (Windows/Linux) ===== * [[https://www.stunnel.org/downloads.html]] debian:~# cat /etc/stunnel/stunnel.conf admin notepad++ Open C:\Program Files (x86)\stunnel\stunnel.conf [proxy] client = yes accept = 127.0.0.1:3128 connect = proxy.corpX.un:8080