[stunnel-users] Access an arbitrary https website on http://localhost:3000 via stunnel.

Hongyi Zhao hongyi.zhao at gmail.com
Fri Jan 15 12:22:15 CET 2016


2016-01-15 18:04 GMT+08:00 Ludolf Holzheid <lholzheid at bihl-wiedemann.de>:
> On Fri, 2016-01-15 08:35:05 +0800, Hongyi Zhao wrote:
>> [..]
>>
>> But still, firefox failed with the above url, the error is as follows:
>>
>> Secure Connection Failed
>>
>> The connection to coolaj86.com:3000 was interrupted while the page was loading.
>>
>>     The page you are trying to view cannot be shown because the
>> authenticity of the received data could not be verified.
>>     Please contact the website owners to inform them of this problem.
>
> Zhao,

Yes, you're right, this is my surname.

>
> For some reason, firefox does not use the stunnel but tries to connect
> coolaj86.com directly.  It looks as if the entry in the host file is
> not effective.  (You might check who replies to 'ping coolaj86.com'.)

1- If not insert the following line into /etc/hosts:

127.0.0.1 coolaj86.com

$ ping coolaj86.com
PING coolaj86.com (67.166.110.237) 56(84) bytes of data.
64 bytes from c-67-166-110-237.hsd1.ut.comcast.net (67.166.110.237):
icmp_seq=1 ttl=44 time=261 ms
64 bytes from c-67-166-110-237.hsd1.ut.comcast.net (67.166.110.237):
icmp_seq=2 ttl=44 time=259 ms
64 bytes from c-67-166-110-237.hsd1.ut.comcast.net (67.166.110.237):
icmp_seq=3 ttl=44 time=257 ms
^C
--- coolaj86.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 257.055/259.227/261.534/1.923 ms


2- If insert the above line into /etc/hosts:

$ ping coolaj86.com
PING coolaj86.com (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.077 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.067 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.050 ms
64 bytes from localhost (127.0.0.1): icmp_seq=4 ttl=64 time=0.071 ms
64 bytes from localhost (127.0.0.1): icmp_seq=5 ttl=64 time=0.052 ms
64 bytes from localhost (127.0.0.1): icmp_seq=6 ttl=64 time=0.073 ms
64 bytes from localhost (127.0.0.1): icmp_seq=7 ttl=64 time=0.060 ms
64 bytes from localhost (127.0.0.1): icmp_seq=8 ttl=64 time=0.122 ms
^C
--- coolaj86.com ping statistics ---
8 packets transmitted, 8 received, 0% packet loss, time 7000ms
rtt min/avg/max/mdev = 0.050/0.071/0.122/0.022 ms

Regards


>
>> [..]
>> >
>> > P.S.: As your signature is English, I suppose it is for European/
>> >       American/Oceanian eyes and your name is given in the European
>> >       order (family name last).  Hongyi is your given name then.
>> >       My apologies if this is wrong.
>>
>> No, I'm from China.  Thanks for help again.
>
> I know you're from China, that's why I was uncertain about the order
> of names.  Some people from East Asia swap their names if they write
> them using the Latin script, others don't, so I didn't know how you
> want to be called.

Zhao is my surname, and Hongyi is my name.

Regards

>
> Ludolf
>
> --
>
> Ludolf Holzheid
>
> Bihl+Wiedemann GmbH
> Floßwörthstraße 41
> 68199 Mannheim, Germany
>
> Tel: +49 621 33996-0
> Fax: +49 621 3392239
>
> mailto:lholzheid at bihl-wiedemann.de
> http://www.bihl-wiedemann.de
>
> Sitz der Gesellschaft: Mannheim
> Geschäftsführer: Jochen Bihl, Bernhard Wiedemann
> Amtsgericht Mannheim, HRB 5796
> _______________________________________________
> stunnel-users mailing list
> stunnel-users at stunnel.org
> https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users



-- 
Hongyi Zhao <hongyi.zhao at gmail.com>
Xinjiang Technical Institute of Physics and Chemistry
Chinese Academy of Sciences
GnuPG DSA: 0xD108493


More information about the stunnel-users mailing list