Discussion:
[stunnel-users] Access an arbitrary https website on http://localhost:3000 via stunnel.
(too old to reply)
Ludolf Holzheid
2016-01-14 16:45:05 UTC
Permalink
[..]
67.166.110.237 www.coolaj86.com
67.166.110.237 coolaj86.com
But still the issue exists when I use firefox to open http://localhost:3000/.
Hongyi,

you have to convince firefox use 127.0.0.1 as IP address and
coolaj86.com as host for the HTTP requests.

127.0.0.1 is the IP address your stunnel daemon listens on, and
coolaj86.com is needed by the remote server to select the right
virtual host.

Try to change your /etc/hosts to read
|
| 127.0.0.1 coolaj86.com
|
and stunnel-tlsvpn.conf to read
|
| connect = 67.166.110.237:443
|

Then, use http://coolaj86.com:3000 in firefox.

HTH,

Ludolf

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.
--
Ludolf Holzheid
 
Bihl+Wiedemann GmbH
Floßwörthstraße 41
68199 Mannheim, Germany
 
Tel: +49 621 33996-0
Fax: +49 621 3392239
 
mailto:***@bihl-wiedemann.de
http://www.bihl-wiedemann.de
 
Sitz der Gesellschaft: Mannheim
Geschäftsführer: Jochen Bihl, Bernhard Wiedemann
Amtsgericht Mannheim, HRB 5796
Ludolf Holzheid
2016-01-15 10:04:10 UTC
Permalink
[..]
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,

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'.)
[..]
Post by Ludolf Holzheid
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.

Ludolf
--
Ludolf Holzheid
 
Bihl+Wiedemann GmbH
Floßwörthstraße 41
68199 Mannheim, Germany
 
Tel: +49 621 33996-0
Fax: +49 621 3392239
 
mailto:***@bihl-wiedemann.de
http://www.bihl-wiedemann.de
 
Sitz der Gesellschaft: Mannheim
Geschäftsführer: Jochen Bihl, Bernhard Wiedemann
Amtsgericht Mannheim, HRB 5796
Loading...