[prev in list] [next in list] [prev in thread] [next in thread] 

List:       stunnel-users
Subject:    RE: Peer suddenly disconnected? Remote file descriptor?
From:       "Duane Winner" <dwinner () utrsmail ! com>
Date:       2002-07-24 15:39:06
[Download RAW message or body]

Never mind, I figured it out.

It's the way Sybase handles TCP/IP. By default, Sybase listens on eth0 (in
my case, 10.20.0.12).
Change the interfaces file so that instead of the hostname, replace with
127.0.0.1 or 0.0.0.0.
That took care of it.

-DAW

-----Original Message-----
From: Duane Winner [mailto:dwinner@utrsmail.com]
Sent: Tuesday, July 23, 2002 2:21 PM
To: stunnel-users@mirt.net
Subject: Peer suddenly disconnected? Remote file descriptor?


I'm  trying to set up a tunnel for Sybase (port 4100) and having problems.

On the server (10.30.0.133), I type:
stunnel -P/tmp/ -p /root/stunnel.pem -d 4101 -r localhost:4100 -o
/var/log/stunnel.log

On the client (10.20.0.12), I type:
stunnel -P/tmp/ -c -d 127.0.0.1:4100 -r 10.30.0.133:4101 -o
/var/log/stunnel.log

When I attempt to open a sybase connection however, it fails. I look at the
logs and see the following:

Client log:
2002.07.23 13:55:40 LOG5[3353:2050]: 10.30.0.133.4101 connected from
127.0.0.1:32827
2002.07.23 13:55:40 LOG3[3353:2050]: SSL_connect: Peer suddenly disconnected

Server log:
2002.07.23 13:52:34 LOG5[7668:2050]: localhost.4100 connected from
10.20.0.12:32828
2002.07.23 13:52:34 LOG3[7668:2050]: remote connect: Connection refused
(111)
2002.07.23 13:52:34 LOG3[7668:2050]: Failed to initialize remote file
descriptor

What puzzles me is that I've used exactly the same commands and have
successfully set up a tunnel for MySQL, the only difference being is the
ports I use (3306,3307 instead of 4100,4101).

I've commented out everything in the hosts.deny files on both servers to see
if that was causing problems, but that's not it.

Thanks for any help,

Duane Winner




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic