Salta al contenuto
0
  • Categorie
  • Recenti
  • Tag
  • Popolare
  • Mondo
  • Utenti
  • Gruppi
  • Categorie
  • Recenti
  • Tag
  • Popolare
  • Mondo
  • Utenti
  • Gruppi
Collassa

Forum Federato

Di Piero Bosio
  1. Home
  2. Categorie
  3. Senza categoria
  4. Me right now: studying the ins and outs of #Docker, ports exposure, firewalls and #TLS.

Me right now: studying the ins and outs of #Docker, ports exposure, firewalls and #TLS.

Pianificato Fissato Bloccato Spostato Senza categoria
dockertlsfail2banselfhostingmysocalledsudolsudomaimparo
13 Post 6 Autori 9 Visualizzazioni
  • Da Vecchi a Nuovi
  • Da Nuovi a Vecchi
  • PiΓΉ Voti
Rispondi
  • Topic risposta
Effettua l'accesso per rispondere
Questa discussione Γ¨ stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
  • Jan Wildeboer 😷:krulorange:undefined Jan Wildeboer 😷:krulorange:

    @elena If you need someone to sanity check your VPS setup before deploying, feel free to ask me. I have VPSes with containers on OVH and netcup that are happily humming along and resisting attacks since years πŸ™‚

    Elena Rossini on GoToSocial ⁂undefined Questo utente Γ¨ esterno a questo forum
    Elena Rossini on GoToSocial ⁂undefined Questo utente Γ¨ esterno a questo forum
    Elena Rossini on GoToSocial ⁂
    scritto su ultima modifica di
    #4

    @jwildeboer thank you Jan!!! One quick question: once I install Docker (again), what’s the first thing I should do to ensure the VPS can’t be exploited in attacks?

    Like what should I tweak right away?

    My previous Docker setup lasted less than a day 😭

    1 Risposta Ultima Risposta
    • tazidenundefined taziden

      @elena Sudo ma Imparo πŸ˜‚

      Elena Rossini on GoToSocial ⁂undefined Questo utente Γ¨ esterno a questo forum
      Elena Rossini on GoToSocial ⁂undefined Questo utente Γ¨ esterno a questo forum
      Elena Rossini on GoToSocial ⁂
      scritto su ultima modifica di
      #5

      @taziden πŸ˜†πŸ€—

      1 Risposta Ultima Risposta
      • Elena Rossini on GoToSocial ⁂undefined Elena Rossini on GoToSocial ⁂

        Me right now: studying the ins and outs of #Docker, ports exposure, firewalls and #TLS.

        I’ve got a brand new VPS (on Hetzner) that for now only has #Fail2Ban on it.

        Let’s see when I’ll feel confident (reckless?) enough to install #Docker on it πŸ˜…

        This time I learned my lesson and I’m only paying month-by-month. And I’ve got many thoughts about what went down yesterday that I may share in a blog post soon.

        Thanks for all your supportive messages ❀️ I hope my public fumbles are useful to fellow #selfhosting newbies πŸ₯²

        #MySoCalledSudoLife #SudoMaImparo

        EloPupundefined Questo utente Γ¨ esterno a questo forum
        EloPupundefined Questo utente Γ¨ esterno a questo forum
        EloPup
        scritto su ultima modifica di
        #6

        @elena
        Your public fumbles are VERY useful for other (upcoming) selfhosters! Be assured! This is gold for technically less versed Fediversians :).

        Btw: if time (and nerves πŸ˜…) allow, you could re-read the service contract with OVH, this kind of termination policy seems a bit strange to me πŸ€”. Maybe you could push for some money back.
        Just a thought tho.
        Or maybe you have already ofc.

        Best of luck for the further steps! Many watch and learn πŸ“ πŸ™‚πŸ‘ŒπŸ».

        Elena Rossini on GoToSocial ⁂undefined 1 Risposta Ultima Risposta
        • EloPupundefined EloPup

          @elena
          Your public fumbles are VERY useful for other (upcoming) selfhosters! Be assured! This is gold for technically less versed Fediversians :).

          Btw: if time (and nerves πŸ˜…) allow, you could re-read the service contract with OVH, this kind of termination policy seems a bit strange to me πŸ€”. Maybe you could push for some money back.
          Just a thought tho.
          Or maybe you have already ofc.

          Best of luck for the further steps! Many watch and learn πŸ“ πŸ™‚πŸ‘ŒπŸ».

          Elena Rossini on GoToSocial ⁂undefined Questo utente Γ¨ esterno a questo forum
          Elena Rossini on GoToSocial ⁂undefined Questo utente Γ¨ esterno a questo forum
          Elena Rossini on GoToSocial ⁂
          scritto su ultima modifica di
          #7

          @EloPup thank you! Honestly I find my time valuable and I don't want to waste any more time or efforts with them... in case any attempts are unfruitful. Just moving on to greener pastures. Honestly I would have respected them so much more if they'd said: "you violated our ToS so we are terminating your ACCOUNT". Instead of saying: "you violated our ToS so we deleted your VPS with no recourse to get your money back for the 6 months you paid... but you're more than welcome to buy a new plan" WTF?

          1 Risposta Ultima Risposta
          • Elena Rossini on GoToSocial ⁂undefined Elena Rossini on GoToSocial ⁂

            Me right now: studying the ins and outs of #Docker, ports exposure, firewalls and #TLS.

            I’ve got a brand new VPS (on Hetzner) that for now only has #Fail2Ban on it.

            Let’s see when I’ll feel confident (reckless?) enough to install #Docker on it πŸ˜…

            This time I learned my lesson and I’m only paying month-by-month. And I’ve got many thoughts about what went down yesterday that I may share in a blog post soon.

            Thanks for all your supportive messages ❀️ I hope my public fumbles are useful to fellow #selfhosting newbies πŸ₯²

            #MySoCalledSudoLife #SudoMaImparo

            jonundefined Questo utente Γ¨ esterno a questo forum
            jonundefined Questo utente Γ¨ esterno a questo forum
            jon
            scritto su ultima modifica di
            #8

            @elena fascinating to hear of your progress in this. Happy to share my exp in this anytime. Crowdsec is a good alternative to fail2ban as that is kinda out of date now by some reckonings but good non the less. Uncomplicated firewall 'ufw' if your on debian / ubuntu is a good jumping off point for FOSS firewall on linux. If you use docker compose files and an ingress you can expose just 80 and 443 for letsencrypt to issue free certs. Bonus, if you sign up to the free tier that Tailscale has for home labbers you can lock your hetzner / digital ocean / akami etc host down to have no other open ports and allowing you secure access via ssh from anywhere using your own 'tailnet' and tailscale client. They make it simple to install, use and extend. I like to use traefik for ingress, some like nginx, others are moving to caddy - but there be dragons at least in terms of decision anxiety, which is why I've gone with traefik but others may chosse differently.

            Hope you have great success. Rock on !

            Elena Rossini on GoToSocial ⁂undefined 1 Risposta Ultima Risposta
            • jonundefined jon

              @elena fascinating to hear of your progress in this. Happy to share my exp in this anytime. Crowdsec is a good alternative to fail2ban as that is kinda out of date now by some reckonings but good non the less. Uncomplicated firewall 'ufw' if your on debian / ubuntu is a good jumping off point for FOSS firewall on linux. If you use docker compose files and an ingress you can expose just 80 and 443 for letsencrypt to issue free certs. Bonus, if you sign up to the free tier that Tailscale has for home labbers you can lock your hetzner / digital ocean / akami etc host down to have no other open ports and allowing you secure access via ssh from anywhere using your own 'tailnet' and tailscale client. They make it simple to install, use and extend. I like to use traefik for ingress, some like nginx, others are moving to caddy - but there be dragons at least in terms of decision anxiety, which is why I've gone with traefik but others may chosse differently.

              Hope you have great success. Rock on !

              Elena Rossini on GoToSocial ⁂undefined Questo utente Γ¨ esterno a questo forum
              Elena Rossini on GoToSocial ⁂undefined Questo utente Γ¨ esterno a questo forum
              Elena Rossini on GoToSocial ⁂
              scritto su ultima modifica di
              #9

              @jon thank you Jon, I really appreciate your feedback and advice.

              Do I understand everything you said? Not quite but I get the gist of it. Aw how I wish I was more knowledgeable about this stuff.

              You're the second person to recommend Tailscale to me. I'll definitely look into it.

              Thank you for the support and encouragement!

              jonundefined 1 Risposta Ultima Risposta
              • Elena Rossini on GoToSocial ⁂undefined Elena Rossini on GoToSocial ⁂

                Me right now: studying the ins and outs of #Docker, ports exposure, firewalls and #TLS.

                I’ve got a brand new VPS (on Hetzner) that for now only has #Fail2Ban on it.

                Let’s see when I’ll feel confident (reckless?) enough to install #Docker on it πŸ˜…

                This time I learned my lesson and I’m only paying month-by-month. And I’ve got many thoughts about what went down yesterday that I may share in a blog post soon.

                Thanks for all your supportive messages ❀️ I hope my public fumbles are useful to fellow #selfhosting newbies πŸ₯²

                #MySoCalledSudoLife #SudoMaImparo

                maikelundefined Questo utente Γ¨ esterno a questo forum
                maikelundefined Questo utente Γ¨ esterno a questo forum
                maikel
                scritto su ultima modifica di
                #10

                @elena If you are going to use docker compose again with port mapping. The default configuration will punch through your firewall and ignore fail2ban. The docs have some options for mapping to local or make it compatible with firewall: https://docs.docker.com/engine/network/packet-filtering-firewalls/#restrict-external-connections-to-containers

                Elena Rossini on GoToSocial ⁂undefined 1 Risposta Ultima Risposta
                • maikelundefined maikel

                  @elena If you are going to use docker compose again with port mapping. The default configuration will punch through your firewall and ignore fail2ban. The docs have some options for mapping to local or make it compatible with firewall: https://docs.docker.com/engine/network/packet-filtering-firewalls/#restrict-external-connections-to-containers

                  Elena Rossini on GoToSocial ⁂undefined Questo utente Γ¨ esterno a questo forum
                  Elena Rossini on GoToSocial ⁂undefined Questo utente Γ¨ esterno a questo forum
                  Elena Rossini on GoToSocial ⁂
                  scritto su ultima modifica di
                  #11

                  @maikel thank you, this is super useful πŸ™

                  1 Risposta Ultima Risposta
                  • Elena Rossini on GoToSocial ⁂undefined Elena Rossini on GoToSocial ⁂

                    @jon thank you Jon, I really appreciate your feedback and advice.

                    Do I understand everything you said? Not quite but I get the gist of it. Aw how I wish I was more knowledgeable about this stuff.

                    You're the second person to recommend Tailscale to me. I'll definitely look into it.

                    Thank you for the support and encouragement!

                    jonundefined Questo utente Γ¨ esterno a questo forum
                    jonundefined Questo utente Γ¨ esterno a questo forum
                    jon
                    scritto su ultima modifica di
                    #12

                    @elena I apologise for my technical rant. I know I can get carried away now and then. It is my thing so sometimes I can't help being excited and start using short hand. On your question regarding Tailscale, I just wrote a short blog entry about it at https://headshed.dev/missivz/whats-tailscale/ in which I try to explain myself as regards mesh networks and why you may find it useful.

                    I hope this makes sense - pleas let me know and I am happy to receive feedback and rectify accordingly.

                    Tailscale and others like it that use wireguard are nothing less than game changing in my mind, if not a step toward a paradigm shift in networking and security.

                    Elena Rossini on GoToSocial ⁂undefined 1 Risposta Ultima Risposta
                    • jonundefined jon

                      @elena I apologise for my technical rant. I know I can get carried away now and then. It is my thing so sometimes I can't help being excited and start using short hand. On your question regarding Tailscale, I just wrote a short blog entry about it at https://headshed.dev/missivz/whats-tailscale/ in which I try to explain myself as regards mesh networks and why you may find it useful.

                      I hope this makes sense - pleas let me know and I am happy to receive feedback and rectify accordingly.

                      Tailscale and others like it that use wireguard are nothing less than game changing in my mind, if not a step toward a paradigm shift in networking and security.

                      Elena Rossini on GoToSocial ⁂undefined Questo utente Γ¨ esterno a questo forum
                      Elena Rossini on GoToSocial ⁂undefined Questo utente Γ¨ esterno a questo forum
                      Elena Rossini on GoToSocial ⁂
                      scritto su ultima modifica di
                      #13

                      @jon thank you Jon! People keep recommending Tailscale to me... I will definitely read your piece and look into it.

                      I just figured out how to turn on the Firewall for my Hetzner server, where I have Docker installed.

                      One thing at a time πŸ˜…β€‹

                      1 Risposta Ultima Risposta
                      Rispondi
                      • Topic risposta
                      Effettua l'accesso per rispondere
                      • Da Vecchi a Nuovi
                      • Da Nuovi a Vecchi
                      • PiΓΉ Voti


                      • Accedi

                      • Accedi o registrati per effettuare la ricerca.
                      • Primo post
                        Ultimo post