This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
сервис_stunnel [2014/02/21 13:15] val [Ubuntu] |
сервис_stunnel [2021/10/08 12:40] val |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Сервис stunnel ====== | ====== Сервис stunnel ====== | ||
- | ===== Ubuntu ===== | + | * [[https://gist.github.com/jpbalivet/5734563|RDP SSL tunneling with stunnel]] |
+ | ===== 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.corpX.un.key proxy.corpX.un.crt >> /etc/stunnel/proxy.corpX.un.keycrt | + | # cat proxy.key proxy.crt > /etc/stunnel/proxy.keycrt |
# cat /etc/stunnel/stunnel.conf | # cat /etc/stunnel/stunnel.conf | ||
</code><code> | </code><code> | ||
- | cert = /etc/stunnel/proxy.corpX.un.keycrt | + | cert = /etc/stunnel/proxy.keycrt |
chroot = /var/lib/stunnel4/ | chroot = /var/lib/stunnel4/ | ||
setuid = stunnel4 | setuid = stunnel4 | ||
Line 24: | Line 25: | ||
accept = 8080 | accept = 8080 | ||
connect = 127.0.0.1:3128 | connect = 127.0.0.1:3128 | ||
+ | </code> | ||
+ | |||
+ | ===== Windows Client ===== | ||
+ | <code> | ||
+ | [proxy] | ||
+ | client = yes | ||
+ | accept = 127.0.0.1:3128 | ||
+ | connect = proxy.corpX.un:8080 | ||
</code> | </code> |