diff --git a/security/stunnel/src/opnsense/mvc/app/controllers/OPNsense/Stunnel/forms/dialogService.xml b/security/stunnel/src/opnsense/mvc/app/controllers/OPNsense/Stunnel/forms/dialogService.xml index 368810bf7..2b7f7bb64 100644 --- a/security/stunnel/src/opnsense/mvc/app/controllers/OPNsense/Stunnel/forms/dialogService.xml +++ b/security/stunnel/src/opnsense/mvc/app/controllers/OPNsense/Stunnel/forms/dialogService.xml @@ -60,6 +60,12 @@ Additions may need a restart of stunnel (when the certificate was already used). ]]> + + service.clientmode + + checkbox + + service.ciphers diff --git a/security/stunnel/src/opnsense/mvc/app/models/OPNsense/Stunnel/Stunnel.xml b/security/stunnel/src/opnsense/mvc/app/models/OPNsense/Stunnel/Stunnel.xml index 4f5689ae8..13e2f02fd 100644 --- a/security/stunnel/src/opnsense/mvc/app/models/OPNsense/Stunnel/Stunnel.xml +++ b/security/stunnel/src/opnsense/mvc/app/models/OPNsense/Stunnel/Stunnel.xml @@ -1,6 +1,6 @@ //OPNsense/Stunnel - 1.0.2 + 1.0.3 Stunnel TLS encryption proxy @@ -63,6 +63,10 @@ 0 Y + + 0 + Y + TLS_AES_128_GCM_SHA256,TLS_AES_256_GCM_SHA384,TLS_CHACHA20_POLY1305_SHA256,ECDHE-ECDSA-AES128-GCM-SHA256,ECDHE-RSA-AES128-GCM-SHA256,ECDHE-ECDSA-AES256-GCM-SHA384,ECDHE-RSA-AES256-GCM-SHA384,ECDHE-ECDSA-CHACHA20-POLY1305,ECDHE-RSA-CHACHA20-POLY1305,DHE-RSA-AES128-GCM-SHA256,DHE-RSA-AES256-GCM-SHA384 Y diff --git a/security/stunnel/src/opnsense/service/templates/OPNsense/Stunnel/stunnel.conf b/security/stunnel/src/opnsense/service/templates/OPNsense/Stunnel/stunnel.conf index d9f28b339..8c3ee5ecc 100644 --- a/security/stunnel/src/opnsense/service/templates/OPNsense/Stunnel/stunnel.conf +++ b/security/stunnel/src/opnsense/service/templates/OPNsense/Stunnel/stunnel.conf @@ -31,6 +31,9 @@ verifyChain = yes CRLpath = {% if helpers.empty('OPNsense.Stunnel.general.chroot') %}/var/run/stunnel{% endif %}/certs/ {% endif %} {% endif %} +{% if service.clientmode|default('0') == '1' %} +client = yes +{% endif %} {% set ciphers =[] %} {% set ciphersuites =[] %} {% for cipher in service.ciphers.split(',') %}