Secure Linux & protect servers from Hackers with Fail2Ban #Hardening #vps #vpn

  Рет қаралды 3,172

Digital Independent

Жыл бұрын

Running your own little (virtual) linux server opens a whole new world of possibilities:
1. Run your own truly private VPN
2. Host your own Cloud for yourself, family and friends
3. Secure your DNS (PiHole), sync files (Syncthing), archive documents (Paperless-ngx) and so much more…
👉️👉️ BUT:
The no. 1 fear when self-hosting is: Getting hacked. Security isn't a natural occurrence. You have to do stuff to make your server secure. But what stuff is really worth it? Do I really have to follow all "best practices" out there?
👉️👉️ Introducing LAZY HIGH SECURITY
This video is all about doing the right things for beginners. Enough to be safe against all typical attacks but not so much that we have to change our lifestyle, our name and what we eat.
👉️👉️ Chapters:
00:00 Introduction: Your own Linux server & LAZY SECURITY
01:16 Get a Linux Server or VPS
02:11 Safe root password
02:48 Software updates
04:09 Add a new user with SUDO
08:03 Disable root logins
09:27 Install fail2ban
14:25 Firewall UFW: Install & configure
18:08 Automatic (unattended) upgrades / updates
20:36 SSH Keys, additional notes
I highly recommend using SSH Keys, but they are not needed if you don't feel like you want to have to manage your SSH keys as a beginner.
VPS providers:
+ EU: www.alwyzon.com
+ EU & US: www.hetzner.com
+ US: www.digitalocean.com (They help finance linuxserver.io - so they should be supported!)
+ US: www.vultr.com
+ US & UK: www.racknerd.com (Obscure payment options)

Пікірлер: 32
@JosephBenson
@JosephBenson 8 ай бұрын
Wow this is what I have been looking for, for years now. Thank you 🎉😂😊 I want to say God bless you, you really safe me from hackers now.
@massgrave8x
@massgrave8x 8 ай бұрын
this is my go-to resource for hardening ubuntu server instances. thank you for these clear and concise explanations.
@DigitalIndependent
@DigitalIndependent 5 ай бұрын
Thanks! Happy to help! Do try using ssh keys also :)
@thekrobar
@thekrobar Жыл бұрын
Awesome stuff! Your explanation of fail2ban was great! I got my VPS secured now
@DigitalIndependent
@DigitalIndependent Жыл бұрын
Glad it helped! Fail2ban can be a bit tricky… Try the ssh keys if you haven’t tried them yet :) And lots of fun with your VPS!
@whatawhatnow
@whatawhatnow 10 ай бұрын
Thank you for the clear and concise guide.
@DigitalIndependent
@DigitalIndependent 9 ай бұрын
Thanks for your nice and motivational comment :)
@jimcabezola3051
@jimcabezola3051 Жыл бұрын
I really like your CLEAR explanation of fail2ban. I feel more confident to do this on my Debian 12 laptop and this Mint 21.1 Mac Mini.
@DigitalIndependent
@DigitalIndependent Жыл бұрын
Thanks :) Fail2ban can be a bit intimidating, but it’s a great tool. Hope you have lots of fun with it and block all the bad stuff out there :)
@jimcabezola3051
@jimcabezola3051 Жыл бұрын
@@DigitalIndependent Tinkering in Linux gives me a sense of control over things in my life. In a world spinning out of control, Linux is a help to me. Having JUST installed it less than an hour ago on both Mint 21.1 and Debian 12, i found my first surprise that "whois" was NOT a standard part of MY Linux distros. That was on the distros at work, but not at home. Hmmm...fascinating. I will ENJOY tinkering with this. Mahalo!
@CliffordHepplethwaite
@CliffordHepplethwaite Жыл бұрын
Thanks. Exactly what I needed. Subbed
@DigitalIndependent
@DigitalIndependent Жыл бұрын
Thanks! Private (as in your own) VPN coming soon.
@rezzahilman615
@rezzahilman615 Жыл бұрын
i like your video, always give a good work there
@DigitalIndependent
@DigitalIndependent Жыл бұрын
Thank you very much!
@BrandonGroves84
@BrandonGroves84 Жыл бұрын
Great content!
@DigitalIndependent
@DigitalIndependent Жыл бұрын
Thanks :)
@jim6477
@jim6477 10 ай бұрын
Great video, thanks!
@DigitalIndependent
@DigitalIndependent 9 ай бұрын
Thanks! Glad I could help :)
@jjiacobucci
@jjiacobucci 6 ай бұрын
Outstanding content. Danke
@DigitalIndependent
@DigitalIndependent 5 ай бұрын
Bitteschön! Freut mich zu lesen. Der Akzent sollte aber nicht so deutlich sein :)
@Jamxknife
@Jamxknife Жыл бұрын
Thanks been looking for something like this
@iHusbandry
@iHusbandry Жыл бұрын
Excellent
@DigitalIndependent
@DigitalIndependent Жыл бұрын
Thank you! Cheers! :)
@lordquadrato437
@lordquadrato437 4 ай бұрын
sudo ufw status just yielded "Status: inactive", and when I enabled it, the status still didn't display any ALLOW ports. I don't know if I doged a bullet because I was still connected, but I quickly added port 22. Mighty be good to keep in mind to check that first.
@sudtheshawty
@sudtheshawty 7 ай бұрын
will you continue to make more videos?
@DigitalIndependent
@DigitalIndependent 5 ай бұрын
I had a video done and ready on your personal VPN. But the maintainer noped out, killing my video. Redid it, it’s in post production.
@takennmc
@takennmc Жыл бұрын
btw when you edit sshd config you should restart sshd with systemctl restart sshd so the new config applies as you may run the server without reboot for a while and have the bad setting
@DigitalIndependent
@DigitalIndependent Жыл бұрын
Thanks for pointing that out!
@iamrage4753
@iamrage4753 Жыл бұрын
Crowdsec?
@DigitalIndependent
@DigitalIndependent Жыл бұрын
Yes. A good option. But sometimes a bit tricky for absolute beginners…
@fitnessimage126
@fitnessimage126 3 ай бұрын
thanks bro
Хасанның өзі эфирге шықты! “Қылмыстық топқа қатысым жоқ” дейді. Талғарда не болды? Халық сене ме?
09:25
Демократиялы Қазақстан / Демократический Казахстан
Рет қаралды 300 М.
Every parent is like this ❤️💚💚💜💙
00:10
Like Asiya
Рет қаралды 26 МЛН
Cool Parenting Gadget Against Mosquitos! 🦟👶
00:21
TheSoul Music Family
Рет қаралды 14 МЛН
إخفاء الطعام سرًا تحت الطاولة للتناول لاحقًا 😏🍽️
00:28
حرف إبداعية للمنزل في 5 دقائق
Рет қаралды 78 МЛН
Wireless switch part 177
0:58
DailyTech
Рет қаралды 12 МЛН
Is this Samsung's change over time #shorts
0:13
Si pamerR
Рет қаралды 1,5 МЛН
iPhone 16 Vs S25 ultra💀
1:01
Skinnycomics
Рет қаралды 7 МЛН
How to connect electrical wires with good contact #short
0:29
Tuan CT
Рет қаралды 23 МЛН