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]
Sometime near 2007-11-11 00:15 -0500, Marcio Marchini shouted:
> Researching online one can see that WebDAV's spec requires that they
> check both src and dest URLs for protocol & port. But with some proxies or
> SSL fronts like stunnel, only one of the URLs is rewritten, so one goes as
> http and the other as https. Here's one person explaining it, much better
> than me: http://svn.haxx.se/users/archive-2006-03/0549.shtml
Stunnel doesn't currently have the ability to …
[View More]scan and re-write the
plaintext. For HTTP redirects it could possibly be implemented
(re-write only the response before ^$, and redirects aren't chunked
and don't have content lengths to work with, etc) but you'd still
need enough HTTP logic to handle keepalives and such. It's not
trivial and not likely.
Another option would be to have something already HTTP aware doing
the rewriting in between stunnel and subversion. A re-writing
proxy.
Another option would be to use mod_rewrite in apache to rewrite
the urls.
But the best way would be to just use SSL inside apache and drop
stunnel entirely.
--
Brian Hatch The best way to accelerate
Systems and a Windows machine is at
Security Engineer 9.8 meters per second
http://www.ifokr.org/bri/ squared.
Every message PGP signed
[View Less]
Hi,
we're trying to make use of stunnel here for proxy purposes : any
certificate-authenticated SSL client connection from the Internet would
be forwarded to some internal server.
This works fine, but I found some surprising behaviour when verifying
client certificates. Consider the following setup, using an
intermediate client CA :
* RootCA
** UserCA1
*** UserCert1
** UserCA2
*** UserCert2
To make this work, it seems I only have to include the Root CA
certificate in either a CAfile or a …
[View More]directory of trusted certificates.
I would have expected to have to include the intermediate CA (which is
signing the user certificate), but it seems it is not the case.
What worries me is that now *any* end-entity certificate which has been
issued by *other* intermediate CAs is accepted as valid, i.e. UserCert2
is accepted as valid, even if I don't include UserCA2 anywhere in
the configuration.
Is this really the intended behaviour ? If not, what would I be
missing ?
Simon
stunnel.conf -----------------------------------------------------------
connect = 127.0.0.1:25
CApath = /etc/stunnel/certs
cert = /etc/stunnel/apollon.genoscope.cns.fr-RevChain.pem
key = /etc/stunnel/apollon.genoscope.cns.fr-Key.pem
verify = 2
debug = 7
------------------------------------------------------------------------
[root@apollon certs]# ls -l /etc/stunnel/certs/
total 4
lrwxrwxrwx 1 root root 28 sep 30 11:01 9a5490ff.0 -> GenoscopeACRacine.cacert.pem
-rw-r--r-- 1 root root 2269 sep 15 11:47 GenoscopeACRacine.cacert.pem
[root@apollon certs]#
[View Less]
Group,
Need help confirming Stunnel can be configured the following way:
I have a server that has 5 local IPs, mapping to 5 public IPs on the
outside.
For example purposes, my local IPs are "A", "B", "C", "D", and "E"...
If I connect to a stunnel port configured to "C", will Stunnel route
the request outbound on "C" or will it use "A" outbound?
The way I have it configured, it's using "A" apparently, no matter
what local stunnel IP I bind my connection to.
And help will be greatly …
[View More]appreciated.
- Dave
Windows Server 2003 64-bit
Stunnel as a Service
Example Config:
[Connection-A]
accept = 10.5.12.57:9000
connect = outbound.example.server:145
TIMEOUTidle = 4
[Connection-B]
accept = 10.5.12.58:9005
connect = outbound.example.server:145
TIMEOUTidle = 4
[View Less]
Can stunnel be used for a local smtp server, that does not support
upstream SMTP AUTH, to connect to an smtp server that requires it?
Thanks,
John
--
John Conover, conover(a)rahul.net, http://www.johncon.com/
Hello,
I am using Stunnel 4.27 binary version on Windows 2003 server.
In the stunnel.pam file I did the following:
In the -----BEGIN RSA PRIVATE KEY----- section, I placed the same text that
appeared in the -----BEGIN NEW CERTIFICATE REQUEST----- when I purchased
the certificate
In the -----BEGIN CERTIFICATE----- section I placed what verisign returned
to me.
When I try to load Stunnel I get the following error messages:
: RAND_status claims sufficient entropy for the PRNG
: PRNG seeded …
[View More]successfully
: SSL context initialized for service gmail-pop3s
: Certificate: stunnel.pem
: Error reading certificate file: stunnel.pem
: error stack: 140DC009 : error:140DC009:SSL
routines:SSL_CTX_use_certificate_chain_file:PEM lib
: error stack: 906700D : error:0906700D:PEM routines:PEM_ASN1_read_bio:ASN1
lib
: error stack: D08303A : error:0D08303A:asn1 encoding
routines:ASN1_TEMPLATE_NOEXP_D2I:nested asn1 error
: error stack: D07803A : error:0D07803A:asn1 encoding
routines:ASN1_ITEM_EX_D2I:nested asn1 error
: SSL_CTX_use_certificate_chain_file: D0680A8: error:0D0680A8:asn1 encoding
routines:ASN1_CHECK_TLEN:wrong tag
: Server is down
Any thoughts as to where I went wrong?
Thanks for your help
[View Less]
You can modify your stunnel.conf, there are lots of examples on the web to do that.
Please don't use self-signed certs, you will have no end of issues, and there is NO reason to. StartCom offers free certificates, is in most browsers now, and will be included in IE by the end of September.
http://blog.startcom.org/?p=205
So why would you create the headaches of using self-signed certs?
Original Message -----------------------
Hi,
I would like to know whether it is possible to automate …
[View More]the process of
generating stunnel.pem.
During the make install we get questions like:
Generating a 1024 bit RSA private key
..................++++++
.........++++++
writing new private key to 'stunnel.pem'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [PL]:
How Can i automate it or avoid these questions so that i don't have to
provide any input during make install.
Please help me if you can.
Iam using Tru64 platform.
Thanks & Regards,
Matty
_______________________________________________
stunnel-users mailing list
stunnel-users(a)mirt.net
http://stunnel.mirt.net/mailman/listinfo/stunnel-users
[View Less]
Hi,
I would like to know whether it is possible to automate the process of
generating stunnel.pem.
During the make install we get questions like:
Generating a 1024 bit RSA private key
..................++++++
.........++++++
writing new private key to 'stunnel.pem'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave …
[View More]some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [PL]:
How Can i automate it or avoid these questions so that i don't have to
provide any input during make install.
Please help me if you can.
Iam using Tru64 platform.
Thanks & Regards,
Matty
[View Less]
Hi
Sorry for my question because it is too elementary but I need some help.
I want to use stunnel for one of our projects on an HP Itanium server that
have HP UX 11i v3
This is result for #uname –a command : HP-UX xxxxx B.11.31 U ia64
2210092972 unlimited-user license
I want to start stunnel as client . I found an stunnel in ‘/opt/hpws/apache’
folder.
1- May I use this stunnel for my project?
2- If it is possible how I can start it ?
I added one line to /etc/services and tried …
[View More]to start : stunnel –d ….
(according to a document) .But it seems that this version don’t support this
option.
Best Regards,
Mostafa
[View Less]