ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Fedora 31 Server Edition filesystem permissions changed to 777

    IT Discussion
    7
    63
    4.1k
    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.
    • W
      Woti
      last edited by Woti

      Can someone tell me what that entries mean? I found it access_log file.
      access_log.png

      https://github.com/robertdavidgraham/masscan

      scottalanmillerS 1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller @Woti
        last edited by

        @Woti said in Fedora 31 Server Edition filesystem permissions changed to 777:

        Can someone tell me what that entries mean? I found it access_log file.
        access_log.png

        https://github.com/robertdavidgraham/masscan

        It's quite straightforward, but the name is so bizarre that it makes it confusing. It's not anything weird, other than the name.

        The position in the log represents the "browser" identifier. The browser's name (Chrome, Firefox, etc.) is masscan and the browser version is 1.0. People are likely to be confused by that, so the "browser" ID includes the URL of the browser's code so that you can look it up.

        So in this case, it tells us that someone using masscan made a request to your site. It's someone port scanning you.

        W 1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller
          last edited by

          If you wanted to test / demonstrate this, you could download masscan to another computer from the given URL and use it to scan your own site. You should get an identical log entry, except with your IP address listed of course.

          1 Reply Last reply Reply Quote 0
          • W
            Woti
            last edited by

            Thanks for your reply. It is scary.

            1 Reply Last reply Reply Quote 0
            • W
              Woti @scottalanmiller
              last edited by

              @scottalanmiller What means the line with IP 217.131.28.231

              scottalanmillerS 1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller @Woti
                last edited by

                @Woti said in Fedora 31 Server Edition filesystem permissions changed to 777:

                @scottalanmiller What means the line with IP 217.131.28.231

                That field, the first one, is the IP address of the browser making a request. Try accessing your own site from a public IP that you know, and then look for that IP in the log to see how it works. But that first field is just the requesting public IP field.

                1 Reply Last reply Reply Quote 0
                • W
                  Woti
                  last edited by Woti

                  Is it safe to remove Letsencrypt certificates by deleting certificate files and so

                  dnf remove certbot httpd php-fpm mariadb
                  

                  and try again reinstall? Or does certificate files stored on Letsencrypt servers and synced next time a certificate is generated by same email-address and domain? 🤔

                  scottalanmillerS 1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller @Woti
                    last edited by

                    @Woti said in Fedora 31 Server Edition filesystem permissions changed to 777:

                    Is it safe to remove Letsencrypt certificates by deleting certificate files and so

                    dnf remove certbot httpd php-fpm mariadb
                    

                    and try again reinstall? Or does certificate files stored on Letsencrypt servers and synced next time a certificate is generated by same email-address and domain? 🤔

                    It's pretty safe, but better if you make a copy, just in case.

                    JaredBuschJ 1 Reply Last reply Reply Quote 1
                    • JaredBuschJ
                      JaredBusch @scottalanmiller
                      last edited by

                      @scottalanmiller said in Fedora 31 Server Edition filesystem permissions changed to 777:

                      @Woti said in Fedora 31 Server Edition filesystem permissions changed to 777:

                      Is it safe to remove Letsencrypt certificates by deleting certificate files and so

                      dnf remove certbot httpd php-fpm mariadb
                      

                      and try again reinstall? Or does certificate files stored on Letsencrypt servers and synced next time a certificate is generated by same email-address and domain? 🤔

                      It's pretty safe, but better if you make a copy, just in case.

                      If you request a new cert in the same name, you will simply get a new cert.
                      Nothing is saved by Let's Encrypt. Now obviously, they have the old record, and you will get a renewal notice at 30 days out. But you just ignore it.

                      1 Reply Last reply Reply Quote 1
                      • W
                        Woti
                        last edited by

                        Any thoughts about using Nginx rather than Apache?

                        JaredBuschJ scottalanmillerS 2 Replies Last reply Reply Quote 0
                        • JaredBuschJ
                          JaredBusch @Woti
                          last edited by

                          @Woti said in Fedora 31 Server Edition filesystem permissions changed to 777:

                          Any thoughts about using Nginx rather than Apache?

                          Nextcloud still defaults their builds to Apache. so i use Apache.

                          That said, all of my instances are sitting behind a separate Nginx Reverse Proxy.

                          scottalanmillerS W 2 Replies Last reply Reply Quote 1
                          • scottalanmillerS
                            scottalanmiller @Woti
                            last edited by

                            @Woti said in Fedora 31 Server Edition filesystem permissions changed to 777:

                            Any thoughts about using Nginx rather than Apache?

                            I would stick to Apache. Use what the devs use. Nginx is great for the reverse proxy in front of it all, if you want.

                            1 Reply Last reply Reply Quote 1
                            • scottalanmillerS
                              scottalanmiller @JaredBusch
                              last edited by

                              @JaredBusch said in Fedora 31 Server Edition filesystem permissions changed to 777:

                              @Woti said in Fedora 31 Server Edition filesystem permissions changed to 777:

                              Any thoughts about using Nginx rather than Apache?

                              Nextcloud still defaults their builds to Apache. so i use Apache.

                              That said, all of my instances are sitting behind a separate Nginx Reverse Proxy.

                              Same here.

                              1 Reply Last reply Reply Quote 1
                              • W
                                Woti
                                last edited by

                                Is it possible that Nextcloud has to be installed before creating certificates?
                                Because, when I installed Nextcloud 11(?) on Fedora Server 26 I did first installing everything, apache, php-fpm, mysql, nextcloud followed by created self-signed certificates. After that, I did creating certificates from Letsencrypt with certbot but this happened not with Fedora Server 26. It happened later.
                                Fedora Server 31 is the first installation after all releases that I have to reinstall (did just updating between all releases) and the one and only thing I did in a different way was the order of creating certificates and installing Nextcloud. I did creating of certificates before installing Nextcloud.

                                1 Reply Last reply Reply Quote 0
                                • W
                                  Woti @JaredBusch
                                  last edited by

                                  @JaredBusch I never understood why to use Nginx as reverse proxy 😞 What's the meaning with it?

                                  DashrenderD 1 Reply Last reply Reply Quote 0
                                  • DashrenderD
                                    Dashrender @Woti
                                    last edited by

                                    @Woti said in Fedora 31 Server Edition filesystem permissions changed to 777:

                                    @JaredBusch I never understood why to use Nginx as reverse proxy 😞 What's the meaning with it?

                                    A reverse proxy allows you to have multiple websites on the same port behind 1 IP address. This also generally means multiple servers behind the proxy as well - as if all websites were on a single http service, that service could likely determine itself which webservice to give the packets to.

                                    JaredBuschJ 1 Reply Last reply Reply Quote 1
                                    • JaredBuschJ
                                      JaredBusch @Dashrender
                                      last edited by JaredBusch

                                      @Dashrender said in Fedora 31 Server Edition filesystem permissions changed to 777:

                                      @Woti said in Fedora 31 Server Edition filesystem permissions changed to 777:

                                      @JaredBusch I never understood why to use Nginx as reverse proxy 😞 What's the meaning with it?

                                      A reverse proxy allows you to have multiple websites on the same port behind 1 IP address. This also generally means multiple servers behind the proxy as well - as if all websites were on a single http service, that service could likely determine itself which webservice to give the packets to.

                                      This is correct. Specifically, I have a server in a colo. I have a single IP available to me.

                                      So ports 80/443 on that IP are directed to the Nginx Reverse Proxy. Nginx handles sending the inbound FQDN to the right backend servers.

                                      https://domain.com = 12.45.67.89
                                      https://nc.domain.com = 12.45.67.89
                                      https://blog.domain.com = 12.45.67.89
                                      

                                      How do you make all of that work? With a Reverse Proxy. Nginx is much better at that than Apache.

                                      Nginx is listening on 12.45.67.89:80 and 12.45.67.89:443
                                      When something comes in, it reads the FQDN out of the HTTP headers and sends it on to the correct backend IP.

                                      domain.com = 10.1.2.3
                                      nc.domain.com = 10.1.2.4
                                      blog.domain.com = 10.1.2.5
                                      
                                      1 Reply Last reply Reply Quote 1
                                      • W
                                        Woti
                                        last edited by Woti

                                        THANK YOU @JaredBusch and @Dashrender for this good explanation. That was the easiest understandable explanation I have heard for a long time. 😄

                                        I'll try my luck again. Thanks again guys.

                                        1 Reply Last reply Reply Quote 0
                                        • scottalanmillerS
                                          scottalanmiller
                                          last edited by

                                          Don't know if it was said, but a reverse proxy is also a front end that handles your SSL in many cases.

                                          1 Reply Last reply Reply Quote 1
                                          • W
                                            Woti
                                            last edited by

                                            Finally, I got it! Nextcloud is up and running. It was litt of a mess.

                                            1st of all the error [ssl:warn] AH01909: woti.dedyn.io:443:0 server certificate does NOT include an ID which matches the server namewas hard to figure out, but finally I found it in a .json file from Letsencrypt and as well in the localhost.crt.
                                            When I installed Fedora I choosed woti as hostname. But just woti does not work as hostname while creating Letsencrypt certs. It has to be woti.domain.xxx. So I used my domain but I did not changed my hostname while creating my Letsencrypt certs. That's why I got an ID which not matched the servername.
                                            I needed to create new certs.

                                            2nd suddenly comes up a SELinux error about no access to /nextcloud/data. I needed to "Allow httpd to unified"

                                            3th the tutorial I followed https://linuxize.com/post/secure-apache-with-let-s-encrypt-on-centos-8/ gaves me just redirection errors. I do not why. I had to use my old config files from c-rieger.com. I'll try again later.
                                            Maybe I can post my conf files her and you guys can take a look?

                                            4th I used APCu as memcache before. Now I had installed Redis but I did not changed it in the Nextcloud config file. That was the reason for internal server error. Redis gives me some warnings in the redis.log. I need to check this.

                                            scottalanmillerS 1 Reply Last reply Reply Quote 2
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 2 / 4
                                            • First post
                                              Last post