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

cert error

Scheduled Pinned Locked Moved pfBlockerNG
8 Posts 2 Posters 467 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.
  • R
    reynold
    last edited by reynold Aug 29, 2023, 3:42 PM Aug 29, 2023, 3:36 PM

    Hello,
    clients get certificate error pop up message
    That's a really strange behaviour
    It seems happen when user open pdf document on a public shared folder in file server
    alt text

    J 1 Reply Last reply Aug 29, 2023, 3:51 PM Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator @reynold
      last edited by johnpoz Aug 29, 2023, 3:53 PM Aug 29, 2023, 3:51 PM

      @reynold you would only get that cert when you were redirected to blocked page.. So what your trying to access is being redirected by pfblocker..

      Or your trying to do something that resolves to public IP and the pfblocker block page is answering vs what your really wanting to access. If your server is local, you should access it via its local fqdn or IP..

      Or you should setup nat reflection so that if you do hit public IP of pfsense, you get redirected to the local IP..

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.7.2, 24.11

      R 1 Reply Last reply Aug 29, 2023, 4:00 PM Reply Quote 0
      • R
        reynold @johnpoz
        last edited by reynold Aug 29, 2023, 4:02 PM Aug 29, 2023, 4:00 PM

        @johnpoz
        The file server where documents are stored is also local DNS server.
        I set up dns forward in my local dns server.
        It forward queries to pfblocker (192.168.1.254 is local address of pfsense)
        Maybe i did something wrong in dns forwarding?
        (link url)

        J 1 Reply Last reply Aug 29, 2023, 4:30 PM Reply Quote 0
        • J
          johnpoz LAYER 8 Global Moderator @reynold
          last edited by Aug 29, 2023, 4:30 PM

          @reynold if your clients are using that for dns, and your trying to access say server.somedomain.tld the it should resolve that to your local IP of this server.somedomain.tld, not some public IP or some other IP on pfsense or the pfblocker vip, etc.

          The only way to be presented with that pfblocker cert - is where your trying to via some fqdn resolve to a IP on pfsense where pfblocker serves up that cert..

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.7.2, 24.11

          R 1 Reply Last reply Aug 29, 2023, 4:41 PM Reply Quote 0
          • R
            reynold @johnpoz
            last edited by Aug 29, 2023, 4:41 PM

            @johnpoz
            Yes, my clients are using that server for primary DNS:
            You say that i need to enter nslookup server.domain.local on clients?
            And it has to give me back the static ip address of the server (in my case 192.168.1.2)?

            J 1 Reply Last reply Aug 29, 2023, 4:53 PM Reply Quote 0
            • J
              johnpoz LAYER 8 Global Moderator @reynold
              last edited by Aug 29, 2023, 4:53 PM

              @reynold said in cert error:

              And it has to give me back the static ip address of the server (in my case 192.168.1.2)?

              Ok if your trying to access via a "browser" make sure its not using doh, browser makers love to point the browser to their own dns vs using local..

              But there is no way you could get that cert asking 192.168.1.2 if pfsense does not have the IP 192.168.1.2 on it.. So clearly your accessing an IP on pfsense for the pfblocker to be served to your client.

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.7.2, 24.11

              R 1 Reply Last reply Aug 29, 2023, 5:01 PM Reply Quote 0
              • R
                reynold @johnpoz
                last edited by reynold Aug 29, 2023, 5:03 PM Aug 29, 2023, 5:01 PM

                @johnpoz
                I set up dns resolver on pfSense and i set up domain overrides.
                192.168.1.2 is my local DNS server and file server
                It should be ok but could it causes the issues?
                alt text

                J 1 Reply Last reply Aug 29, 2023, 6:00 PM Reply Quote 0
                • J
                  johnpoz LAYER 8 Global Moderator @reynold
                  last edited by Aug 29, 2023, 6:00 PM

                  @reynold well that could be problematic - since when you forward a returned IP being rfc1918 would be a rebind..

                  So with your client be it nslookup or dig or host, whatever your fav dns client is from cmd line. Do a query to pfsense IP, do you get back local resources that your DNS is resolving?

                  When you forward to some other NS, you prob want to allow for rebind from it, create a private-domain entry in your unbound config.

                  See here

                  https://docs.netgate.com/pfsense/en/latest/services/dns/rebinding.html

                  But if was a rebind pfsense would not return an IP for some fqdn query, so how would you end up on pfsense IP? What is more likely is your browser is doing doh, and getting some public IP that is say pfsense wan, to how your getting the pfblocker dnsbl cert..

                  But you should actually validate that is working.. But if your running your own DNS, all your clients should really point directly to that IP for dns..

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                  1 Reply Last reply Reply Quote 0
                  8 out of 8
                  • First post
                    8/8
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                    This community forum collects and processes your personal information.
                    consent.not_received