Phillip Odam
August 30, 2021 07:26AM
Hi Ottavio

There’s no solution just with nginx as it currently that I know of, to
avoid the need for a port forward in the NAT router a simple solution would
be to use a ssh tunnel - this does separate initial connection from
subsequent requests as you’re unlikely to want to establish a new tunnel
for each and every request and ‘knowledge’ the connection is established is
no longer inherently part of the application making the HHTP request. So to
simplify things you could just expect the ssh tunnel to be established as a
precondition (once off initial setup)

Phillip

On Friday, August 27, 2021, Maxim Dounin <mdounin@mdounin.ru> wrote:

> Hello!
>
> On Fri, Aug 27, 2021 at 01:59:03PM +0200, Ottavio Campana wrote:
>
> > Dear Phillip,
> >
> > I know Tailscale very well, I use it and like it a lot. But my final goal
> > is finding a way to implement the ONVIF Uplink service,
> > https://www.onvif.org/specs/srv/uplink/ONVIF-Uplink-Spec.pdf , where I
> can
> > have several devices on the LAN that need to connect to a remote server,
> > which will then send commands.
> >
> > Therefore I need a way to start a connection from nginx (or an external
> > program and then passing the fd through a unix socket domain) and make it
> > act as if the fd were obtained from an accept.
> >
> > Nginx works with events and I find it very difficult to find a mechanism
> to
> > pass this connection to it.
> >
> > Do you have other ideas?
>
> The most simple solution I can think of is to open two
> connections: to your command endpoint and to nginx, and proxy
> everything once the connections are established.
>
> --
> Maxim Dounin
> http://mdounin.ru/
> _______________________________________________
> nginx-devel mailing list
> nginx-devel@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel
>
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Adding a fd that is not obtained through accept to the list the active connections

Ottavio Campana 386 August 26, 2021 09:14AM

Re: Adding a fd that is not obtained through accept to the list the active connections

Phillip Odam 119 August 26, 2021 04:00PM

Re: Adding a fd that is not obtained through accept to the list the active connections

Ottavio Campana 117 August 27, 2021 05:48AM

Re: Adding a fd that is not obtained through accept to the list the active connections

Phillip Odam 120 August 27, 2021 07:12AM

Re: Adding a fd that is not obtained through accept to the list the active connections

Ottavio Campana 118 August 27, 2021 08:00AM

Re: Adding a fd that is not obtained through accept to the list the active connections

Maxim Dounin 175 August 27, 2021 11:42AM

Adding a fd that is not obtained through accept to the list the active connections

Phillip Odam 118 August 30, 2021 07:26AM

Re: Adding a fd that is not obtained through accept to the list the active connections

Ottavio Campana 143 August 31, 2021 03:20PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 263
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready