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.5k 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.
    • D
      ducati57 @johnpoz
      last edited by

      @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

      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @ducati57
        last edited by

        @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 Reply Quote 1
        • D
          ducati57 @johnpoz
          last edited by ducati57

          @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

          johnpozJ 1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator @ducati57
            last edited by johnpoz

            @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 Reply Quote 1
            • D
              ducati57 @johnpoz
              last edited by ducati57

              @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

              johnpozJ 1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator @ducati57
                last edited by

                @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 Reply Quote 1
                • D
                  ducati57 @johnpoz
                  last edited by ducati57

                  @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?

                  johnpozJ 1 Reply Last reply Reply Quote 0
                  • johnpozJ
                    johnpoz LAYER 8 Global Moderator @ducati57
                    last edited by

                    @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 Reply Quote 0
                    • D
                      ducati57 @johnpoz
                      last edited by ducati57

                      @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....

                      johnpozJ 1 Reply Last reply Reply Quote 0
                      • johnpozJ
                        johnpoz LAYER 8 Global Moderator @ducati57
                        last edited by

                        @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 Reply Quote 0
                        • D
                          ducati57 @johnpoz
                          last edited by

                          @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 Reply Quote 0
                          • D
                            ducati57 @ducati57
                            last edited by

                            @ducati57 ?

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