Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - bscheller

#1
General Discussion / nginx Reverse Proxy for Pihole
February 06, 2021, 10:25:07 PM
Hello All,

Just starting a journy with OPNsense and I am trying to replicate some functionality that was working in my prior implementation.  I am currently attempting to get nginx working as a reverse proxy to a Pihole instance using Let's Encrypt SSL certs.  Currently, when I hit pihole.my.domain I am getting part of the output from Pihole but only the html is loading.  The css and js are returning 404 errors. 

I have changed the port for OPNsense GUI so that 80 and 443 are available for nginx.  I have dynamic DNS working so that pihole.my.domain resolves to my WAN IP.  The Let's Encrypt Cert has pihole.my.domain listed in Alt Names and currently shows a status of OK and was retrieved earlier this week.  Pihole is accessible at the http://[IP Address of Pihole box]/admin.

Here is my configuration:

Upstream Server
  Name: Pihole
  IP: IP address of pihole box
  Port: 80
  Server Priority: 1

Upstream
  Server Entries: Pihole
  Load Balancing Algorithm: Weighted Round Robin

Location
  URL Pattern: /
  Match Type: None
  URL Rewriting: Nothing
  Upstream Servers: Pihole
  Path Prefix: /admin

HTTP Server
  HTTP Listen Port: 80
  HTTPS Listen Port: 443
  Server Name: pihole.my.domain
  TLS Certificate: Let's Encrypt Cert
  Client CA Certificate: Fake LE Intermediate X1
  Enable Let's Encrypt Support: Checked
  HTTPS Only: Checked

Can anyone point out what I have configured incorrectly or provide any other pointers?

Thanks for your time!

Brian Scheller
OPNsense 21.1
Protectli FW6E