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

HA Proxy / Acme Lets encrypt : LAN access problem from inside with external url https

Scheduled Pinned Locked Moved Firewalling
32 Posts 2 Posters 1.4k 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.
  • J
    johnpoz LAYER 8 Global Moderator @ducati57
    last edited by Oct 13, 2023, 4:35 PM

    @ducati57 You don't need to put anything in there..

    Out of the box pfsense will ask itself (unbound) for dns - which resolves..

    dns.jpg

    You only need to put those in - if you want pfsense to use them, or you want to forward to them from unbound, etc. I have zero use for any external dns provider since I just let unbound resolve, as it does by default anyway..

    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.8, 24.11

    D 1 Reply Last reply Oct 13, 2023, 4:46 PM Reply Quote 0
    • D
      ducati57 @johnpoz
      last edited by Oct 13, 2023, 4:46 PM

      @johnpoz Ok, thanks for your patience :)

      I just modified it as indicated in your comment.=>

      e93b85d2-b5e3-487b-9ddd-fe9727f5eb35-image.png

      J 1 Reply Last reply Oct 13, 2023, 4:47 PM Reply Quote 0
      • J
        johnpoz LAYER 8 Global Moderator @ducati57
        last edited by Oct 13, 2023, 4:47 PM

        @ducati57 If that is pfsense IP, why would you set that and not just use loopback? Which is does all on its own..

        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.8, 24.11

        D 1 Reply Last reply Oct 13, 2023, 4:54 PM Reply Quote 0
        • D
          ducati57 @johnpoz
          last edited by ducati57 Oct 13, 2023, 4:55 PM Oct 13, 2023, 4:54 PM

          @johnpoz

          If I do not indicate anything, and I configure Pfsense identical to your screenshot, here is the result
          (KO update status because no external access because no DNS?)

          70dc209e-fbc0-4b2f-be78-f5597a0886a9-image.png

          J 1 Reply Last reply Oct 13, 2023, 5:05 PM Reply Quote 0
          • J
            johnpoz LAYER 8 Global Moderator @ducati57
            last edited by Oct 13, 2023, 5:05 PM

            @ducati57 did you modify unbound settings?

            unbound.jpg

            By default its ALL, did you change it and not include localhost?

            Is unbound running even?

            services.jpg

            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.8, 24.11

            D 1 Reply Last reply Oct 13, 2023, 5:16 PM Reply Quote 0
            • D
              ducati57 @johnpoz
              last edited by ducati57 Oct 13, 2023, 6:05 PM Oct 13, 2023, 5:16 PM

              @johnpoz

              Here is the configuration of the different elements / services do you see an error? (security problem, loop, bug, useless,etc..)

              c2572561-1f74-4874-9695-4e42891ad506-image.png

              J 1 Reply Last reply Oct 13, 2023, 8:00 PM Reply Quote 0
              • J
                johnpoz LAYER 8 Global Moderator @ducati57
                last edited by Oct 13, 2023, 8:00 PM

                @ducati57 well I see one thing that I personally would not do.. If your going to set the specific interfaces that unbound listens on, why would you click on wan.. Do you have devices that would be using the dns via its wan IP?

                Your saying with those settings it does not populate 127.0.0.1 in the system tab for dns? If you do not put anything in the dns tab?

                Here I just fired up my 2.7 box.. Its pretty much default out of the box.. Other than changing its lan to other than the default 192.168.1.1

                default.jpg

                I then changed from all, to just lan and got this error

                loop.jpg

                So I selected localhost along with just lan and it worked and system still shows dns as loopback 127.0.0.1

                update.jpg

                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.8, 24.11

                D 1 Reply Last reply Oct 14, 2023, 7:41 AM Reply Quote 0
                • D
                  ducati57 @johnpoz
                  last edited by Oct 14, 2023, 7:41 AM

                  @johnpoz
                  Good morning,

                  I just made the modification, it's gone.
                  c26bbc6c-c5fb-403d-afb4-cfaffd85b237-image.png

                  However still no local LAN access via HTTPS from an external url

                  J 1 Reply Last reply Oct 14, 2023, 11:32 AM Reply Quote 0
                  • J
                    johnpoz LAYER 8 Global Moderator @ducati57
                    last edited by Oct 14, 2023, 11:32 AM

                    @ducati57 said in HA Proxy / Acme Lets encrypt : LAN access problem from inside with external url https:

                    However still no local LAN access via HTTPS from an external url

                    did you create you host overrides??

                    Are you clients pointing to pfsense for dns?

                    Do a simple dns query from a client - did it resolve your fqdn to pfsense wan IP? Vs the public.. Maybe your browser is using doh for dns? Vs pointing to pfsense IP for it.

                    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.8, 24.11

                    D 1 Reply Last reply Oct 14, 2023, 4:38 PM Reply Quote 1
                    • D
                      ducati57 @johnpoz
                      last edited by ducati57 Oct 14, 2023, 4:42 PM Oct 14, 2023, 4:38 PM

                      @johnpoz Yes, here is the conf for "Host Overrides"

                      af710cb1-a255-4082-a544-e68238ef384e-image.png

                      Yes, here is my PC (wifi) where it is visible in DNS (Pfsense) in 192.168.1.1

                      ec4edc7e-e4fd-437e-849b-d559ac7912a2-image.png
                      b2ee527c-8393-4da8-adeb-818b979ed588-image.png

                      J 1 Reply Last reply Oct 14, 2023, 4:45 PM Reply Quote 0
                      • J
                        johnpoz LAYER 8 Global Moderator @ducati57
                        last edited by johnpoz Oct 14, 2023, 4:48 PM Oct 14, 2023, 4:45 PM

                        @ducati57 so your nslookup for dom.namedomaine.ovh returns 192.168.1.21

                        do your nslookup dom.namedomaine.ovh

                        What does it reply with - if that works and your still going to the public in your browser - you sure your browser isn't using doh vs your local dns.

                        And that is not the right override anyway - if you want it to bounce off pfsense wan IP running haproxy, then it should be to pfsense wan IP.. Not the actual host IP the site is running on.

                        haproxy.jpg

                        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.8, 24.11

                        D 1 Reply Last reply Oct 14, 2023, 5:03 PM Reply Quote 1
                        • D
                          ducati57 @johnpoz
                          last edited by ducati57 Oct 14, 2023, 5:09 PM Oct 14, 2023, 5:03 PM

                          @johnpoz said in HA Proxy / Acme Lets encrypt : LAN access problem from inside with external url https:

                          do your nslookup dom.namedomaine.ovh

                          A test from my laptop :

                          27498b4b-0fea-4454-b9f8-3c8358a14eed-image.png

                          A direct test of the VM on my ESXI :

                          907e6ebb-49a5-4ae2-81c3-6e2a8259af45-image.png

                          J 1 Reply Last reply Oct 14, 2023, 5:22 PM Reply Quote 0
                          • J
                            johnpoz LAYER 8 Global Moderator @ducati57
                            last edited by Oct 14, 2023, 5:22 PM

                            @ducati57 then it should be hitting your haproxy - look in the haproxy logs.. Do you have some rule on pfsense lan that would prevent that? Like are you doing policy routing.

                            Also again is your browser using doh.. Many browsers love to default that with no mention of it to the user..

                            Look in your browsers dns cache to validate it resolved to your wan IP where haproxy is listening..

                            For example in firefox you can go here to view the cache
                            about:networking#dns

                            trr.jpg

                            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.8, 24.11

                            D 1 Reply Last reply Oct 14, 2023, 5:29 PM Reply Quote 1
                            • D
                              ducati57 @johnpoz
                              last edited by ducati57 Oct 14, 2023, 5:40 PM Oct 14, 2023, 5:29 PM

                              @johnpoz

                              Pour cette section je peux laisser ainsi ou dois-je mettre LAN et localhost ?
                              b0b831dc-4c3e-41ac-b973-8804b72165aa-image.png

                              I just rebooted Pfsense, cleaned the browser caches on my phone and laptop, as well as a reboot.
                              I can now connect locally via the external address! :)
                              Thanks a lot for the help !!

                              b0604209-19da-4078-9967-df161424e420-image.png

                              Concerning the 2nd subject with my Dahua VMS (NVR) also any idea?

                              J 1 Reply Last reply Oct 14, 2023, 5:41 PM Reply Quote 0
                              • J
                                johnpoz LAYER 8 Global Moderator @ducati57
                                last edited by Oct 14, 2023, 5:41 PM

                                @ducati57 said in HA Proxy / Acme Lets encrypt : LAN access problem from inside with external url https:

                                Concerning the 2nd subject with my Dahua VMS (NVR) also any idea?

                                I don't know what that is - or how it suppose to work. You want to run that through your haproxy as well? If its not truely https then haproxy might not work but you could use tcp mode in haproxy maybe?

                                Does that work if you turn off the rfc1918 block like you were doing before with these other vms?

                                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.8, 24.11

                                D 1 Reply Last reply Oct 14, 2023, 9:34 PM Reply Quote 0
                                • D
                                  ducati57 @johnpoz
                                  last edited by ducati57 Oct 14, 2023, 9:39 PM Oct 14, 2023, 9:34 PM

                                  @johnpoz
                                  Last question regarding problem 1, could you confirm that I do not have to make any modifications to this issue in the DNS RESOLVER?
                                  5d627d98-e2cb-4261-9fc8-37d805de507f-image.png

                                  ==================

                                  Concerning problem 2, this is a VM dedicated to recording video streams from different cameras.
                                  The VM uses a logger which broadcasts via port 37777.
                                  7fd4a3e9-0195-4893-b7bc-467bd02382e2-image.png

                                  It is possible to connect to the recorder (VM) via an application uses IP or URL, Port, login, password.

                                  62b280a7-350f-412b-8a94-b78ec6100361-image.png

                                  And yes I want to encapsulate the service (port37777) in https ideally.
                                  So I'm thinking of testing TCP in HA proxy....

                                  J 1 Reply Last reply Oct 14, 2023, 9:44 PM Reply Quote 0
                                  • J
                                    johnpoz LAYER 8 Global Moderator @ducati57
                                    last edited by Oct 14, 2023, 9:44 PM

                                    @ducati57 to your ALL for outgoing - this is just the default. You prob have no use for your other interfaces for "outgoing" Do you have other downstream DNS that is only available via your lan side interfaces?? That you want to do say a domain override with?

                                    I have my outgoing set to localhost.. This can remove some issues where unbound trying to bind to interfaces like a vpn or other interface that might not be up when unbound starts.

                                    While "all" is a good default setting to make sure it just works.. If your looking to tweak your settings and get specific setup for your specific network needs.. You could adjust for your needs.

                                    This is my setup
                                    thisismine.jpg

                                    But your "needs" or wants might be different for your specific network.

                                    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.8, 24.11

                                    D 1 Reply Last reply Oct 15, 2023, 7:22 AM Reply Quote 0
                                    • D
                                      ducati57 @johnpoz
                                      last edited by Oct 15, 2023, 7:22 AM

                                      @johnpoz

                                      I will leave it on All for "Outgoing Network Interfaces" and if necessary I will change it in the future.

                                      baede4c6-d014-4e3b-af80-10183f66f09a-image.png

                                      /////////////////////////////////////////////////

                                      Concerning problem 2, this is a VM dedicated to recording video streams from different cameras.
                                      The VM uses a logger which broadcasts via port 37777.
                                      7fd4a3e9-0195-4893-b7bc-467bd02382e2-image.png

                                      It is possible to connect to the recorder (VM) via an application uses IP or URL, Port, login, password.

                                      62b280a7-350f-412b-8a94-b78ec6100361-image.png

                                      And yes I want to encapsulate the service (port37777) in https ideally.
                                      So I'm thinking of testing TCP in HA proxy....

                                      D 1 Reply Last reply Oct 18, 2023, 8:09 PM Reply Quote 0
                                      • D
                                        ducati57 @ducati57
                                        last edited by Oct 18, 2023, 8:09 PM

                                        @ducati57 ?

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