[stunnel-users] stunnel and http

John jw72253 at verizon.net
Tue Jul 17 04:47:45 CEST 2012

I am running the latest stunnel for Windows on 64-bit Win7 as an 
application, not as a service. I simply unzipped everything to one folder, 
configured the "stunnel.conf" file; and when I need to run the program, I 
can open a command prompt in its folder and type "stunnel stunnel.conf". It 
then reads my stunnel.conf file and works its magic. This works fine for 
capturing the data from those programs which I can configure to use 
localhost and a specific port because I can configure stunnel.conf with 
accept = ip.address:port

Now I have a program that I want to use to download some text files from the 
internet using http or https.  However, this program cannot be manually 
configured to make a connection with a certain IP and port. Instead, I have 
to give it an alias-like name, which it then maps to one of several 
different domain names, makes a DNS query for the IP and transmits to that 
address the instructions for downloading some text files.

So, is it possible to have stunnel "capture" any and all http transports 
(port 80) or https transports (port 443) from a specific program, regardless 
of which IP that connection was destined for, so that I can then direct this 
data traffic from stunnel to socat or from stunnel to an http proxy which I 
can manually direct to a specific connection? Is this a kind of thing for 
which stunnel can be used? If so, where can I find the instructions for 
setting it up? Thanks. 

More information about the stunnel-users mailing list