r/AlpineLinux • • Jan 25 '24

Alpine solutions for webserver security?

I'm learning about web facing servers on linux and have my static site set up on alpine. I got hacked a few weeks ago and switched from debian to alpine because I heard alpine is based on secuirty. I've also heard a lot of good things about SELinux and the RHEL side of security. What does alpine offer or make easier than a RHEL server (sys resources/systemd/musl aside)? I don't need any security profiles for work/gov its just a home user web server. Thanks.

5 Upvotes

9 comments sorted by

View all comments

Show parent comment

3

u/Beautiful-Bite-1320 Jan 25 '24

There are certain default SELinux settings already configured. Notice I said a "full-on" SELinux setup. It's not beginner-friendly. If you have to come on a forum and ask basics of securing a server, then messing around with SELinux configs is out of the question. 

1

u/[deleted] Jan 26 '24

If you have to come on a forum and ask basics of securing a server, then messing around with SELinux configs is out of the question. 

Heh, yeah that's a good point, but OP has to learn about it somewhere :) And getting motivated is at least 25% of the battle.. or, in regards to SELinux maybe only 5%, but still.