Quoting webmaster@escoltesiguies.cat:
I have a winXP machine which should connect to a linux samba. Everything installed following http://wiki.netbsd.se/index.php/How_to_secure_samba_with_stunnel ...
I have checked and stunnel4 was failing to run, now it starts correctly but it don't establish the connection:
server-config: #### Simple stunnel configuration for a secure samba setup ####
; Some debugging stuff useful for troubleshooting debug = 7 output = /var/log/stunnel4/stunnel.log # OpenSSL certificate ;cert = /usr/pkg/etc/stunnel/stunnel.pem # Run chrooted as nobody chroot = /var/run/stunnel4 setuid = nobody setgid = nogroup # This file is created after chrooting pid = /var/lock/stunnel.pid # Accept connections on port 800, on any interface [smb] accept = 0.0.0.0:8888 # instead of port 139, port 445 will also work, unless you're using Mac OS X clients connect = localhost:139
server-log: 2007.11.27 13:28:14 LOG5[3103:3082884800]: stunnel 4.14 on i486-pc-linux-gnu PTHREAD+POLL+IPv6+LIBWRAP with OpenSSL 0.9.8a 11 Oct 2005 2007.11.27 13:28:14 LOG4[3103:3082884800]: Wrong permissions on /etc/stunnel/stunnel.pem 2007.11.27 13:28:14 LOG7[3103:3082884800]: Snagged 64 random bytes from /root/.rnd 2007.11.27 13:28:14 LOG7[3103:3082884800]: Wrote 1024 new random bytes to /root/.rnd 2007.11.27 13:28:14 LOG7[3103:3082884800]: RAND_status claims sufficient entropy for the PRNG 2007.11.27 13:28:14 LOG6[3103:3082884800]: PRNG seeded successfully 2007.11.27 13:28:14 LOG7[3103:3082884800]: Certificate: /etc/stunnel/stunnel.pem 2007.11.27 13:28:14 LOG7[3103:3082884800]: Key file: /etc/stunnel/stunnel.pem 2007.11.27 13:28:16 LOG6[3103:3082884800]: file ulimit = 1024 (can be changed with 'ulimit -n') 2007.11.27 13:28:16 LOG6[3103:3082884800]: poll() used - no FD_SETSIZE limit for file descriptors 2007.11.27 13:28:16 LOG5[3103:3082884800]: 500 clients allowed 2007.11.27 13:28:16 LOG7[3103:3082884800]: FD 4 in non-blocking mode 2007.11.27 13:28:16 LOG7[3103:3082884800]: FD 5 in non-blocking mode 2007.11.27 13:28:16 LOG7[3103:3082884800]: FD 6 in non-blocking mode 2007.11.27 13:28:16 LOG7[3103:3082884800]: SO_REUSEADDR option set on accept socket 2007.11.27 13:28:16 LOG7[3103:3082884800]: smb bound to 0.0.0.0:8888 2007.11.27 13:28:16 LOG7[3104:3082884800]: Created pid file /var/lock/stunnel.pid