Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    Zimbra: unable to get rid of DoSFilter trapping

    Z-Push when using other backends
    3
    13
    1603
    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.
    • maxxer
      maxxer last edited by

      I tried changing USE_CUSTOM_REMOTE_IP_HEADER from HTTP_X_FORWARDED_FOR to HTTP_X_REAL_IP but everything seems the same.

      Message spotted on mailboxd:

      2018-09-12 14:43:30,984 INFO  [qtp127618319-1087:http://127.0.0.1/service/soap/] [] misc - Access from IP 1.2.9.21, 127.0.0.1 suspended, for repeated failed login.
      

      It seems to me that Zimbra is threating the dual IP as a single IP address…

      1 Reply Last reply Reply Quote 0
      • liverpoolfcfan
        liverpoolfcfan last edited by liverpoolfcfan

        Do you have an instance of Apache you can use as a test z-push server to connect to the same zimbra host? It would allow you to determine if it is an nginx configuration that is causing the dual IP addresses.

        1 Reply Last reply Reply Quote 0
        • liverpoolfcfan
          liverpoolfcfan @maxxer last edited by liverpoolfcfan

          @maxxer said in Zimbra: unable to get rid of DoSFilter trapping:

          In Zimbra I’ve whitelisted the server public IP address, localhost addresses and the office IP.

          Did you also whitelist the Z-Push server IP address? That is the most important one.

          1 Reply Last reply Reply Quote 0
          • maxxer
            maxxer last edited by

            Yes, of course the zpush and zimbra itself public IPs are whitelisted, v4 and v6.

            Unfortunately I currently don’t have an apache set up, I must install it. I checked another installation I have and it seems the IP is doubled every time.

            1 Reply Last reply Reply Quote 0
            • maxxer
              maxxer last edited by

              I managed to work around the issue by setting ZIMBRA_URL directly to Jetty on port 8443, instead of passing through nginx. Now the logged oip is the correct one and it’s not joined with nginx’s IP.

              I still have to figure out why zimbra is logging the two IP addresses together, but in the meantime I’m not trapped by DoSFilter

              jasgggit liverpoolfcfan 2 Replies Last reply Reply Quote 0
              • jasgggit
                jasgggit @maxxer last edited by

                @maxxer said in Zimbra: unable to get rid of DoSFilter trapping:

                I managed to work around the issue by setting ZIMBRA_URL directly to Jetty on port 8443, instead of passing through nginx. Now the logged oip is the correct one and it’s not joined with nginx’s IP.

                I still have to figure out why Zimbra is logging the two IP addresses together, but in the meantime I’m not trapped by DoSFilter

                Hi, could you please share the steps on how to do this :

                setting `ZIMBRA_URL` directly to Jetty on port 8443, instead of passing through nginx.
                

                I’m trying to solve an issue on my single server setup, and this could help.

                Thank you.

                Regards.
                JG

                maxxer 1 Reply Last reply Reply Quote 0
                • maxxer
                  maxxer @jasgggit last edited by

                  @jasgggit just set as ZIMBRA_URL https://your.domain.com:8443 instead of the plain https port. this skips nginx, and at least Zimbra logs will see the original IP

                  jasgggit 1 Reply Last reply Reply Quote 0
                  • jasgggit
                    jasgggit @maxxer last edited by

                    @maxxer said in Zimbra: unable to get rid of DoSFilter trapping:

                    @jasgggit just set as ZIMBRA_URL https://your.domain.com:8443 instead of the plain https port. this skips nginx, and at least Zimbra logs will see the original IP

                    Thanks for the reply.
                    I’ll check it, but since I’m using the 443 port as ZIMBRA_URL “https:/my.zimbra.com” , you saying if I specify the port as 8443 it should go to the jetty instead of Nginx ?

                    I’l try nevertheless, thank you.
                    Regards.
                    JG

                    maxxer 1 Reply Last reply Reply Quote 0
                    • maxxer
                      maxxer @jasgggit last edited by

                      you saying if I specify the port as 8443 it should go to the jetty instead of Nginx ?

                      yes!

                      1 Reply Last reply Reply Quote 0
                      • liverpoolfcfan
                        liverpoolfcfan @maxxer last edited by

                        @maxxer said in Zimbra: unable to get rid of DoSFilter trapping:

                        I managed to work around the issue by setting ZIMBRA_URL directly to Jetty on port 8443, instead of passing through nginx. Now the logged oip is the correct one and it’s not joined with nginx’s IP.

                        I still have to figure out why zimbra is logging the two IP addresses together, but in the meantime I’m not trapped by DoSFilter

                        Beware of pointing z-push directly at jetty as the authentication is all handled by the nginx proxy. You will likely have issues downloading attachments and accessing shared folders - particularly if you have a multi-server environment.

                        maxxer 1 Reply Last reply Reply Quote 0
                        • maxxer
                          maxxer @liverpoolfcfan last edited by

                          @liverpoolfcfan said in Zimbra: unable to get rid of DoSFilter trapping:

                          Beware of pointing z-push directly at jetty as the authentication is all handled by the nginx proxy. You will likely have issues downloading attachments and accessing shared folders - particularly if you have a multi-server environment.

                          I know it’s not correct but I’m unable to understand why it keeps logging two IPs, and thus blacklisting the Z-Push IP.

                          Do you have the same logging format?

                          1 Reply Last reply Reply Quote 0
                          • liverpoolfcfan
                            liverpoolfcfan last edited by

                            I use Apache for z-push - so that is an obvious place to look for you to start as you are using NGinx

                            In my mailbox.log file the entries show 2 IP Addresses - oip=Device_IP, Z-Push-Server_IP;

                            I do not have anything set in the z-push config file for
                            // define(‘USE_CUSTOM_REMOTE_IP_HEADER’, ‘X-FORWARDED-FOR’);
                            // define(‘USE_X_FORWARDED_FOR_HEADER’, true);
                            Both are commented out.

                            I have no issues with the DosFilter.

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post