Сервис stunnel
Debian/Ubuntu Server
# apt install stunnel4
# systemctl enable stunnel4.service
# 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)
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