summaryrefslogtreecommitdiffstats
path: root/roles/common
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2015-10-27 16:26:24 +0100
committerGuilhem Moulin <guilhem@fripost.org>2015-10-27 16:26:24 +0100
commitc2b9d04ecef5babc028728d4426aab9237b5ce86 (patch)
treee0cf1cd15f8df515f3bc6140831e67d40a9b9c78 /roles/common
parent643d79c4853009806fa45a9036ae7150b4e739fa (diff)
stunnel: disable compression.
Diffstat (limited to 'roles/common')
-rw-r--r--roles/common/templates/etc/stunnel/bacula-fd.conf.j22
-rw-r--r--roles/common/templates/etc/stunnel/munin-node.conf.j22
2 files changed, 4 insertions, 0 deletions
diff --git a/roles/common/templates/etc/stunnel/bacula-fd.conf.j2 b/roles/common/templates/etc/stunnel/bacula-fd.conf.j2
index d9fe04b..ed819c0 100644
--- a/roles/common/templates/etc/stunnel/bacula-fd.conf.j2
+++ b/roles/common/templates/etc/stunnel/bacula-fd.conf.j2
@@ -16,40 +16,42 @@ debug = 4
; * Service defaults may also be specified in individual service sections *
; **************************************************************************
; Certificate/key is needed in server mode and optional in client mode
cert = /etc/stunnel/certs/{{ inventory_hostname_short }}-fd.pem
key = /etc/stunnel/certs/{{ inventory_hostname_short }}-fd.key
; Some performance tunings
socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1
; Prevent MITM attacks
verify = 4
; Disable support for insecure protocols
options = NO_SSLv2
options = NO_SSLv3
options = NO_TLSv1
options = NO_TLSv1.1
+options = NO_COMPRESSION
+
; These options provide additional security at some performance degradation
options = SINGLE_ECDH_USE
options = SINGLE_DH_USE
; Select permitted SSL ciphers
ciphers = EECDH+AESGCM:!MEDIUM:!LOW:!EXP:!aNULL:!eNULL
; **************************************************************************
; * Service definitions (remove all services for inetd mode) *
; **************************************************************************
[{{ inventory_hostname_short }}-fd]
client = no
accept = 9102
connect = 9112
CAfile = /etc/stunnel/certs/bacula-dirs.pem
{% if 'bacula-sd' not in group_names %}
[{{ hostvars[ groups['bacula-sd'][0] ].inventory_hostname_short }}-sd]
client = yes
diff --git a/roles/common/templates/etc/stunnel/munin-node.conf.j2 b/roles/common/templates/etc/stunnel/munin-node.conf.j2
index e4188fc..83614b5 100644
--- a/roles/common/templates/etc/stunnel/munin-node.conf.j2
+++ b/roles/common/templates/etc/stunnel/munin-node.conf.j2
@@ -16,38 +16,40 @@ debug = 4
; * Service defaults may also be specified in individual service sections *
; **************************************************************************
; Certificate/key is needed in server mode and optional in client mode
cert = /etc/stunnel/certs/munin-{{ inventory_hostname_short }}.pem
key = /etc/stunnel/certs/munin-{{ inventory_hostname_short }}.key
; Some performance tunings
socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1
; Prevent MITM attacks
verify = 4
; Disable support for insecure protocols
options = NO_SSLv2
options = NO_SSLv3
options = NO_TLSv1
options = NO_TLSv1.1
+options = NO_COMPRESSION
+
; These options provide additional security at some performance degradation
options = SINGLE_ECDH_USE
options = SINGLE_DH_USE
; Select permitted SSL ciphers
ciphers = EECDH+AESGCM:!MEDIUM:!LOW:!EXP:!aNULL:!eNULL
; **************************************************************************
; * Service definitions (remove all services for inetd mode) *
; **************************************************************************
[munin-node]
client = no
accept = 4949
connect = 127.0.0.1:4994
CAfile = /etc/stunnel/certs/munin-master.pem
; vim:ft=dosini