Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Selfhosted
  3. Help with SSL Cloudflare

Help with SSL Cloudflare

Scheduled Pinned Locked Moved Selfhosted
24 Posts 5 Posters 0 Views
  • 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.
  • cutebc24@piefed.socialC [email protected]

    So, I tried linking my Lemmy instance akaris.space but it says the ssl handshake failed and i can't seem to figure out what went wrong.

    R This user is from outside of this forum
    R This user is from outside of this forum
    [email protected]
    wrote last edited by
    #2

    https://developers.cloudflare.com/ssl/origin-configuration/ssl-modes/ you could use a less strict mode here

    cutebc24@piefed.socialC 1 Reply Last reply
    1
    • cutebc24@piefed.socialC [email protected]

      So, I tried linking my Lemmy instance akaris.space but it says the ssl handshake failed and i can't seem to figure out what went wrong.

      tal@lemmy.todayT This user is from outside of this forum
      tal@lemmy.todayT This user is from outside of this forum
      [email protected]
      wrote last edited by
      #3

      I'm not familiar enough with Cloudflare's error messages --- or deployment with Cloudflare --- to know what exact behavior that corresponds to, but I'd guess that most likely it can open a TCP connection to port 443 on what it thinks is your server, but it's not getting HTTPS on that port or your server isn't configured to serve up the right certificate for that hostname or the web server software running on it is otherwise broken. Might be some sort of intervening firewall.

      I don't know where your actual server is, may not even be accessible to me. But if you have a Linux machine that can talk to it directly -- including, perhaps, the server itself -- you should be able to see what certificate it's handing back via:

      $ openssl s_client -showcerts -servername akaris.space IP-address-of-actual-server:443
      

      That'll try to establish a TLS connection, will send the specified server name so that if you're using vhosting on the server, it knows which site to return, and then will tell you what certificate the web server used. Would probably be my first diagnostic step if I thought that there was a problem with the TLS handshake on a machine I was running.

      That might provide enough information to you to let you resolve the issue yourself.

      Beyond that, trying to provide much more information probably isn't possible without more information about how your server is set up and what actually is working. You can censor IP addresses if you want to keep that private.

      1 Reply Last reply
      1
      • cutebc24@piefed.socialC [email protected]

        So, I tried linking my Lemmy instance akaris.space but it says the ssl handshake failed and i can't seem to figure out what went wrong.

        3dcadmin@lemmy.relayeasy.com3 This user is from outside of this forum
        3dcadmin@lemmy.relayeasy.com3 This user is from outside of this forum
        [email protected]
        wrote last edited by
        #4

        How are you using Cloudflare, and what are you serving the lemmy instance on? I'm guessing it is due to the ssl mode chosen as said before

        3dcadmin@lemmy.relayeasy.com3 cutebc24@piefed.socialC 2 Replies Last reply
        1
        • 3dcadmin@lemmy.relayeasy.com3 [email protected]

          How are you using Cloudflare, and what are you serving the lemmy instance on? I'm guessing it is due to the ssl mode chosen as said before

          3dcadmin@lemmy.relayeasy.com3 This user is from outside of this forum
          3dcadmin@lemmy.relayeasy.com3 This user is from outside of this forum
          [email protected]
          wrote last edited by
          #5

          You want to use flexible ssl/tls for starters, doubtful it will work otherwise. Log in to cloudflare, choose domain, then SSL/TLS and see if encryption is set to flexible. See what that gets you, though it can take 15 mins for effects to show up. As long as the server can be reached cloudflare will try and match a certificate so lemmy gets served, as long as the server is set up correctly and the ports etc. are correctly forwarded and open

          1 Reply Last reply
          1
          • 3dcadmin@lemmy.relayeasy.com3 [email protected]

            How are you using Cloudflare, and what are you serving the lemmy instance on? I'm guessing it is due to the ssl mode chosen as said before

            cutebc24@piefed.socialC This user is from outside of this forum
            cutebc24@piefed.socialC This user is from outside of this forum
            [email protected]
            wrote last edited by
            #6

            I'm using it to set a tunnel, and lemmy instance is yunohost. since my domain is on porkbun, it says now "parked on the bun"

            1 Reply Last reply
            0
            • R [email protected]

              https://developers.cloudflare.com/ssl/origin-configuration/ssl-modes/ you could use a less strict mode here

              cutebc24@piefed.socialC This user is from outside of this forum
              cutebc24@piefed.socialC This user is from outside of this forum
              [email protected]
              wrote last edited by
              #7

              I have, thanks, now it shows "parked on the bun"

              R 1 Reply Last reply
              0
              • cutebc24@piefed.socialC [email protected]

                So, I tried linking my Lemmy instance akaris.space but it says the ssl handshake failed and i can't seem to figure out what went wrong.

                jacksquat@what.forfi.winJ This user is from outside of this forum
                jacksquat@what.forfi.winJ This user is from outside of this forum
                [email protected]
                wrote last edited by [email protected]
                #8

                Set the SSL mode to "Full".
                Then go to "Rules" and create three rules. This is also the order in which they should be processed:

                1.
                Name: lemmy u all
                Custom filter expression: URI path equals /u/*
                All other options disabled.
                
                2.
                Name: lemmy nodeinfo all
                Custom filter expression: URI path equals /nodeinfo/*
                All other options disabled.
                
                3.
                Name: lemmy inbox all
                Custom filter expression: URI path equals /inbox/*
                All other options disabled.
                

                This should get your instance running behind Cloudflare's tunnel.

                *edited for formatting

                cutebc24@piefed.socialC 1 Reply Last reply
                1
                • jacksquat@what.forfi.winJ [email protected]

                  Set the SSL mode to "Full".
                  Then go to "Rules" and create three rules. This is also the order in which they should be processed:

                  1.
                  Name: lemmy u all
                  Custom filter expression: URI path equals /u/*
                  All other options disabled.
                  
                  2.
                  Name: lemmy nodeinfo all
                  Custom filter expression: URI path equals /nodeinfo/*
                  All other options disabled.
                  
                  3.
                  Name: lemmy inbox all
                  Custom filter expression: URI path equals /inbox/*
                  All other options disabled.
                  

                  This should get your instance running behind Cloudflare's tunnel.

                  *edited for formatting

                  cutebc24@piefed.socialC This user is from outside of this forum
                  cutebc24@piefed.socialC This user is from outside of this forum
                  [email protected]
                  wrote last edited by
                  #9

                  What do I put for "rule type" on Cloudflare? ex: redriect or route request, transform request/response, modify configurations

                  jacksquat@what.forfi.winJ 1 Reply Last reply
                  0
                  • cutebc24@piefed.socialC [email protected]

                    What do I put for "rule type" on Cloudflare? ex: redriect or route request, transform request/response, modify configurations

                    jacksquat@what.forfi.winJ This user is from outside of this forum
                    jacksquat@what.forfi.winJ This user is from outside of this forum
                    [email protected]
                    wrote last edited by
                    #10

                    Oops sorry about that, you want them all as configuration rules

                    cutebc24@piefed.socialC 1 Reply Last reply
                    1
                    • cutebc24@piefed.socialC [email protected]

                      I have, thanks, now it shows "parked on the bun"

                      R This user is from outside of this forum
                      R This user is from outside of this forum
                      [email protected]
                      wrote last edited by
                      #11

                      What is porkbun, your hosting provider?

                      cutebc24@piefed.socialC 1 Reply Last reply
                      1
                      • R [email protected]

                        What is porkbun, your hosting provider?

                        cutebc24@piefed.socialC This user is from outside of this forum
                        cutebc24@piefed.socialC This user is from outside of this forum
                        [email protected]
                        wrote last edited by
                        #12

                        The site I bought the domain at :3

                        R 1 Reply Last reply
                        0
                        • jacksquat@what.forfi.winJ [email protected]

                          Oops sorry about that, you want them all as configuration rules

                          cutebc24@piefed.socialC This user is from outside of this forum
                          cutebc24@piefed.socialC This user is from outside of this forum
                          [email protected]
                          wrote last edited by [email protected]
                          #13

                          Thanks

                          jacksquat@what.forfi.winJ 1 Reply Last reply
                          0
                          • cutebc24@piefed.socialC [email protected]

                            Thanks

                            jacksquat@what.forfi.winJ This user is from outside of this forum
                            jacksquat@what.forfi.winJ This user is from outside of this forum
                            [email protected]
                            wrote last edited by
                            #14

                            Hope it helped!

                            cutebc24@piefed.socialC 2 Replies Last reply
                            1
                            • jacksquat@what.forfi.winJ [email protected]

                              Hope it helped!

                              cutebc24@piefed.socialC This user is from outside of this forum
                              cutebc24@piefed.socialC This user is from outside of this forum
                              [email protected]
                              wrote last edited by
                              #15

                              what action do i put, i put ssl, idk

                              jacksquat@what.forfi.winJ 1 Reply Last reply
                              0
                              • jacksquat@what.forfi.winJ [email protected]

                                Hope it helped!

                                cutebc24@piefed.socialC This user is from outside of this forum
                                cutebc24@piefed.socialC This user is from outside of this forum
                                [email protected]
                                wrote last edited by
                                #16

                                but maybe not because it still says the handshake failed

                                1 Reply Last reply
                                0
                                • cutebc24@piefed.socialC [email protected]

                                  what action do i put, i put ssl, idk

                                  jacksquat@what.forfi.winJ This user is from outside of this forum
                                  jacksquat@what.forfi.winJ This user is from outside of this forum
                                  [email protected]
                                  wrote last edited by
                                  #17

                                  I've left all of the actions off

                                  cutebc24@piefed.socialC 2 Replies Last reply
                                  1
                                  • jacksquat@what.forfi.winJ [email protected]

                                    I've left all of the actions off

                                    cutebc24@piefed.socialC This user is from outside of this forum
                                    cutebc24@piefed.socialC This user is from outside of this forum
                                    [email protected]
                                    wrote last edited by
                                    #18

                                    oh, how do u do that? it says i must have an action

                                    jacksquat@what.forfi.winJ 1 Reply Last reply
                                    0
                                    • jacksquat@what.forfi.winJ [email protected]

                                      I've left all of the actions off

                                      cutebc24@piefed.socialC This user is from outside of this forum
                                      cutebc24@piefed.socialC This user is from outside of this forum
                                      [email protected]
                                      wrote last edited by
                                      #19

                                      action parameters are required for the set_config action

                                      1 Reply Last reply
                                      0
                                      • cutebc24@piefed.socialC [email protected]

                                        oh, how do u do that? it says i must have an action

                                        jacksquat@what.forfi.winJ This user is from outside of this forum
                                        jacksquat@what.forfi.winJ This user is from outside of this forum
                                        [email protected]
                                        wrote last edited by
                                        #20

                                        So sorry, it's been a while....
                                        Add the following actions:

                                        1. Browser integrity check (Then turn off)
                                        2. Disable RUM
                                        3. Disable Zaraz
                                        4. Email Obfuscation (Then turn off)
                                        5. Fonts (Then turn off)
                                        6. Hotlink Protection (Then turn off)
                                        7. Opportunistic Encryption (Then turn off)
                                        8. Rocket Loader (Then turn off)
                                        cutebc24@piefed.socialC 1 Reply Last reply
                                        1
                                        • jacksquat@what.forfi.winJ [email protected]

                                          So sorry, it's been a while....
                                          Add the following actions:

                                          1. Browser integrity check (Then turn off)
                                          2. Disable RUM
                                          3. Disable Zaraz
                                          4. Email Obfuscation (Then turn off)
                                          5. Fonts (Then turn off)
                                          6. Hotlink Protection (Then turn off)
                                          7. Opportunistic Encryption (Then turn off)
                                          8. Rocket Loader (Then turn off)
                                          cutebc24@piefed.socialC This user is from outside of this forum
                                          cutebc24@piefed.socialC This user is from outside of this forum
                                          [email protected]
                                          wrote last edited by
                                          #21

                                          Thanks so much!! This will totally help me and I'll tell u the results

                                          cutebc24@piefed.socialC 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups