blob: c1e9cf5dae4cdc14bfd3cd07d03ea080f8666d0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#
# {{ ansible_managed }}
#
#GLOBAL#######################################################
TIMEOUTidle = 600
renegotiation = no
FIPS = no
options = NO_SSLv2
options = NO_SSLv3
options = SINGLE_DH_USE
options = SINGLE_ECDH_USE
options = CIPHER_SERVER_PREFERENCE
syslog = yes
debug = 5
setuid = nobody
setgid = nobody
chroot = /var/stunnel/chroot
service = stunnel-nfsd
; cd /var/empty; mkdir -p stunnel/etc; cd stunnel/etc;
; echo 'MC-nfsd: ALL EXCEPT 5.6.7.8' >> hosts.deny;
; chcon -t stunnel_etc_t hosts.deny
curve = secp521r1
; https://hynek.me/articles/hardening-your-web-servers-ssl-ciphers/
ciphers=ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:RSA+AESGCM:RSA+AES:!aNULL:!MD5:!DSS
#CREDENTIALS##################################################
verify = 2
CAfile = /etc/pki/tls/certs/mon-ca.crt
CRLfile = /etc/pki/tls/certs/crt-crl.pem
cert = /etc/pki/tls/certs/{{ maindomain }}.nfs.fullchain.crt
key = /etc/pki/tls/private/{{ maindomain }}.nfs.key
#ROLE#########################################################
connect = localhost:2049
|