#1 2017-10-09 09:25:57

tueddy
Member
Registered: 2010-08-03
Posts: 11

HTTP(S) tunnel with mORMot like ngrok

Hi,

i'm new to mORMot and wonder if it's possible to create a http(s)-tunnel like ngrok:

I have 100 clients running my software with a local indy based webserver. They serve local wordpress websites (indy HTTP server + php + SQLite) for intranet application.
This is already functional and running fine. Now this pages should be reachable from Internet.

My idea is to connect the client with my webserver (long polling?) and create a dynamic DNS entry/subdomain like http(s)://MyClient.Weberserver.com
Th client should instantiate and keep the connection due to NAT/firewall problems.

Can anyone point me to the right direction/samples or starting point to do this proxy/tunneling?

Thanks & best
Dirk

Offline

#2 2017-10-09 09:39:39

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,240
Website

Re: HTTP(S) tunnel with mORMot like ngrok

Why no just use a nginx front-end for this?

Offline

#3 2017-10-09 09:56:40

tueddy
Member
Registered: 2010-08-03
Posts: 11

Re: HTTP(S) tunnel with mORMot like ngrok

Hi ab,

thanks for your response!
I made a test with ngrok, the tunneling works fine so far.
But as far as i can see ngrok is a commercial solution and you have to pay per user (!)
Not that i don't want to pay for it, but i see more possibilities to have full control over the tunnel connections when i do it myself..

E.g. i have to tell the wordpress environment the current hostname/permalink structure. I could set these values before before the connection is established.

I wonder if it's possible with a mix of mORMot long-polling connection/websocket/proxy?

Dirk

Offline

#4 2017-10-09 12:12:14

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,240
Website

Re: HTTP(S) tunnel with mORMot like ngrok

I don't understand why you are talking about WebSockets or long-polling in the context of a Indy HTTP server, and a WordPress website.

Offline

#5 2017-12-28 07:03:36

keinn
Member
Registered: 2014-10-20
Posts: 100

Re: HTTP(S) tunnel with mORMot like ngrok

@tueddy try frp  https://github.com/fatedier/frp/blob/master/README.md  it is opensoure .  and performance is very very good

Offline

#6 2017-12-28 09:32:32

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,240
Website

Re: HTTP(S) tunnel with mORMot like ngrok

I wonder, what is the benefit of FRP in respect to NGINX as a reverse proxy?

Offline

#7 2017-12-28 10:15:33

keinn
Member
Registered: 2014-10-20
Posts: 100

Re: HTTP(S) tunnel with mORMot like ngrok

ngrok or frp , they main and single purpose is to by pass the NAT device . if u have a PC behind your home Router \ firewall device , and u DONT have a public static ip allow u direct access that PC from outside  ,then ngrok \ frp comes handy .

Last edited by keinn (2017-12-28 10:15:55)

Offline

#8 2018-01-02 21:26:09

tueddy
Member
Registered: 2010-08-03
Posts: 11

Re: HTTP(S) tunnel with mORMot like ngrok

keinn wrote:

@tueddy try frp  https://github.com/fatedier/frp/blob/master/README.md  it is opensoure .  and performance is very very good

@keinn Thanks! That's what i'm looking for!
Best regards
Dirk

Offline

Board footer

Powered by FluxBB