[stunnel-users] Web browsing over stunnel

Peter Pentchev roam at ringlet.net
Tue Nov 7 00:52:52 CET 2017

On Mon, Nov 06, 2017 at 09:57:16PM +0000, Osvald Brko wrote:
> > From: Josealf.rm <josealf at rocketmail.com>
> > Sent: Friday, November 3, 2017 1:21 PM
> > To: Osvald Brko
> > Cc: stunnel-users at stunnel.org
> > Subject: Re: [stunnel-users] Web browsing over stunnel
> > It’s because the web site GETs a request  for not for http://www.stunnel.org/
> > Just as an academic exercise, you may want to add this line to your hosts file (usually in \windows\system32\drivers\etc\hosts):
> > www.stunnel.net
> > Then change your connect line‭ to the IP address of  www.stunnel.net (now or
> > And test again.
> > Saludos
> > Jose Alfredo Diaz
> Hi,
> I am not sure if I understand you right. What this academic exercise should reveal?
> It just try to connect to ...?

The point is to get your browser to ask the remote server "give me the
main page of www.stunnel.org" and not "give me the main page of".  The webserver may have many so called "virtual hosts"
defined - the same webserver on the same IP address serves many
websites; it knows which one to serve by the hostname that the client
(the browser) sends to it.

Putting in your hosts file and pointing your browser to it is
a widely used trick to make it connect to a remote site through a
tunnel; of course, the tunnel must be established first.


Peter Pentchev  roam at ringlet.net roam at FreeBSD.org pp at storpool.com
PGP key:        http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint 2EE7 A7A5 17FC 124C F115  C354 651E EFB0 2527 DF13
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://www.stunnel.org/pipermail/stunnel-users/attachments/20171107/c77193a1/attachment.sig>

More information about the stunnel-users mailing list