Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • 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

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Can't get Cloudflare to work

Can't get Cloudflare to work

Scheduled Pinned Locked Moved Solved Support
cloudflare
19 Posts 4 Posters 1.5k Views 4 Watching
  • 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 Offline
    D Offline
    d1rk
    wrote on last edited by
    #9

    @James Now I could do it. The result is this:

    COMMAND      PID            USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
    systemd-r    669 systemd-resolve   13u  IPv4   17046      0t0  UDP localhost:domain
    systemd-r    669 systemd-resolve   14u  IPv4   17047      0t0  TCP localhost:domain (LISTEN)
    unbound    20480         unbound    3u  IPv4  164940      0t0  UDP localhost:domain
    unbound    20480         unbound    4u  IPv4  164941      0t0  TCP localhost:domain (LISTEN)
    unbound    20480         unbound    5u  IPv4  164942      0t0  UDP xum:domain
    unbound    20480         unbound    6u  IPv4  164943      0t0  TCP xum:domain (LISTEN)
    unbound    20480         unbound   13u  IPv4 8207316      0t0  UDP Ubuntu-2204-jammy-amd64-base:64328->j.root-servers.net:domain
    node      632203      yellowtent   24u  IPv4 8210389      0t0  UDP localhost.localdomain:57067->localhost:domain
    

    Not sure, how to read that, tbh. Does that help?

    1 Reply Last reply
    0
    • jamesJ Online
      jamesJ Online
      james
      Staff
      wrote on last edited by
      #10

      Hello @d1rk
      Yes this helps me to narrow it down.
      If the command dig ipv4.api.cloudron.io @127.0.0.150 still returns the same output as before please post the output of the following commands:

      dig +trace +nodnssec ipv4.api.cloudron.io @127.0.0.150
      
      systemctl status unbound.service
      
      cat /etc/unbound/unbound.conf
      
      cat /etc/unbound/unbound.conf.d/cloudron-network.conf
      
      1 Reply Last reply
      0
      • D Offline
        D Offline
        d1rk
        wrote on last edited by
        #11

        It does still return a timeout. So here are the outputs of said commands (and one more):

        $ dig +trace +nodnssec ipv4.api.cloudron.io @127.0.0.150
        ;; communications error to 127.0.0.150#53: timed out
        
        $ systemctl status unbound.service
        ā— unbound.service - Unbound DNS Resolver
             Loaded: loaded (/etc/systemd/system/unbound.service; enabled; vendor preset: enabled)
             Active: active (running) since Tue 2025-11-25 09:32:52 UTC; 2 days ago
            Process: 20475 ExecStartPre=/usr/sbin/unbound-anchor -a /var/lib/unbound/root.key (code=exited, status=0/SUCCESS)
           Main PID: 20480 (unbound)
              Tasks: 1 (limit: 76755)
             Memory: 7.2M
                CPU: 5.503s
             CGroup: /system.slice/unbound.service
                     └─20480 /usr/sbin/unbound -d
        
        Nov 25 09:32:50 xum systemd[1]: Starting Unbound DNS Resolver...
        Nov 25 09:32:52 xum unbound[20480]: [20480:0] notice: init module 0: subnet
        Nov 25 09:32:52 xum unbound[20480]: [20480:0] notice: init module 1: validator
        Nov 25 09:32:52 xum unbound[20480]: [20480:0] notice: init module 2: iterator
        Nov 25 09:32:52 xum unbound[20480]: [20480:0] info: start of service (unbound 1.13.1).
        Nov 25 09:32:52 xum systemd[1]: Started Unbound DNS Resolver.
        
        $ cat /etc/unbound/unbound.conf
        # Unbound configuration file for Debian.
        #
        # See the unbound.conf(5) man page.
        #
        # See /usr/share/doc/unbound/examples/unbound.conf for a commented
        # reference config file.
        #
        # The following line includes additional configuration files from the
        # /etc/unbound/unbound.conf.d directory.
        include-toplevel: "/etc/unbound/unbound.conf.d/*.conf"
        
        $ cat /etc/unbound/unbound.conf.d/cloudron-network.conf
        # Unbound is used primarily for RBL queries (host 2.0.0.127.zen.spamhaus.org)
        # We cannot use dnsmasq because it is not a recursive resolver and defaults to the value in the interfaces file (which is Google DNS!)
        
        server:
                port: 53
                interface: 127.0.0.150
                interface: 172.18.0.1
                ip-freebind: yes
                access-control: 127.0.0.1 allow
                access-control: 172.18.0.1/16 allow
                cache-max-negative-ttl: 30
                cache-max-ttl: 300
        
                # Prefer IPv4 outbound queries. Spamhaus often rejects queries from IPv6 addresses
                # without this, unbound does not start on IPv6 only servers
                do-ip6: no
                # this setting only works with ubuntu 24 and unbound >= 1.19.2
                # prefer-ip4: yes
        
                # enable below for logging to journalctl -u unbound
                # verbosity: 5
                # log-queries: yes
        
        # https://github.com/NLnetLabs/unbound/issues/806
        remote-control:
            control-enable: no
        
        $ ls -al /etc/unbound/unbound.conf.d/
        total 16
        drwxr-xr-x 2 root root 4096 Nov 25 09:28 .
        drwxr-xr-x 3 root root 4096 Nov  6 06:18 ..
        -rw-r--r-- 1 root root  949 Nov 25 09:28 cloudron-network.conf
        -rw-r--r-- 1 root root  190 Sep  7  2022 root-auto-trust-anchor-file.conf
        
        1 Reply Last reply
        0
        • jamesJ Online
          jamesJ Online
          james
          Staff
          wrote on last edited by
          #12

          Hello @d1rk
          From your post before of lsof -i :53
          There is this process:

          node      632203      yellowtent   24u  IPv4 8210389      0t0  UDP localhost.localdomain:57067->localhost:domain
          

          If you run lsof -i :53 again, is there still a node process?
          If so please run the following command with the PID of that node process and post the output:

          lsof -p 632203
          
          1 Reply Last reply
          0
          • D Offline
            D Offline
            d1rk
            wrote on last edited by
            #13

            Ok, on running this command, no node-process shows up:

            $ lsof -i :53
            COMMAND     PID            USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
            systemd-r   669 systemd-resolve   13u  IPv4  17046      0t0  UDP localhost:domain
            systemd-r   669 systemd-resolve   14u  IPv4  17047      0t0  TCP localhost:domain (LISTEN)
            unbound   20480         unbound    3u  IPv4 164940      0t0  UDP localhost:domain
            unbound   20480         unbound    4u  IPv4 164941      0t0  TCP localhost:domain (LISTEN)
            unbound   20480         unbound    5u  IPv4 164942      0t0  UDP xum:domain
            unbound   20480         unbound    6u  IPv4 164943      0t0  TCP xum:domain (LISTEN)
            
            1 Reply Last reply
            0
            • jamesJ Online
              jamesJ Online
              james
              Staff
              wrote on last edited by
              #14

              Hello @d1rk
              So if you run dig now, does it work?

              1 Reply Last reply
              0
              • D Offline
                D Offline
                d1rk
                wrote on last edited by
                #15

                unfortunately not.

                $ dig +trace +nodnssec ipv4.api.cloudron.io @127.0.0.150
                
                ;; communications error to 127.0.0.150#53: timed out
                ;; communications error to 127.0.0.150#53: timed out
                ;; communications error to 127.0.0.150#53: timed out
                
                ; <<>> DiG 9.18.39-0ubuntu0.22.04.2-Ubuntu <<>> +trace +nodnssec ipv4.api.cloudron.io @127.0.0.150
                ;; global options: +cmd
                ;; no servers could be reached
                
                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  joseph
                  Staff
                  wrote on last edited by
                  #16

                  @d1rk @swheeler78 can you write to support@cloudron.io , we can take a look as to why the DNS queries are not working .

                  1 Reply Last reply
                  1
                  • D Offline
                    D Offline
                    d1rk
                    wrote on last edited by
                    #17

                    @james @Joseph Thanks for your kind and active support. That makes me feel valued and not left-alone. I wrote an email and look forward to have this issue sorted out. Keep up the good work.

                    1 Reply Last reply
                    1
                    • J Offline
                      J Offline
                      joseph
                      Staff
                      wrote on last edited by
                      #18

                      The issue was that UDP requests from the VM are blocked . I configured unbound to forward all DNS requests and that seems to work - https://docs.cloudron.io/networking/#unbound .

                      1 Reply Last reply
                      2
                      • J joseph has marked this topic as solved on
                      • swheeler78S Offline
                        swheeler78S Offline
                        swheeler78
                        wrote on last edited by
                        #19

                        the command "cloudron-support --unbound-use-external-dns" worked for me. Thanks for looking into it.

                        1 Reply Last reply
                        2

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better šŸ’—

                        Register Login
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Bookmarks
                        • Search