Re: Web browsing over stunnel
Peter Pentchev <[email protected]>
| Newsgroups | gmane.network.stunnel.user |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Nov 06, 2017 at 09:57:16PM +0000, Osvald Brko wrote: > > From: Josealf.rm <[email protected]> > > Sent: Friday, November 3, 2017 1:21 PM > > To: Osvald Brko > > Cc: [email protected] > > 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 104.239.213.7 or 198.105.254.11). > > > 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 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. G'luck, Peter -- Peter Pentchev [email protected] [email protected] [email protected] PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint 2EE7 A7A5 17FC 124C F115 C354 651E EFB0 2527 DF13 _______________________________________________ stunnel-users mailing list [email protected] https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEELuenpRf8EkzxFcNUZR7vsCUn3xMFAloA9c4ACgkQZR7vsCUn 3xOEHA//asLkcO0YYg5/qvxfuSB/FBe01WxC6emTFjNaVXe9H7MOl5Xg4JkBMGHb Lbis9eOqY8Do1Xum5mEsKQ0A3jk4KGVFbdSdnDfp3ZKd3M4T3BTsGterqGvLD97m aN5wc50/FnAjquZDcRdIxfohYYcjPoqpNfA0sUYKihOxF0HJQk7r/J+1CGk9SQuo 5TgcAFQTk8DgiH0dH/6eyoXjlkZCIzTOJ6mIbSP9SOGtu6ODwyY0OC/5/3w6l0hH WxHfEylqBt6bs7fg1/aHaicOewLBIAc+GjPDt4SSmJTlKrWe9PJhwkAMU3gUGqru 138Ulc8HzlJ9OxnVq1j1V8S9wXYChLapgi2VuPl0rKQDABMo0nEVkSRc1B6H/YXi A8t7xt5Jkw0Mw6hvQSj5CN7WpsxpTi8lDoiEE1Y8iesirTZJePBXLaAry0N+YPxK IRrYvSfqFvRUQWFrEwyJS2kOoI8LE3+QdkRGHeqKzhLmIics7SuIOQw0qbic1Urg IQKDL8fMhJRssUCiFun+DCmIEKtzgB2UpkKUbfQGctF2gP3+XZ8e6DoOP0gMQn4/ 0qf4Fyj3zYm61EXawKS7NcssPaekI+cZvLngASYra3eFd3MLBUmRt0lBcj1CANfS MzAtITF2175Yj0GkHzgcZWa4gQcAmh3qXcoid/X5n6PC7fs1LSk= =BMff -----END PGP SIGNATURE-----