Comment on issues setting up nginx as an https proxy

<- View Parent
brokenlcd@feddit.it ⁨1⁩ ⁨week⁩ ago

I think I didn’t explain myself the right way.

Computers from inside of Router B will access the server via it’s IP. Nginx will only serve an HTML file with the links. Basically acting as a bookmark page for the IP:port combos. While anything from Router A will receive a landing page that has the domain name, that will be resolved by pihole, exposed to the machines on Router A as an open port on router b`

So basically the DNS will only be used on machines from Router A, and the rules on nginx are just to give links to the reverse proxy if the machine is from router A (I.e. the connection is coming from 10.0.0.1 from the server’s POV), or the page with the raw IP of the server+ port of the service.

router A is Unfortunately junk from my ISP, and it doesn’t allow me to change the DNS. So I’ll just add Router B` ( and thus, the pihole instance that’s on the server) as a primary dns, and an external one as a secondary DNS as fallback.

If you decide on doing the secondary local DNS on the server on Router B network, there is no need to loop back, as that DNS will maintain domain lookup and the requests on 10.0.0.x all internal to Router B network

Wouldn’t this link to the 192.168.0.y address of router B pass through router A, and loop back to router B, routing through the slower cable? Or is the router smart enough to realize he’s just talking to itself and just cut out `router A from the traffic?

source
Sort:hotnewtop