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

    Trouble actually hitting the correct applet from external connection

    Scheduled Pinned Locked Moved Cache/Proxy
    52 Posts 2 Posters 8.2k 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.
    • M
      menethoran @johnpoz
      last edited by

      @johnpoz Screenshot 2022-01-11 141756.jpg

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

        @menethoran chrome?

        https://thegeekpage.com/err-unsafe-port/

        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

        M 2 Replies Last reply Reply Quote 0
        • M
          menethoran @johnpoz
          last edited by

          @johnpoz fixed... Effing Chrome.

          well, now knowing THAT, im gonna keep it that way :)

          1 Reply Last reply Reply Quote 0
          • M
            menethoran @johnpoz
            last edited by

            @johnpoz OK, i got Ombi working, nextcloud is still not liking it (to get ombi to work, i had to disable the 1:1 NAT rule i thought i needed (but apparently do not) for plex to work

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

              @menethoran are you trying to run nexcloud through haproxy? Is that a different fqdn, netclould.yourdomain.tld ?

              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

              M 1 Reply Last reply Reply Quote 0
              • M
                menethoran @johnpoz
                last edited by

                @johnpoz i am trying to get it to run through HAProxy, yes.

                Same domain but cloud.domain.com rather than ombi.domain.com

                currently getting a 503 error.

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

                  @menethoran 503 points to your backend check failing, turn that off. I ran into sim problem with either ombi or overseerr, had to set check to none.

                  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

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    menethoran @johnpoz
                    last edited by

                    @johnpoz as in the health check? (that was already turned off).

                    BUT, i avoided the 503 error by changing my PfSense SSL port to 8443.

                    But, now im getting a 400 error, even when connecting with https its telling me im connecting via http

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

                      @menethoran well yeah if your going to be using ports for haproxy, you can't be using the ports on other services..

                      You trying to do this with shared frontend, I take it your doing ssl offloading, or your doing it on the cloud instance? Is it running on 443, some other port? like 9001, is that in the clear, or is that also https, where your trying to do a ssl frontend and also on the backend?

                      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

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        menethoran @johnpoz
                        last edited by

                        @johnpoz Home assistant created the nextcloud instance and puts it on port 9001 (it has something to do with KVM not allowing the assigning of ports below 9000 or something. I did a little research but quit when i found out the issue is currently "baked in".

                        I dont particularly care what port it all runs across, just want it to be secure (i cant do that with Ombi as i understand it because Ombi doesnt support SSL yet (as Ive read)).

                        So, preferably, id like to go to https://cloud.mydomain.com and have it end at my nextcloud instance at 192.168.2.2:9001

                        here are my front and backends.... figure its easier just to show you:

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          menethoran @menethoran
                          last edited by

                          @menethoran backend.jpg frontend1.jpg frontend2.jpg frontend3.jpg frontend4.jpg

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

                            @menethoran you sure you can even setup nextclould without ssl?

                            So you can access locally with just http://192.168.2.2:9000?

                            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

                            M 1 Reply Last reply Reply Quote 0
                            • M
                              menethoran @johnpoz
                              last edited by

                              @johnpoz no. but i can at: https://192.168.2.2:9001
                              http:// leads to a 400 error.

                              weirdly, it looks like the SSL certificate is the one issued by TrueNAS

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

                                @menethoran well if you can not get to it without ssl, and your setup your backend to not be ssl, not how you would think it would work.

                                Either use ssl on the backend, or get nextcloud working without ssl, that you can load locally before you try setting it up with haproxy.

                                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

                                M 1 Reply Last reply Reply Quote 0
                                • M
                                  menethoran @johnpoz
                                  last edited by

                                  @johnpoz i wasnt trying to set up my backend (or front end for that matter) not to use SSL, i want ssl from start to finish with this one (again, ombi i dont care about as you cant use ssl... nextcloud is a bit different, and I definitely want SSL. I have ticked and unticked the (Encrypt)SSL and SSL checks. but neither seems to have any impact.

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

                                    @menethoran your backend has to be set to use ssl if your going to use ssl with it.. And your frontend needs to be setup as ssl as well, etc.

                                    I don't have anything setup that way.. Let me find something I can run through haproxy that would use a acme cert on the backend. Truenas cert doesn't seem correct and why would haproxy trust some selfsigned cert, etc.

                                    edit: have a look around here for that question, I know its come up for ssl on the backend.. Here is one I found
                                    https://forum.netgate.com/topic/142748/haproxy-ssl-mode-help-needed

                                    "Either add certificates and offloading to the haproxy frontend, or use ssl/tcp mode and use SNI for the webserver selection.. As the Host-header is not available when passing SSL along as-is."

                                    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

                                    M 1 Reply Last reply Reply Quote 0
                                    • M
                                      menethoran @johnpoz
                                      last edited by

                                      @johnpoz honestly, i should have had WAY more experience with this stuff before getting this deep into it... so, i dont know.

                                      It almost seems as if something is broken in the middle. Like, it seems to be coming into the network with SSL, gets forwarded almost correctly but (im guessing nginx) does something weird (im guessing nginx as thats what TrueNAS uses) and sends me almost like im going to an unsecured site. I see the https: corss out on the browser, and looking at the cert, it definitely isnt one ive ever created...

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

                                        @menethoran read the thread I linked to @PiBa is the resident guru of guru's when it comes to HAproxy..

                                        With my page of him, maybe he will drop by and smack some of his wisdom down..

                                        BTW - going to move this to the proxy section..

                                        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

                                        M 1 Reply Last reply Reply Quote 0
                                        • johnpozJ johnpoz moved this topic from Firewalling on
                                        • M
                                          menethoran @johnpoz
                                          last edited by

                                          @johnpoz sounds good!

                                          Yeah, im already using real certificates (which looks like that was part of the problem in the other thread...)

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

                                            @menethoran take note of not being able to pass it thru really directly, etc.

                                            None of the stuff I have hosted with haproxy used ssl on the backend, I always just did the ssl offloaded to the frontend..

                                            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

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