# execute this as root!
# Redhat : stunnel-4 does not work! you need to install stunnel-5
+# Debian : stunnel-5.06 does not work! you need to install stunnel-5.18
mkdir /home/fex/etc
cd /home/fex/etc/
chmod 600 stunnel.pem
cat <<EOD>stunnel.conf
+debug = warning
+output = /home/fex/spool/stunnel.log
cert = /home/fex/etc/stunnel.pem
sslVersion = all
TIMEOUTclose = 1
execargs = perl -T /home/fex/bin/fexsrv stunnel
EOD
-case $(lsb_release -a 2>/dev/null) in
+case $(lsb_release -a 2>/dev/null) in
*CentOS*) echo 'fips = no' >>stunnel.conf;;
esac
type = unlisted
protocol = tcp
port = 443
- cps = 5 10
+ cps = 10 2
user = fex
groups = yes
server = $stunnel