Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Hosting websites on DMZ gives cert error from LAN

    Scheduled Pinned Locked Moved General pfSense Questions
    10 Posts 6 Posters 1.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      notarobot
      last edited by

      Hello everyone,

      I'm currently hosting to personal websites at home on a DMZ, both are in containers and another container act as reverse proxy thanks to Nginx. On the reverse proxy Let's Encrypt takes care of the certificates for me.
      When I access my websites from the outside of my LAN (from WAN) everything works perfectly but if I want to access it from inside the LAN I have an error because the certificate is wrong.
      The error is: SEC_ERROR_UNKNOWN_ISSUER

      When I displays the certificate it says it has been delivered by PFSense instead of Let's Encrypt?

      Maybe it's dumb but I can't figure it out, i'd be happy to have some help...

      NollipfSenseN 1 Reply Last reply Reply Quote 0
      • NollipfSenseN
        NollipfSense @notarobot
        last edited by

        @notarobot Just to make sure and to rule out, are you also using pfBlockerNG?

        pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
        pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

        1 Reply Last reply Reply Quote 0
        • N
          notarobot
          last edited by

          Nope !

          1 Reply Last reply Reply Quote 0
          • S
            SteveITS Galactic Empire
            last edited by

            That sounds like you're connecting to the pfSense GUI. Split DNS will avoid the router altogether. Is your web site hostname resolving to the WAN IP of the router, and if so is NAT reflection enabled for that rule?

            Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
            When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
            Upvote 👍 helpful posts!

            1 Reply Last reply Reply Quote 0
            • RicoR
              Rico LAYER 8 Rebel Alliance
              last edited by

              https://docs.netgate.com/pfsense/en/latest/nat/accessing-port-forwards-from-local-networks.html

              -Rico

              N 1 Reply Last reply Reply Quote 0
              • N
                notarobot @Rico
                last edited by

                @Rico No success with solution 1. I want to try Solution 2 but PfSense is not my DSN Resolver, I use a containerized PiHole.

                GertjanG 1 Reply Last reply Reply Quote 0
                • GertjanG
                  Gertjan @notarobot
                  last edited by

                  @notarobot said in Hosting websites on DMZ gives cert error from LAN:

                  I use a containerized PiHole.

                  So pfSense is just the router. Not the DNS.
                  And you're telling us that pihole can't do something as a "host override" ?

                  I'm willing to bet it can. So solution 2 is (always) possible.

                  No "help me" PM's please. Use the forum, the community will thank you.
                  Edit : and where are the logs ??

                  1 Reply Last reply Reply Quote 0
                  • N
                    notarobot
                    last edited by

                    @Gertjan said in Hosting websites on DMZ gives cert error from LAN:

                    I'm willing to bet it can. So solution 2 is (always) possible.

                    So what I did was editing the Pihole's /etc/hosts file and adding:
                    X.X.X.X my.domain.name

                    I launched gravity.sh (specific to PiHole) and it seems to work.

                    Does it seems like the right thing to do ?

                    GertjanG 1 Reply Last reply Reply Quote 0
                    • GertjanG
                      Gertjan @notarobot
                      last edited by

                      @notarobot said in Hosting websites on DMZ gives cert error from LAN:

                      Does it seems like the right thing to do ?

                      This is the moment that Iwould advise to check up with pihole manuals/forum/faq/.
                      So I'll to that ;)

                      No "help me" PM's please. Use the forum, the community will thank you.
                      Edit : and where are the logs ??

                      L 1 Reply Last reply Reply Quote 0
                      • L
                        Lola12 Banned @Gertjan
                        last edited by Lola12

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.