summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2014-07-04 23:04:17 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 02:52:29 +0200
commit379a4b157c50645bdc7bb134b245bdd6e4938061 (patch)
tree0f89357b13b38ca37b2d0c0366cf21c4c17e1190 /roles
parentba2675933034529983123f55b32d0430ba0da281 (diff)
Disable Nagle's algorithm (and SSLv3) in stunnel.
Diffstat (limited to 'roles')
-rw-r--r--roles/IMAP-proxy/files/etc/stunnel/stunnel.conf5
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/IMAP-proxy/files/etc/stunnel/stunnel.conf b/roles/IMAP-proxy/files/etc/stunnel/stunnel.conf
index 026bc30..e77b557 100644
--- a/roles/IMAP-proxy/files/etc/stunnel/stunnel.conf
+++ b/roles/IMAP-proxy/files/etc/stunnel/stunnel.conf
@@ -15,43 +15,48 @@
setuid = stunnel4
setgid = stunnel4
; PID is created inside the chroot jail
pid = /var/run/stunnel4/stunnel4.pid
; Debugging stuff (may useful for troubleshooting)
debug = 4
;output = /var/log/stunnel4/stunnel.log
; **************************************************************************
; * 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/mail.pem
;key = /etc/stunnel/mail.pem
client = yes
socket = a:SO_BINDTODEVICE=lo
+; Some performance tunings
+socket = l:TCP_NODELAY=1
+socket = r:TCP_NODELAY=1
+
; Authentication stuff needs to be configured to prevent MITM attacks
verify = 4
; Disable support for insecure SSLv2 protocol
options = NO_SSLv2
; Workaround for Eudora bug
;options = DONT_INSERT_EMPTY_FRAGMENTS
; These options provide additional security at some performance degradation
;options = SINGLE_ECDH_USE
;options = SINGLE_DH_USE
; **************************************************************************
; * Service definitions (remove all services for inetd mode) *
; **************************************************************************
[imaps]
accept = localhost:993
connect = imap.fripost.org:993
CAfile = /etc/stunnel/certs/imap.fripost.org.pem
+options = NO_SSLv3
ciphers = ECDH+AES:DH+AES
; vim:ft=dosini