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

    How to Secure a Website at Home

    Water Closet
    8
    58
    3.5k
    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.
    • hobbit666H
      hobbit666
      last edited by

      Didn't want to start a few thread at the moment,
      But i'm hosting a quick site at home on a VM, got a domain and forwarded to my external IP.

      The VM is Linux Apache, MariaDB, PHP. But how would people beef up the security.
      Stick Nginx in forint on the same server or a separate VM?

      travisdh1T JaredBuschJ scottalanmillerS 3 Replies Last reply Reply Quote 0
      • travisdh1T
        travisdh1 @hobbit666
        last edited by

        @hobbit666 said in What Are You Doing Right Now:

        Didn't want to start a few thread at the moment,
        But i'm hosting a quick site at home on a VM, got a domain and forwarded to my external IP.

        The VM is Linux Apache, MariaDB, PHP. But how would people beef up the security.
        Stick Nginx in forint on the same server or a separate VM?

        I always use a reverse proxy now (that's what putting Nginx between the server and the outside world does).

        Either way, same server or separate VM should be ok. I prefer a separate VM, but that's because I already have one setup with gobs of things running through it.

        hobbit666H 1 Reply Last reply Reply Quote 1
        • hobbit666H
          hobbit666 @travisdh1
          last edited by

          @travisdh1 said in What Are You Doing Right Now:

          I always use a reverse proxy now (that's what putting Nginx between the server and the outside world does).

          Either way, same server or separate VM should be ok. I prefer a separate VM, but that's because I already have one setup with gobs of things running through it.

          That's what i was thinking. Now to get one setup and configured šŸ™‚

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

            @hobbit666 said in What Are You Doing Right Now:

            Didn't want to start a few thread at the moment,

            Always make a new thread. make it way the fuck easier to find this recommendation later.

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

              @hobbit666 said in How to Secure a Website at Home:

              Stick Nginx in forint on the same server or a separate VM?

              Separately normally, but the same isn't that bad. Depends how much flexibility that you want. An extra server adds a little additional security. But you are running this at home. So there is a practical limit to consider, as well.

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

                A proxy in front make almost no difference from a security perspective.

                It will just pass on any malicious request to the webserver.

                If you wanted to go that route you would need something that can detect and filter the request. Basically a web application firewall (WAF) in front.

                What kind of website is it and who is going to access it?

                scottalanmillerS hobbit666H 2 Replies Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @1337
                  last edited by

                  @pete-s said in How to Secure a Website at Home:

                  A proxy in front make almost no difference from a security perspective.

                  It helps, but yes, EXTREMELY little.

                  1 Reply Last reply Reply Quote 0
                  • hobbit666H
                    hobbit666 @JaredBusch
                    last edited by

                    @jaredbusch said in How to Secure a Website at Home:

                    @hobbit666 said in What Are You Doing Right Now:

                    Didn't want to start a few thread at the moment,

                    Always make a new thread. make it way the fuck easier to find this recommendation later.

                    Only asked in "What your Doing" thread as if people said don't bother no need for a thread lol
                    ​​​

                    1 Reply Last reply Reply Quote 0
                    • hobbit666H
                      hobbit666 @1337
                      last edited by

                      @pete-s said in How to Secure a Website at Home:

                      What kind of website is it and who is going to access it?

                      It's a Wordpress site at the moment, but it's simple going to be static pages showing images and test. Showing repair jobs and meter reading, so everything is in place.

                      I'll only be a few people accessing when working together to diagnose the pcb.

                      scottalanmillerS 1 2 Replies Last reply Reply Quote 0
                      • stacksofplatesS
                        stacksofplates
                        last edited by

                        You could just put an API gateway in front. They are usually easier to configure for auth than a reverse proxy.

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

                          @hobbit666 said in How to Secure a Website at Home:

                          @pete-s said in How to Secure a Website at Home:

                          What kind of website is it and who is going to access it?

                          It's a Wordpress site at the moment, but it's simple going to be static pages showing images and test. Showing repair jobs and meter reading, so everything is in place.

                          I'll only be a few people accessing when working together to diagnose the pcb.

                          If you are concerned about security, use a static generator to output WordPress to "not WordPress", or just stop using WordPress. Your security issues are 99% WordPress, 1% everything else. So since you aren't using WP for anything, don't have it deployed.

                          1 Reply Last reply Reply Quote 1
                          • 1
                            1337 @hobbit666
                            last edited by 1337

                            @hobbit666 said in How to Secure a Website at Home:

                            @pete-s said in How to Secure a Website at Home:

                            What kind of website is it and who is going to access it?

                            It's a Wordpress site at the moment, but it's simple going to be static pages showing images and test. Showing repair jobs and meter reading, so everything is in place.

                            I'll only be a few people accessing when working together to diagnose the pcb.

                            I think it would be easier to just setup a $5/month vultr instance. From what you say, there is no real reason why it has to be hosted at home.

                            Then you don't have to worry about incoming traffic, bandwidth, security of your LAN or anything.

                            Well, unless you want to do it for fun or learning of course. But then I think you need to go all in.

                            scottalanmillerS hobbit666H 2 Replies Last reply Reply Quote 0
                            • stacksofplatesS
                              stacksofplates @stacksofplates
                              last edited by

                              @stacksofplates said in How to Secure a Website at Home:

                              You could just put an API gateway in front. They are usually easier to configure for auth than a reverse proxy.

                              Krakend is just a json config: https://www.krakend.io/docs/authorization/client-credentials/

                              Kong has an open source plugin for oidc.

                              They're both easy to configure. Then you could just limit logins by Google account or whatever through something like Auth0.

                              1 1 Reply Last reply Reply Quote 0
                              • 1
                                1337 @stacksofplates
                                last edited by

                                @stacksofplates said in How to Secure a Website at Home:

                                @stacksofplates said in How to Secure a Website at Home:

                                You could just put an API gateway in front. They are usually easier to configure for auth than a reverse proxy.

                                Krakend is just a json config: https://www.krakend.io/docs/authorization/client-credentials/

                                Kong has an open source plugin for oidc.

                                They're both easy to configure. Then you could just limit logins by Google account or whatever through something like Auth0.

                                You could do that on wordpress directly too I believe.

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

                                  @pete-s said in How to Secure a Website at Home:

                                  @hobbit666 said in How to Secure a Website at Home:

                                  @pete-s said in How to Secure a Website at Home:

                                  What kind of website is it and who is going to access it?

                                  It's a Wordpress site at the moment, but it's simple going to be static pages showing images and test. Showing repair jobs and meter reading, so everything is in place.

                                  I'll only be a few people accessing when working together to diagnose the pcb.

                                  I think it would be easier to just setup a $5/month vultr instance. From what you say, there is no real reason why it has to be hosted at home.

                                  Then you don't have to worry about incoming traffic, bandwidth, security of your LAN or anything.

                                  Well, unless you want to do it for fun or learning of course. But then I think you need to go all in.

                                  If he wasn't on WordPress, he could host for FREE with GitLab, CloudFlare or several other free enterprise hosts.

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

                                    @scottalanmiller said in How to Secure a Website at Home:

                                    If he wasn't on WordPress, he could host for FREE with GitLab, CloudFlare or several other free enterprise hosts.

                                    GitLab Pages is where my poor under populated blog resides.

                                    hobbit666H 1 Reply Last reply Reply Quote 0
                                    • stacksofplatesS
                                      stacksofplates @1337
                                      last edited by stacksofplates

                                      @pete-s said in How to Secure a Website at Home:

                                      @stacksofplates said in How to Secure a Website at Home:

                                      @stacksofplates said in How to Secure a Website at Home:

                                      You could just put an API gateway in front. They are usually easier to configure for auth than a reverse proxy.

                                      Krakend is just a json config: https://www.krakend.io/docs/authorization/client-credentials/

                                      Kong has an open source plugin for oidc.

                                      They're both easy to configure. Then you could just limit logins by Google account or whatever through something like Auth0.

                                      You could do that on wordpress directly too I believe.

                                      This blocks you before you even hit that though, so you don't need to worry about vulnerabilities in WordPress. Then just pass the JWT through to WP.

                                      1 1 Reply Last reply Reply Quote 0
                                      • 1
                                        1337 @stacksofplates
                                        last edited by 1337

                                        @stacksofplates said in How to Secure a Website at Home:

                                        @pete-s said in How to Secure a Website at Home:

                                        @stacksofplates said in How to Secure a Website at Home:

                                        @stacksofplates said in How to Secure a Website at Home:

                                        You could just put an API gateway in front. They are usually easier to configure for auth than a reverse proxy.

                                        Krakend is just a json config: https://www.krakend.io/docs/authorization/client-credentials/

                                        Kong has an open source plugin for oidc.

                                        They're both easy to configure. Then you could just limit logins by Google account or whatever through something like Auth0.

                                        You could do that on wordpress directly too I believe.

                                        This blocks you before you even hit that though, so you don't need to worry about vulnerabilities in WordPress. Then just pass the JWT through to WP.

                                        True, but you can authenticate directly on apache too - before wordpress is involved. Apache can do both oidc and saml. Nginx can only do oidc afaik.

                                        stacksofplatesS 1 Reply Last reply Reply Quote 0
                                        • stacksofplatesS
                                          stacksofplates @1337
                                          last edited by

                                          @pete-s said in How to Secure a Website at Home:

                                          @stacksofplates said in How to Secure a Website at Home:

                                          @pete-s said in How to Secure a Website at Home:

                                          @stacksofplates said in How to Secure a Website at Home:

                                          @stacksofplates said in How to Secure a Website at Home:

                                          You could just put an API gateway in front. They are usually easier to configure for auth than a reverse proxy.

                                          Krakend is just a json config: https://www.krakend.io/docs/authorization/client-credentials/

                                          Kong has an open source plugin for oidc.

                                          They're both easy to configure. Then you could just limit logins by Google account or whatever through something like Auth0.

                                          You could do that on wordpress directly too I believe.

                                          This blocks you before you even hit that though, so you don't need to worry about vulnerabilities in WordPress. Then just pass the JWT through to WP.

                                          True, but you can authenticate directly on apache too - before wordpress is involved. Apache can do both oidc and saml. Nginx can only do oidc afaik.

                                          Only nginx plus can do oidc. Apache can but it's more difficult which is why I mentioned the gateways. It's much easier to configure auth and things like rate limiting with an API gateway.

                                          stacksofplatesS 1 Reply Last reply Reply Quote 0
                                          • stacksofplatesS
                                            stacksofplates @stacksofplates
                                            last edited by

                                            The reverse proxy aspect only really adds benefit when you need to load balance across multiple services.

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 1 / 3
                                            • First post
                                              Last post