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
  • 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 | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. infomaniak IPv6 issues

infomaniak IPv6 issues

Scheduled Pinned Locked Moved Solved Support
infomaniakipv6
70 Posts 9 Posters 1.6k Views 6 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic was forked from Email sending broken after updating to 8.2.x (due to IPv6 issues) girish
This topic has been deleted. Only users with topic management privileges can see it.
  • GengarG Offline
    GengarG Offline
    Gengar
    wrote on last edited by Gengar
    #13

    Just wanted to provide an update after some deeper investigation on my side.

    I tried running the following command while everything was still marked as green in Cloudron:

    host -t PTR <ipv6> 127.0.0.150
    

    Even though Cloudron still showed a valid PTR6 at that moment, the command returned a timeout. That might indicate that the issue does not start with Cloudron itself, but with Unbound no longer resolving correctly via 127.0.0.150.

    To address this, I modified Unbound’s configuration to use Cloudflare as the upstream DNS resolvers, instead of relying on the resolvers provided via DHCP by my VPS provider. Here's what I did:

    1. Create a new file "forward.conf" at this path :
    /etc/unbound/unbound.conf.d/forward.conf
    
    1. Edited this file "forward.conf" using nano to add the following :
    forward-zone:
      name: "."
      forward-addr: 1.1.1.1
      forward-addr: 1.0.0.1
      forward-addr: 2606:4700:4700::1111
      forward-addr: 2606:4700:4700::1001
    
    
    1. Validated the configuration with the following command :
    sudo unbound-checkconf
    
    1. Restarted Unbound:
    sudo systemctl restart unbound
    

    After this change, PTR6 resolution via

    host -t PTR <ipv6> 127.0.0.150
    

    works instantly and consistently. (I just had to wait like 5 minutes and now it's resolving instantly and consistently)

    I will continue monitoring over the next few days to confirm whether the issue comes back or not.
    If it doesn't comes back, it means there was an issue with Unbound and my VPS Provider Resolvers (DNS) received through DHCP...

    EDIT : Unfortunatly this workaround comes with an issue... Spamhaus is now considering my IP as blacklisted as I am using an open resolver for the unbound... => https://www.spamhaus.com/resource-center/successfully-accessing-spamhauss-free-block-lists-using-a-public-dns/

    I thought I had a good idea by using another resolver for Unbound... But I didn't knew the implication it would have with the IP Black lists of those "DNSBL" ...

    1 Reply Last reply
    1
    • GengarG Offline
      GengarG Offline
      Gengar
      wrote on last edited by Gengar
      #14

      I was wrong... each time I SSH to my server, and run for the first time :

      host -t PTR <ipv6> 127.0.0.150
      

      It will time out.
      And the second time it will work perfectly and instantly...

      I've rolled back Unbound to the default cloudron configuration in order to not be blacklisted by https://www.spamhaus.org/ .

      And

      host -t PTR <ipv6> 127.0.0.150
      

      Works correctly ... I just have to send it twice, first time time out. Second time instantly resolved.

      It means I am still having the exact same issue that I cannot explain... with my PTR6 value showing "null" in Cloudron only after an app update or after approximately 24-48 hours...

      Any ideas @nebulon & @joseph ?

      I really don't know where to look/search ...

      1 Reply Last reply
      0
      • scookeS Offline
        scookeS Offline
        scooke
        wrote on last edited by
        #15

        Who is the VPS server?

        A life lived in fear is a life half-lived

        GengarG 1 Reply Last reply
        0
        • scookeS scooke

          Who is the VPS server?

          GengarG Offline
          GengarG Offline
          Gengar
          wrote on last edited by Gengar
          #16

          @scooke The VPS Provider is

          1 Reply Last reply
          1
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #17

            @Gengar Which ubuntu version are you on ? Unbound behavior slighly varies based on Ubuntu 22.04 and 24.04

            Can you please try this:

            • Edit /home/yellowtent/box/src/mail.js . You will find a line at around line 86 like const DNS_OPTIONS = { timeout: 10000 }; .

            • Change it to const DNS_OPTIONS = { timeout: 30000, tries: 4 }; .

            • systemctl restart box

            GengarG 1 Reply Last reply
            3
            • girishG girish

              @Gengar Which ubuntu version are you on ? Unbound behavior slighly varies based on Ubuntu 22.04 and 24.04

              Can you please try this:

              • Edit /home/yellowtent/box/src/mail.js . You will find a line at around line 86 like const DNS_OPTIONS = { timeout: 10000 }; .

              • Change it to const DNS_OPTIONS = { timeout: 30000, tries: 4 }; .

              • systemctl restart box

              GengarG Offline
              GengarG Offline
              Gengar
              wrote on last edited by
              #18

              @girish Thank you for your help .

              I am using Ubuntu 24.04.

              I've edited what you told me to edit.

              If I understand correctly , it could happen simply because there was no retry and a time out after 10 seconds.
              And now that we changed it to 4 retries and 30 seconds, so if it was a time out issue, it should solve it now by giving it more opportunities to do it if it's a bit slow.

              Is this setting override by each cloudron update ?

              I will monitor and let you know if it solved my issue or not.

              girishG 1 Reply Last reply
              1
              • GengarG Gengar

                @girish Thank you for your help .

                I am using Ubuntu 24.04.

                I've edited what you told me to edit.

                If I understand correctly , it could happen simply because there was no retry and a time out after 10 seconds.
                And now that we changed it to 4 retries and 30 seconds, so if it was a time out issue, it should solve it now by giving it more opportunities to do it if it's a bit slow.

                Is this setting override by each cloudron update ?

                I will monitor and let you know if it solved my issue or not.

                girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #19

                @Gengar yeah, just guessing here that maybe it is taking more than 10s for the initial resolution. There is a default retry of 2 times . Don't know if changing it to more helps . I have been looking into the unbound docs on increasing the timeout in general but haven't found a good config variable yet.

                GengarG 1 Reply Last reply
                1
                • girishG girish

                  @Gengar yeah, just guessing here that maybe it is taking more than 10s for the initial resolution. There is a default retry of 2 times . Don't know if changing it to more helps . I have been looking into the unbound docs on increasing the timeout in general but haven't found a good config variable yet.

                  GengarG Offline
                  GengarG Offline
                  Gengar
                  wrote on last edited by Gengar
                  #20

                  @girish Yeah makes sense. I will monitor and update in this post with the final result. Thx again for your help.

                  Would I have to set this after each cloudron update ? Or is this setting never overriden ?

                  girishG 1 Reply Last reply
                  0
                  • GengarG Gengar

                    @girish Yeah makes sense. I will monitor and update in this post with the final result. Thx again for your help.

                    Would I have to set this after each cloudron update ? Or is this setting never overriden ?

                    girishG Offline
                    girishG Offline
                    girish
                    Staff
                    wrote on last edited by
                    #21

                    @Gengar I will update our code for the next release if the fix works.

                    GengarG 1 Reply Last reply
                    4
                    • girishG girish

                      @Gengar I will update our code for the next release if the fix works.

                      GengarG Offline
                      GengarG Offline
                      Gengar
                      wrote on last edited by Gengar
                      #22

                      @girish Unfortunatly it didn't worked...

                      491bdadc-b96c-4f9e-a79b-11106e9b0b42-image.png

                      The PTR6 is again viewed as null by Cloudron (and by Cloudron only, MxToolBox works fine).
                      419c0bae-f3a8-4013-b965-4760cfc868c8-image.png

                      The pattern I observe is that each time I have some app updates (or some notifications ?) then after a few minutes / hours (after the update / notification) it will show the PTR6 value as if it was null.

                      see below :
                      eb95fb78-e0ac-47fa-96eb-a1bbc4864812-image.png

                      Yesterday I did some updates but I restarted the server also so I didn't had the issue because my workaround is to restart the server.

                      Any ideas @girish to troubleshoot further ?

                      Edit : added one screenshot

                      1 Reply Last reply
                      0
                      • GengarG Offline
                        GengarG Offline
                        Gengar
                        wrote on last edited by Gengar
                        #23

                        I can't really understand why each first try of :
                        host -t PTR <ipv6> 127.0.0.150 always fails instantly.

                        And each second try works instantly.

                        8e27319a-59ba-4cf0-af10-5263b407223b-image.png

                        Binding seems correct, it's listning :

                        77041904-928c-4680-a01e-0fca7582f5f4-image.png

                        I also tried to generate a trace of a dig of my ipv6 dig -x <my_ipv6> @127.0.0.150 +trace

                        Here is the result :

                        dig -x <my_ipv6> @127.0.0.150 +trace
                        
                        ; <<>> DiG 9.18.30-0ubuntu0.24.04.2-Ubuntu <<>> -x <my_ipv6> @127.0.0.150 +trace
                        ;; global options: +cmd
                        .                       300     IN      NS      h.root-servers.net.
                        .                       300     IN      NS      i.root-servers.net.
                        .                       300     IN      NS      j.root-servers.net.
                        .                       300     IN      NS      k.root-servers.net.
                        .                       300     IN      NS      l.root-servers.net.
                        .                       300     IN      NS      m.root-servers.net.
                        .                       300     IN      NS      a.root-servers.net.
                        .                       300     IN      NS      b.root-servers.net.
                        .                       300     IN      NS      c.root-servers.net.
                        .                       300     IN      NS      d.root-servers.net.
                        .                       300     IN      NS      e.root-servers.net.
                        .                       300     IN      NS      f.root-servers.net.
                        .                       300     IN      NS      g.root-servers.net.
                        .                       300     IN      RRSIG   NS 8 0 518400 20250409050000 20250327040000 26470 . PVIijRDCpvp/usENq3aRJ+1WJb76GXi7mM85QySLrS6ixxDl5QbQo1Di Sl9wPYETpkYfZrRW4jDhOJyVAHtjit1m9ZJ2MAu9Rhcq72O7J/unHyjL K8vpXhwRQOwggasqVvFiqBDBlOh+TvKmxk++50UrFnokaFMbbJ45+H3t TAZ5CThu0VQwkNDFIGXdcupMGYO/GabVtEVjC22m12mZjMD8udjHbO1D msVclMSGFiGhi4LAjgCBDpx9sld7BeEkv/lIlZs8S/9GJ09a/+5sqe+d 2byJnEcdGUYE1kjHGA/mE6I2lncLKeyt1awD8CPhh3OGkDaiPCzDskwH pUs0aQ==
                        ;; Received 525 bytes from 127.0.0.150#53(127.0.0.150) in 74 ms
                        
                        ;; communications error to 2001:500:2f::f#53: timed out
                        ;; communications error to 2001:500:2f::f#53: timed out
                        ;; communications error to 2001:500:2f::f#53: timed out
                        ip6.arpa.               172800  IN      NS      f.ip6-servers.arpa.
                        ip6.arpa.               172800  IN      NS      c.ip6-servers.arpa.
                        ip6.arpa.               172800  IN      NS      a.ip6-servers.arpa.
                        ip6.arpa.               172800  IN      NS      b.ip6-servers.arpa.
                        ip6.arpa.               172800  IN      NS      d.ip6-servers.arpa.
                        ip6.arpa.               172800  IN      NS      e.ip6-servers.arpa.
                        ip6.arpa.               86400   IN      DS      45094 8 2 E6B54E0A20CE1EDBFCB6879C02F5782059CECB043A31D804A04AFA51 AF01D5FB
                        ip6.arpa.               86400   IN      DS      13880 8 2 068554EFCB5861F42AF93EF8E79C442A86C16FC5652E6B6D2419ED52 7F344D17
                        ip6.arpa.               86400   IN      DS      64060 8 2 8A11501086330132BE2C23F22DEDF0634AD5FF668B4AA1988E172C6A 2A4E5F7B
                        ip6.arpa.               86400   IN      RRSIG   DS 8 2 86400 20250409060000 20250327050000 41220 arpa. BrH6HJZNlu//lKOfi1e71GXexN7Q9Xxup1XbXiXQQ1YaxU82FszIRDtg 7OJQ8NmOuIiGhLsHAbsB/aBdIsh+8QeCYYXw7NvnT7sIHDAsXdNEs1qv cxh/4j7BIocLqPf4BMDW9ng9JuppGkg3fXrA7nOiPZMZxJ0UrsWzCtKR bDc2tgrS6Q6nwuo+1c/75C51TkTXqC5iq+mA3ouS2H/UKmbEnOOMt1y+ GaY7R2zU+vWRnJ0CQjqR8cn8wL2LkKvxEJ//wWymu4onhggPrPOiiyyK 77No8mh9CJlreLN9eIa+2qpDdfDZZvUpFoh2uJbDw0nVZgmhvO6faUdw ocrRAQ==
                        ;; Received 949 bytes from 192.112.36.4#53(g.root-servers.net) in 38 ms
                        
                        6.1.1.0.0.2.ip6.arpa.   86400   IN      NS      ns4.apnic.net.
                        6.1.1.0.0.2.ip6.arpa.   86400   IN      NS      pri.authdns.ripe.net.
                        6.1.1.0.0.2.ip6.arpa.   86400   IN      NS      rirns.arin.net.
                        6.1.1.0.0.2.ip6.arpa.   86400   IN      NS      ns3.afrinic.net.
                        6.1.1.0.0.2.ip6.arpa.   86400   IN      NS      ns3.lacnic.net.
                        6.1.1.0.0.2.ip6.arpa.   86400   IN      DS      3320 13 2 36869F9062FA3449B6362A3C618B7F17949E8729D355510E224789ED 165F0AD9
                        6.1.1.0.0.2.ip6.arpa.   86400   IN      RRSIG   DS 8 8 86400 20250417050647 20250327071005 29628 ip6.arpa. oqnemTiOsFj0CxOy5DjTdN8ml4bE47lmKONe+4NMdVS+gNclSwaDWycN UDAj+wFoI2dbM20Iy8jZvcgim6icQ02M77a1p5fK9SSozGYONEjXE7De 4w2jnNBOXzX+JOur97+Vf1YyC9e1LfEp/cbhbTtRxf3/7fgKke9aj4Co LXg=
                        ;; Received 483 bytes from 193.0.9.2#53(f.ip6-servers.arpa) in 16 ms
                        
                        ;; communications error to 2001:67c:e0::5#53: timed out
                        ;; communications error to 2620:38:2000::53#53: timed out
                        1.0.1.0.3.1.0.0.0.0.6.1.1.0.0.2.ip6.arpa. 86400 IN NS ns1.infomaniak.ch.
                        1.0.1.0.3.1.0.0.0.0.6.1.1.0.0.2.ip6.arpa. 86400 IN NS ns2.infomaniak.ch.
                        1.0.1.0.3.1.0.0.0.0.6.1.1.0.0.2.ip6.arpa. 3600 IN NSEC 2.0.1.0.3.1.0.0.0.0.6.1.1.0.0.2.ip6.arpa. NS RRSIG NSEC
                        1.0.1.0.3.1.0.0.0.0.6.1.1.0.0.2.ip6.arpa. 3600 IN RRSIG NSEC 13 18 3600 20250409180748 20250326163748 58998 6.1.1.0.0.2.ip6.arpa. 5jdTVibPvZSZ5qdnaTmefipFkNuRMvODtFmpW/nOELP8QTKQzo9mDHxg Zk6YdI2BZiS5AQR59bLAdJTlklvl2w==
                        ;; Received 396 bytes from 199.253.249.53#53(rirns.arin.net) in 90 ms
                        
                        5.REVERSED_OF_my_IPV6.2.ip6.arpa. 3600 IN PTR my.DOMAIN.XYZ.
                        1.0.1.0.3.1.0.0.0.0.6.1.1.0.0.2.ip6.arpa. 86400 IN NS ns1.infomaniak.ch.
                        1.0.1.0.3.1.0.0.0.0.6.1.1.0.0.2.ip6.arpa. 86400 IN NS ns2.infomaniak.ch.
                        ;; Received 247 bytes from 84.16.67.66#53(ns2.infomaniak.ch) in 1 ms
                        
                        GengarG 1 Reply Last reply
                        0
                        • GengarG Gengar

                          I can't really understand why each first try of :
                          host -t PTR <ipv6> 127.0.0.150 always fails instantly.

                          And each second try works instantly.

                          8e27319a-59ba-4cf0-af10-5263b407223b-image.png

                          Binding seems correct, it's listning :

                          77041904-928c-4680-a01e-0fca7582f5f4-image.png

                          I also tried to generate a trace of a dig of my ipv6 dig -x <my_ipv6> @127.0.0.150 +trace

                          Here is the result :

                          dig -x <my_ipv6> @127.0.0.150 +trace
                          
                          ; <<>> DiG 9.18.30-0ubuntu0.24.04.2-Ubuntu <<>> -x <my_ipv6> @127.0.0.150 +trace
                          ;; global options: +cmd
                          .                       300     IN      NS      h.root-servers.net.
                          .                       300     IN      NS      i.root-servers.net.
                          .                       300     IN      NS      j.root-servers.net.
                          .                       300     IN      NS      k.root-servers.net.
                          .                       300     IN      NS      l.root-servers.net.
                          .                       300     IN      NS      m.root-servers.net.
                          .                       300     IN      NS      a.root-servers.net.
                          .                       300     IN      NS      b.root-servers.net.
                          .                       300     IN      NS      c.root-servers.net.
                          .                       300     IN      NS      d.root-servers.net.
                          .                       300     IN      NS      e.root-servers.net.
                          .                       300     IN      NS      f.root-servers.net.
                          .                       300     IN      NS      g.root-servers.net.
                          .                       300     IN      RRSIG   NS 8 0 518400 20250409050000 20250327040000 26470 . PVIijRDCpvp/usENq3aRJ+1WJb76GXi7mM85QySLrS6ixxDl5QbQo1Di Sl9wPYETpkYfZrRW4jDhOJyVAHtjit1m9ZJ2MAu9Rhcq72O7J/unHyjL K8vpXhwRQOwggasqVvFiqBDBlOh+TvKmxk++50UrFnokaFMbbJ45+H3t TAZ5CThu0VQwkNDFIGXdcupMGYO/GabVtEVjC22m12mZjMD8udjHbO1D msVclMSGFiGhi4LAjgCBDpx9sld7BeEkv/lIlZs8S/9GJ09a/+5sqe+d 2byJnEcdGUYE1kjHGA/mE6I2lncLKeyt1awD8CPhh3OGkDaiPCzDskwH pUs0aQ==
                          ;; Received 525 bytes from 127.0.0.150#53(127.0.0.150) in 74 ms
                          
                          ;; communications error to 2001:500:2f::f#53: timed out
                          ;; communications error to 2001:500:2f::f#53: timed out
                          ;; communications error to 2001:500:2f::f#53: timed out
                          ip6.arpa.               172800  IN      NS      f.ip6-servers.arpa.
                          ip6.arpa.               172800  IN      NS      c.ip6-servers.arpa.
                          ip6.arpa.               172800  IN      NS      a.ip6-servers.arpa.
                          ip6.arpa.               172800  IN      NS      b.ip6-servers.arpa.
                          ip6.arpa.               172800  IN      NS      d.ip6-servers.arpa.
                          ip6.arpa.               172800  IN      NS      e.ip6-servers.arpa.
                          ip6.arpa.               86400   IN      DS      45094 8 2 E6B54E0A20CE1EDBFCB6879C02F5782059CECB043A31D804A04AFA51 AF01D5FB
                          ip6.arpa.               86400   IN      DS      13880 8 2 068554EFCB5861F42AF93EF8E79C442A86C16FC5652E6B6D2419ED52 7F344D17
                          ip6.arpa.               86400   IN      DS      64060 8 2 8A11501086330132BE2C23F22DEDF0634AD5FF668B4AA1988E172C6A 2A4E5F7B
                          ip6.arpa.               86400   IN      RRSIG   DS 8 2 86400 20250409060000 20250327050000 41220 arpa. BrH6HJZNlu//lKOfi1e71GXexN7Q9Xxup1XbXiXQQ1YaxU82FszIRDtg 7OJQ8NmOuIiGhLsHAbsB/aBdIsh+8QeCYYXw7NvnT7sIHDAsXdNEs1qv cxh/4j7BIocLqPf4BMDW9ng9JuppGkg3fXrA7nOiPZMZxJ0UrsWzCtKR bDc2tgrS6Q6nwuo+1c/75C51TkTXqC5iq+mA3ouS2H/UKmbEnOOMt1y+ GaY7R2zU+vWRnJ0CQjqR8cn8wL2LkKvxEJ//wWymu4onhggPrPOiiyyK 77No8mh9CJlreLN9eIa+2qpDdfDZZvUpFoh2uJbDw0nVZgmhvO6faUdw ocrRAQ==
                          ;; Received 949 bytes from 192.112.36.4#53(g.root-servers.net) in 38 ms
                          
                          6.1.1.0.0.2.ip6.arpa.   86400   IN      NS      ns4.apnic.net.
                          6.1.1.0.0.2.ip6.arpa.   86400   IN      NS      pri.authdns.ripe.net.
                          6.1.1.0.0.2.ip6.arpa.   86400   IN      NS      rirns.arin.net.
                          6.1.1.0.0.2.ip6.arpa.   86400   IN      NS      ns3.afrinic.net.
                          6.1.1.0.0.2.ip6.arpa.   86400   IN      NS      ns3.lacnic.net.
                          6.1.1.0.0.2.ip6.arpa.   86400   IN      DS      3320 13 2 36869F9062FA3449B6362A3C618B7F17949E8729D355510E224789ED 165F0AD9
                          6.1.1.0.0.2.ip6.arpa.   86400   IN      RRSIG   DS 8 8 86400 20250417050647 20250327071005 29628 ip6.arpa. oqnemTiOsFj0CxOy5DjTdN8ml4bE47lmKONe+4NMdVS+gNclSwaDWycN UDAj+wFoI2dbM20Iy8jZvcgim6icQ02M77a1p5fK9SSozGYONEjXE7De 4w2jnNBOXzX+JOur97+Vf1YyC9e1LfEp/cbhbTtRxf3/7fgKke9aj4Co LXg=
                          ;; Received 483 bytes from 193.0.9.2#53(f.ip6-servers.arpa) in 16 ms
                          
                          ;; communications error to 2001:67c:e0::5#53: timed out
                          ;; communications error to 2620:38:2000::53#53: timed out
                          1.0.1.0.3.1.0.0.0.0.6.1.1.0.0.2.ip6.arpa. 86400 IN NS ns1.infomaniak.ch.
                          1.0.1.0.3.1.0.0.0.0.6.1.1.0.0.2.ip6.arpa. 86400 IN NS ns2.infomaniak.ch.
                          1.0.1.0.3.1.0.0.0.0.6.1.1.0.0.2.ip6.arpa. 3600 IN NSEC 2.0.1.0.3.1.0.0.0.0.6.1.1.0.0.2.ip6.arpa. NS RRSIG NSEC
                          1.0.1.0.3.1.0.0.0.0.6.1.1.0.0.2.ip6.arpa. 3600 IN RRSIG NSEC 13 18 3600 20250409180748 20250326163748 58998 6.1.1.0.0.2.ip6.arpa. 5jdTVibPvZSZ5qdnaTmefipFkNuRMvODtFmpW/nOELP8QTKQzo9mDHxg Zk6YdI2BZiS5AQR59bLAdJTlklvl2w==
                          ;; Received 396 bytes from 199.253.249.53#53(rirns.arin.net) in 90 ms
                          
                          5.REVERSED_OF_my_IPV6.2.ip6.arpa. 3600 IN PTR my.DOMAIN.XYZ.
                          1.0.1.0.3.1.0.0.0.0.6.1.1.0.0.2.ip6.arpa. 86400 IN NS ns1.infomaniak.ch.
                          1.0.1.0.3.1.0.0.0.0.6.1.1.0.0.2.ip6.arpa. 86400 IN NS ns2.infomaniak.ch.
                          ;; Received 247 bytes from 84.16.67.66#53(ns2.infomaniak.ch) in 1 ms
                          
                          GengarG Offline
                          GengarG Offline
                          Gengar
                          wrote on last edited by Gengar
                          #24

                          After some digging I've understood that Cloudron is using Hakara in a docker container as the SMTP mail server.

                          So I guess the whole mail server stack is running in a docker container.

                          Based on those facts, I had a look if ipv6 was enabled in docker.

                          I saw that Docker is configured to manage IPv6 firewall rules (iptables) using ps aux | grep dockerd . => --storage-driver=overlay2 --experimental --ip6tables --userland-proxy=false

                          but that containers aren't using ipv6 : sudo docker network inspect bridge | grep -A 5 IPv6
                          Result :

                          "EnableIPv6": false,
                                  "IPAM": {
                                      "Driver": "default",
                                      "Options": null,
                                      "Config": [
                                          {
                          
                          

                          @girish , if I create a custom config file "deamon.js" in /etc/docker/daemon.json , and I add this config inside the json to enable ipv6 inside containers :

                          {
                            "ipv6": true,
                            "fixed-cidr-v6": "fd00:dead:beef::/64"
                          }
                          
                          

                          Do you think it could solve the issue ? Because I guess reverse DNS checks likely happen inside this mail container ?
                          And maybe each app update reset the docker network bridge ? And then the mail container loses ipv6 connectivity / ability to do his rever DNS check for ipv6 correctly ?

                          I really don't know, trying to figure things out here.

                          jdaviescoatesJ 1 Reply Last reply
                          0
                          • GengarG Gengar

                            After some digging I've understood that Cloudron is using Hakara in a docker container as the SMTP mail server.

                            So I guess the whole mail server stack is running in a docker container.

                            Based on those facts, I had a look if ipv6 was enabled in docker.

                            I saw that Docker is configured to manage IPv6 firewall rules (iptables) using ps aux | grep dockerd . => --storage-driver=overlay2 --experimental --ip6tables --userland-proxy=false

                            but that containers aren't using ipv6 : sudo docker network inspect bridge | grep -A 5 IPv6
                            Result :

                            "EnableIPv6": false,
                                    "IPAM": {
                                        "Driver": "default",
                                        "Options": null,
                                        "Config": [
                                            {
                            
                            

                            @girish , if I create a custom config file "deamon.js" in /etc/docker/daemon.json , and I add this config inside the json to enable ipv6 inside containers :

                            {
                              "ipv6": true,
                              "fixed-cidr-v6": "fd00:dead:beef::/64"
                            }
                            
                            

                            Do you think it could solve the issue ? Because I guess reverse DNS checks likely happen inside this mail container ?
                            And maybe each app update reset the docker network bridge ? And then the mail container loses ipv6 connectivity / ability to do his rever DNS check for ipv6 correctly ?

                            I really don't know, trying to figure things out here.

                            jdaviescoatesJ Offline
                            jdaviescoatesJ Offline
                            jdaviescoates
                            wrote on last edited by jdaviescoates
                            #25

                            @Gengar said in Email sending broken after updating to 8.2.x (due to IPv6 issues):

                            Do you think it could solve the issue ? Because I guess reverse DNS checks likely happen inside this mail container ?

                            🤔 if that was the issue then wouldn't we all be having the strange issues you're having? Speaking personally my PTR6 status has been fine and green ever since I initially set it.

                            I use Cloudron with Gandi & Hetzner

                            GengarG 1 Reply Last reply
                            1
                            • jdaviescoatesJ jdaviescoates

                              @Gengar said in Email sending broken after updating to 8.2.x (due to IPv6 issues):

                              Do you think it could solve the issue ? Because I guess reverse DNS checks likely happen inside this mail container ?

                              🤔 if that was the issue then wouldn't we all be having the strange issues you're having? Speaking personally my PTR6 status has been fine and green ever since I initially set it.

                              GengarG Offline
                              GengarG Offline
                              Gengar
                              wrote on last edited by
                              #26

                              @jdaviescoates yeah i thought about that too and I guess you are right…

                              But I really have no other leads rn …

                              1 Reply Last reply
                              1
                              • GengarG Offline
                                GengarG Offline
                                Gengar
                                wrote on last edited by Gengar
                                #27

                                @girish I think I have very interesting new information to narrow down the possibilities for the root cause. What I did is that I tried to restart every component/service I could, starting from the most specific (mail container) to the most general (full system reboot):

                                Service / Component restarted Result
                                sudo docker restart mail NOK
                                sudo systemctl restart box NOK
                                sudo systemctl restart docker NOK – I had to restart apps manually due to bad gateway / 500 errors.
                                sudo systemctl restart unbound NOK
                                sudo systemctl restart systemd-resolved NOK
                                sudo systemctl restart systemd-networkd NOK
                                sudo netplan apply NOK
                                sudo reboot OK – PTR6 works again.

                                So I asked myself: what could exist between the NOK and OK state that I hadn't tried?

                                I decided to target the IPv6 stack of the OS directly. I ran:

                                sudo ip -6 neigh flush all
                                sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
                                sleep 2
                                sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0
                                

                                ➡️ After this, it was still NOK, but interestingly it reported the PTR6 = null state instantly, instead of the usual 1–2 minute delay. That suggested something was cleared or reset => Makes sense as I flushed.

                                After flushing the IPv6 neighbours and disabling / re-enabling the ipv6 module I've restarted netplan and docker :

                                sudo netplan apply
                                sudo systemctl restart docker
                                

                                ➡️ Again, after restarting Docker I had to manually restart all apps (some with bad gateway / nginx errors like n8n). But...


                                IT WORKED!

                                The PTR6 value was immediately resolved again and Cloudron no longer shows null. So this suggests that the root cause may lie somewhere in the interaction between the kernel IPv6 stack and Docker’s networking layer ? particularly after updates...

                                What do you think @girish ? What could be the root cause ?

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

                                  Not sure, but in many VPS , IPv6 and related networking are simply not that reliable . It's hard to point at the root cause without debugging the setups. Which VPS are you using, if you don't mind sharing?

                                  GengarG 1 Reply Last reply
                                  1
                                  • J joseph

                                    Not sure, but in many VPS , IPv6 and related networking are simply not that reliable . It's hard to point at the root cause without debugging the setups. Which VPS are you using, if you don't mind sharing?

                                    GengarG Offline
                                    GengarG Offline
                                    Gengar
                                    wrote on last edited by
                                    #29

                                    @joseph I'm using a VPS from Infomaniak. => https://www.infomaniak.com/

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

                                      @Gengar should I use https://www.infomaniak.com/en/hosting/vps-lite ? Can't make out if those have IPv6

                                      GengarG 2 Replies Last reply
                                      1
                                      • J joseph

                                        @Gengar should I use https://www.infomaniak.com/en/hosting/vps-lite ? Can't make out if those have IPv6

                                        GengarG Offline
                                        GengarG Offline
                                        Gengar
                                        wrote on last edited by
                                        #31

                                        @joseph Yeah I'm using a vps light 🙂 And it has IPv6

                                        1 Reply Last reply
                                        0
                                        • J joseph

                                          @Gengar should I use https://www.infomaniak.com/en/hosting/vps-lite ? Can't make out if those have IPv6

                                          GengarG Offline
                                          GengarG Offline
                                          Gengar
                                          wrote on last edited by
                                          #32

                                          @joseph Did you had the chance to make a try ?

                                          On my side I'm stuck and still having this issue 🥲

                                          1 Reply Last reply
                                          0
                                          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