From 379a4b157c50645bdc7bb134b245bdd6e4938061 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Fri, 4 Jul 2014 23:04:17 +0200 Subject: Disable Nagle's algorithm (and SSLv3) in stunnel. --- roles/IMAP-proxy/files/etc/stunnel/stunnel.conf | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'roles/IMAP-proxy/files/etc/stunnel') 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 @@ -32,6 +32,10 @@ debug = 4 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 @@ -52,6 +56,7 @@ options = NO_SSLv2 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 -- cgit v1.2.3