I am trying to use secure MySQL connections with stunnel ver. 4. I have the
following conf files for the server and the client.

 

 

Server:

 

cert = /etc/stunnel/stunnel.pem

chroot = /var/tmp/stunnel

 

#PID is created inside chroot jail

pid = /stunnel.pid

 

setuid = nobody

setgid = nobody

 

client = no

 

debug = 7

output = /stunnel.log

 

[mysqls]          

accept = 3307   

connect = 3306

 

 

Client:

 

cert = /etc/stunnel/stunnel.pem

chroot = /var/tmp/stunnel

 

# PID is created inside chroot jail

pid = /stunnel.pid

 

setuid = nobody

setgid = nobody

 

client = yes

 

debug = 7

output = /stunnel.log

 

[mysqls]                

accept = 3306         

connect = 192.168.0.5:3307

 

I have stunnel running on both the server and the client. After this I am
simply using mysql -h 192.168.0.5 -u mysqluser -p to connect to the mysql
server. It connects fine. But when I tcpdump data on eth0 it shows
transmission is plain text. That means my client is not communicating with
the server through stunnel. And stunnel is also not generating any log. 

 

 

What am I missing?

 

Thanks in advance.

 

Nash

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://brlug.net/pipermail/general_brlug.net/attachments/20051215/e5a2324e/attachment.htm

Reply via email to