The configuration files are :
pid = /var/stunnel.pid
;chroot = /var/lib/stunnel
setuid = nobody
setgid = nobody
foreground =yes
; Use it for client mode
client = yes
; Service-level configuration
[pop3s]
accept = 995
connect = 110
[imaps]
accept = 993
connect = 143
[ssmtp]
accept = 465
connect = 25
[mysqls]
accept = 3307
connect = 192.168.1.6:3307
On 192.168.1.6
----------------------
pid = /var/stunnel.pid
setuid =nobody
setgid = nobody
foreground = yes
client = no
; Service-…
[View More]level configuration
[pop3s]
accept = 995
connect = 110
[imaps]
accept = 993
connect = 143
[ssmtp]
accept = 465
connect = 25
[mysqls]
accept =3307
connect =3306
connecting like
/usr/local/mysql/bin/mysql -h 127.0.0.1 -u root -p -P 3307
Enter password:
On entring password the following lines appear :
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 104
Subrata
----- Original Message -----
From: Brian Hatch <bri(a)stunnel.org>
To: subrata(a)indiatimes.com
Sent: Sun, 7 Oct 2007 10:02:17 +0530 (IST)
Subject: Re: [stunnel-users] Stunnel on the same machine
Near 2007-10-05 22:17 +0530, subrata(a)indiatimes.com insisted:
> After starting stunnel and connecting the mysql client/usr/local/mysql/bin/mysql -h 127.0.0.1 -u root -p the flow gets stuck at the Enter password prompt any suggestions how to proceed from there.
What do your stunnel configuration files look like?
Other problem: mysql client may decide to use a local domain socket when
connecting to localhost, thwarting your attempts to go via Stunnel.
You might want to 'strace mysql ...' and look for the connect() lines.
--
Brian Hatch Time flies like an
Systems and arrow. Fruit flies
Security Engineer like a banana.
http://www.ifokr.org/bri/
Every message PGP signed
--
My life has changed. What about yours?
Log on to the new Indiatimes Mail and Live out of the Inbox!
[View Less]
Hi Guys,
I'm working on a java mobile app (J2ME MIDP 2.0) which connects to a
java server, which I created. The java mobile app is an instant
messenger.
I want to use stunnel to encrypt the communication between the app and
the server. At the moment the server runs on my localhost
on port 5555 and accepts connections from the mobile device emulator I
have running on the same machine. Eventually I want to
transfer the mobile app on to my mobile and use it from there. My
machine is running the …
[View More]following versions
stunnel 4.29 on x86-pc-mingw32-gnu with OpenSSL 0.9.8l on Windows 7
x64. I have not yet configured a pam or config file but I
would like to continue listening on port 5555 with my own certificate
(but for now any will do).
Will the fact that I'm running both my server and device emulator on
one machine mean that it'll bypass stunnel and I'll never know if it
works or not?
Should I have my mobile app use SecureConnection (SSL encrypted)
class? In that case, I'd have to make the server listen for SSL
connections too. That would defeat the purpose of stunnel.
Help on configuration is welcome.
Thanks for reading, I'm looking forward to your replies
Vladimir
[View Less]
Hi,
I recently stumbled on
http://mirt.net/pipermail/stunnel-users/2008-May/001977.html which is
exactly what I am seeing with version 4.27 of stunnel, namely the daemon
is not switching to the setuid/setgid specified in the config before it
is spawned.
This means that I get 6 processes, 5 run as root with only one (albeit
the one lisenting on the specified sockets) dropping privs to the
specified user.
The follow-up response from Mike was:
I'll modify stunnel to delay spawning libwrap …
[View More]processes until
privileges are dropped.
and indeed, I find in the Changelog file for version 4.25 the following
Bugfixes:
* Bugfixes
- Spawning libwrap processes delayed until privileges are dropped.
However, it seems that either this fix either didn't make it in, or it
somehow managed to creep its way back out because it is happening in
4.27.
Thanks,
micah
[View Less]
Hey Guys,
We have the following problem:
Bbwin is sending traffic to 2 monitoring servers and is encrypted via
stunnel. If one of the monitoring servers goes down, the number of ports
being used by bbwin client increases to the point where the box is
unusable - no more ports available on the windows box being monitored.
If we kill the bbwin process, the problem goes away temporarily - after
a short period of time, the problem returns. The problem continues even
after the failed hobbit …
[View More]server recovers, and only clears up when we kill
the bbwin process.
* Windows version Server 2003
* bbwin versions 0.11, 0.12
* stunnel version 4.25
* hobbit server version 4.2.2
Output of the stunnel log shows the following error:
2009.12.16 06:56:19 LOG7[2336:2460]: New thread created
2009.12.16 06:56:19 LOG7[2336:4016]: hobbit_ssl started
2009.12.16 06:56:19 LOG7[2336:4016]: FD 356 in non-blocking mode
2009.12.16 06:56:19 LOG7[2336:4016]: TCP_NODELAY option set on local
socket
2009.12.16 06:56:19 LOG5[2336:4016]: hobbit_ssl accepted connection from
127.0.0.1:1725
2009.12.16 06:56:19 LOG7[2336:4016]: FD 396 in non-blocking mode
2009.12.16 06:56:19 LOG6[2336:4016]: connect_blocking: connecting
10.132.55.24:1982
2009.12.16 06:56:19 LOG3[2336:4016]: connect_blocking: connect
10.132.55.24:1982: No buffer space available (WSAENOBUFS) (10055)
2009.12.16 06:56:19 LOG5[2336:4016]: Connection reset: 0 bytes sent to
SSL, 0 bytes sent to socket
2009.12.16 06:56:19 LOG7[2336:4016]: hobbit_ssl finished (0 left)
Can something be added to my stunnel.conf to prevent this from
happening? Any help would be greatly appreciated. Thanks.
[View Less]
Hi all,
It is my first post. Sorry if common question but didn't find answer
in archives or google.
The fact is that I am using an iPhone with a data plan that only allow
ports 80 and 443 (http and https). My aim is to be able to use all
ports (mail, ftp, msn, etc).
The idea is to tunnel all TCP connections between my computer here and
my server at home.
iPhone <----port-443----> Linux Server <----all-ports----> Internet
I know there is alternatives for each service (…
[View More]webmail, webmessenger,
etc.) but I think that it is technically possible to have something
running that allow using of usual software.
I also know that this usage is typically VPN but there is no VPN
client for iPhone that allow custom ports and not sure my data plan
can route GRE protocol.
By the way STunnel was ported to the iPhone. There is some hope.
I am not sure Stunnel is the best way to do that and not even sure
that Stunnel can do it but hope you can advice.
Thanks for your help.
LoLoVioLo
[View Less]
Question:
On the server, port 443 is already in use by a different service.
However I require STunnel to communicate also on port 443.
I thought, that perhaps I can obtain a second IP address and forward
that trafic from the router to port 444 (or any other avail port). Then
I can let Stunnel listen to port 444 and thus it would work. The
firewall has to translate the 444 back to the 443 when transmitting data
ofcourse.
Is this the right way to go? Or ca I do this using one and the same …
[View More]IP
(but then there would be 2 services listning to the same port right)?
Thanks.
Reinier
[View Less]
Dear Users,
I'm eager to hear your comments, suggestions or issues regarding sessiond.
Feel free to use the stunnel-users mailing list or the bug tracking system:
https://stunnel.mirt.net/?page=bts
Best regards,
Mike