Hey everyone,<br><br>I was going through the stunnel FAQ when I noticed you could add compression. I was very excited and wanted to give it a try but when I tried to add <br><br>compression = zlib <br><br>to my stunnel.cong
I got this error when starting stunnel...<br><br>Starting stunnel: file /etc/stunnel/stunnel.conf line 10: Specified option name is not valid here<br><br>Line 10 is the exact place where i stuck this name value pair. I don't know where else i could put it, i tried putting it everywhere!
<br><br>All requested info for posts to the group are found below<br><br>Here is my stunnel.conf<br><br>verify = 3<br>CAfile = /etc/stunnel/certs.pem<br>cert = /etc/stunnel/stunnel.pem<br>setuid = nobody<br>setgid = nobody
<br>pid = /tmp/stunnel.pid<br>debug = 7<br>output = /var/log/stunnel.log<br>client = no<br>compression = zlib<br>[mysqls]<br>accept = 3309<br>connect = 3306<br><br><br>I am using centOS and installed stunnel and openssl via the available rpms, using yum. zlib is installed as well, but i don't think this is a zlib issue, it seems like it just doesn't like "compression". Was compression added in a version later than
4.05? Am i missing something incredinbly simple?<br><br><br>Some output from the stunnel.log at high debug level<br><br>2006.11.13 23:03:10 LOG5[32244:3086689984]: stunnel 4.05 on i686-redhat-linux-gnu PTHREAD+LIBWRAP with OpenSSL
0.9.7a Feb 19 2003<br>2006.11.13 23:03:10 LOG7[32244:3086689984]: Snagged 64 random bytes from /dev/urandom<br>2006.11.13 23:03:10 LOG7[32244:3086689984]: RAND_status claims sufficient entropy for the PRNG<br>2006.11.13 23:03:10 LOG6[32244:3086689984]: PRNG seeded successfully
<br>2006.11.13 23:03:10 LOG7[32244:3086689984]: Certificate: /etc/stunnel/stunnel.pem<br>2006.11.13 23:03:10 LOG7[32244:3086689984]: Key file: /etc/stunnel/stunnel.pem<br>2006.11.13 23:03:10 LOG7[32244:3086689984]: Loaded verify certificates from /etc/stunnel/certs.pem
<br>2006.11.13 23:03:10 LOG5[32244:3086689984]: FD_SETSIZE=1024, file ulimit=1024 -> 500 clients allowed<br>2006.11.13 23:03:10 LOG7[32244:3086689984]: FD 4 in non-blocking mode<br>2006.11.13 23:03:10 LOG7[32244:3086689984]: SO_REUSEADDR option set on accept socket
<br>2006.11.13 23:03:10 LOG7[32244:3086689984]: mysqls bound to <a href="http://0.0.0.0:3309">0.0.0.0:3309</a><br>2006.11.13 23:03:10 LOG7[32244:3086689984]: FD 5 in non-blocking mode<br>2006.11.13 23:03:10 LOG7[32244:3086689984]: FD 6 in non-blocking mode
<br>2006.11.13 23:03:10 LOG7[32245:3086689984]: Created pid file /tmp/stunnel.pid<br><br>stunnel -V<br>2006.11.13 23:03:14 LOG3[32248:3086505664]: -V: No such file or directory (2)<br><br>Syntax:<br>stunnel [filename] | -fd [n] | -help | -version | -sockets
<br> filename - use specified config file instead of /etc/stunnel/stunnel.conf<br> -fd n - read the config file from specified file descriptor<br> -help - get config file help<br> -version - display version and defaults
<br> -sockets - display default socket options<br><br>uname -a<br>Linux ramison 2.6.9-42.0.3.EL #1 Fri Oct 6 05:59:54 CDT 2006 i686 i686 i386 GNU/Linux<br><br>gcc -v<br>Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs
<br>Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
<br>Thread model: posix<br>gcc version 3.4.6 20060404 (Red Hat 3.4.6-3)<br><br>openssl version<br>OpenSSL 0.9.7a Feb 19 2003<br><br>