###### Step 01 - install dropbear and stunnel4 ###### Step 02 - nano /etc/stunnel/stunnel.conf ```bash cert = /etc/stunnel/stunnel.pem client = no socket = a:SO_REUSEADDR=1 socket = l:TCP_NODELAY=1 socket = r:TCP_NODELAY=1 [dropbear] connect = 127.0.0.1:3128 accept = 80 [port 443] connect = 127.0.0.1:3128 accept = 442 ``` ###### Step 03 - Create Certificate ```bash openssl genrsa -out key.pem 2048 openssl req -new -x509 -key key.pem -out cert.pem -days 1095 cat key.pem cert.pem >> /etc/stunnel/stunnel.pem ``` ###### Step 04 - nano /etc/default/stunnel4 ```bash change ENABLED from 0 to 1 ``` ###### Step 05 - nano /etc/default/dropbear ```bash NO_START=0 DROPBEAR_PORT=3128 DROPBEAR_BANNER=/etc/issue.net ``` ###### Step 04 - Restart Services ```bash /etc/init.d/dropbear restart /etc/init.d/stunnel4 restart ``` ###### Tested on Ubuntu 18.04