Hi Jose,
        
        
        Thanks for mail. The problem is that when I change the
          accept port on the server, stunnel doesn't start:
        
        
        Before:
        
        
        Server:
        
        
        
          [test]
          accept = 2404
          connect = 2406
         
        
        
        Client:
        
        
        
          [jdbc]
          client = yes
          
          connect = my_server_name:2406
         
        
        
        After:
        
        
        I edited the stunnel.conf on the server:
        
        
        
          [test]
          accept = 2406
          connect = 2406
         
        
        
        Then trying to start the service:
        
        
        
          /etc/init.d/stunnel start
          Starting stunnel (SSL tunnel) startproc:  exit status
              of parent of /usr/sbin/stunnel: 1
            please see /var/log/rc.stunnel.log for details      
                                                                       
                                                          failed
         
        
        
        /var/log/rc.stunnel.log is empty but in the log specified
          in the stunnel.conf I have the following:
        
        
        
        
          tail -10 /var/log/stunnel/stunnel.log
          2015.04.09 16:42:36 LOG5[22524:139805264570112]:
            Threading:PTHREAD SSL:ENGINE Sockets:POLL,IPv6 Auth:LIBWRAP
          2015.04.09 16:42:36 LOG6[22524:139805264570112]: file
            ulimit = 262144 (can be changed with 'ulimit -n')
          2015.04.09 16:42:36 LOG6[22524:139805264570112]: poll()
            used - no FD_SETSIZE limit for file descriptors
          2015.04.09 16:42:36 LOG5[22524:139805264570112]: 128000
            clients allowed
          2015.04.09 16:42:36 LOG7[22524:139805264570112]: FD 10 in
            non-blocking mode
          2015.04.09 16:42:36 LOG7[22524:139805264570112]: FD 11 in
            non-blocking mode
          2015.04.09 16:42:36 LOG7[22524:139805264570112]: FD 12 in
            non-blocking mode
          2015.04.09 16:42:36 LOG7[22524:139805264570112]:
            SO_REUSEADDR option set on accept socket
          2015.04.09 16:42:36 LOG3[22524:139805264570112]: Error
            binding test to 
0.0.0.0:2406 
          2015.04.09 16:42:36 LOG3[22524:139805264570112]: bind:
            Address already in use (98)
         
        
        
        
        
        Same thing happens when I try to change the ports on the
          client. Any idea how this problem can be solved? 
        
        
        Thanks and regards,
        Daninho