Welcome! Log In Create A New Profile

Advanced

Re: Controlling Access on and off LAN

All files from this thread

File Name File Size   Posted by Date  
smime.p7s 4.3 KB open | download rhysers 12/07/2019 Read message
smime.p7s 4.3 KB open | download rhysers 12/08/2019 Read message
Francis Daly
December 08, 2019 08:52AM
On Fri, Dec 06, 2019 at 10:14:12PM -1000, Rhys Ferris wrote:

Hi there,

> I'm hosting one server: domain.net which at domain.net serves a basic
> homepage and uses iframes to proxy several other services, which are
> defined in location blocks: domain.net/service.
>
> I want to allow all IPs to access domain.net and the services proxied
> inside of it. However I want to restrict direct access to
> domain.net/service from outside my LAN.

Reading that, and reading the config, I'm afraid that I'm not sure what
you are trying to achieve.

Note that "iframe" and "proxy" are unrelated concepts; it is possible
that that might change the understanding of the requirement.

My first guess is that you want to allow anyone to access
domain.net/service; and you want LAN-users to be able to access
prometheus:1234/service; and you want off-LAN users to not be able to
access prometheus:1234/service directly.

Is that it?

> 1. If there is a better way to achieve my goal, please tell me. I don't
> have my heart set on this, its just all I could figure.

As above -- I'm not sure what the goal is, so I can't offer a suggestion.

> 2. How do I use the proxy_set_header X-Real-IP $remote_addr; to fake
> the internal IP? or is that even the correct header to be using?

I suspect that that's also part of the goal; I'm unclear on what the aim
there is either.

Possibly your whole question is clear to others; in which case they will
be able to respond in due time.

But in case it's not, it may be helpful for others if you can describe
your goal in other words.

Thanks,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

'Lost' the default config location

chewiesw December 03, 2019 05:28AM

Re: 'Lost' the default config location

Francis Daly December 04, 2019 07:08AM

Controlling Access on and off LAN Attachments

rhysers December 07, 2019 03:16AM

Re: Controlling Access on and off LAN

Francis Daly December 08, 2019 08:52AM

Re: Controlling Access on and off LAN Attachments

rhysers December 08, 2019 07:32PM

Re: Controlling Access on and off LAN

Francis Daly December 10, 2019 07:34AM

Re: Controlling Access on and off LAN

Ian Hobson December 09, 2019 05:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 218
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