[stunnel-users] Web browsing over stunnel
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 http://127.0.0.1/ 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):
> > 127.0.0.1 www.stunnel.net
> > Then change your connect line to the IP address of www.stunnel.net (now 18.104.22.168 or 22.214.171.124).
> > And test again.
> > Saludos
> > Jose Alfredo Diaz
> I am not sure if I understand you right. What this academic exercise should reveal?
> It just try to connect to 127.0.0.1 ...?
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
127.0.0.1". 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 127.0.0.1 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...
Size: 833 bytes
Desc: not available
More information about the stunnel-users