Re: older browsers, stunnel and privoxy
Peter Pentchev <[email protected]> Fri, 21 Dec 2018 13:58:35 +0200
| Newsgroups | gmane.network.stunnel.user |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Dec 21, 2018 at 02:46:29AM +0100, Javier wrote: > On Fri, 21 Dec 2018 00:01:08 +0100 > kovacs janos <[email protected]> wrote: > > > okay, so that means i should be able to connect to a website's server > > with only stunnel, and only its client side, even if i have to specify > > the destination IP of the server? i tried that and didnt seem to work > > either. i wrote the website's IP address after 'connect', tried to > > open the website in browser, and it wasnt working. but maybe i just > > did something wrong, thank you for the explanation though > > > > Hi, > > Stunnel is not for web browsing through it. > > We already gave you reasons and explanations why that won't work. > Read them again. Hm, there's no reason why stunnel would not work like that for a predetermined set of hosts with known addresses. I just set it up with a configuration section like this - but see below about me NOT recommending this way for servers that are not under your control: [fbsd-www] client = yes accept = 127.0.0.1:80 connect = 96.47.72.84:443 verifyChain = yes CApath = /etc/ssl/certs checkHost = wfe0.nyi.freebsd.org ...and I added "www.freebsd.org" to the list of hostnames for the 127.0.0.1 address in the system's hosts file (/etc/hosts on Unix-like operating systems, windows\System32\Drivers\etc\hosts on Windows). Then, when I ask for "http://www.freebsd.org/" (without HTTPS) in a browser or cURL or whatever, it gets the 127.0.0.1 address from the hosts file, connects to 127.0.0.1:80, then stunnel establishes a tunnel to the FreeBSD webserver's IP address, verifies its certificate, and lets the browser send its plaintext HTTP request there. Of course, as I noted in the previous message, this will only let browsers connect through stunnel to hosts that have previously been defined in the stunnel configuration and in the hosts file. Also, since the hosts file takes over the resolving of the host name to IP address, it is your responsibility now to check whether www.freebsd.org changed its IP address; it is also your responsibility now to check whether the Common Name of the actual server also changed (wfe0.nyi.freebsd.org in this case) - chasing down DNS CNAME records can be... interesting sometimes. All in all, I would have to say that I really do not recommend going down this road, especially for websites that are not under your control; this here was done merely as a proof of concept. G'luck, Peter -- Peter Pentchev roam@{ringlet.net,debian.org,FreeBSD.org} [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----- iQIzBAABCAAdFiEELuenpRf8EkzxFcNUZR7vsCUn3xMFAlwc1WUACgkQZR7vsCUn 3xMexhAAjtgcqsJB3AfZ6uBhP6N0SO9etC0eRWajB74gCX5XUpL/KAK6DXpveQFO yX3QLhQJIx6qNnrk6gEdvvmPK1Yborhs5+YUl7L6h8inYbD+oRiQYD7tlwyWWAYk T7gYF9o9xbeLvgljTUM1x0nkhTKkZuUkv2TYh0PvMSLufeRPbOqxEIUYQFXwJF2u UkFMWi3KvbZxpJmrM2MqO1Xrn5BVx0/6bLNT6LO6OSva5gsc0fGbfuwSZvRhETVx TcBEEF0bDVBb0xZtYg8/fOT+mm1f7Ualw5jitRG33ca+hK6b3EfETwCXzORvTGYf kOYurMJnoDTGgZLU3Api4mKL4Y9RfWX0533g77rlsrBTFtfnXl9Apqv7JCDjhrQR wuK4SjwSSEOdeXN4G3WoqfGwYzLZn4V+qv/cdvgV3W9zeBas5xR2KkPkRNCuGNpo NvmkNVwS39ptpWUnnASuOJ79ldaUxBcdX5hxKS7JJvJWeTFMdZeqYAFwV1u6bb1p H2FNi5CtQdrCK+JePo5AMHtifQvhVaHF6SKbpZ0V1ni4TBz9m6y4o+UNvuvb6N9y Xz1fzu9LqmUzY0WXd4uK7ckdfGXRo74FFGYf/xyDYRcK11ZDKooNMK4spfF7+IoX UULnv41dmiy3CLRJWERhM2fFLUyolk2I7V+Xv2+xX0BrdW4Kq3Y= =C8xy -----END PGP SIGNATURE-----