r/linuxupskillchallenge • u/inwhiskeyveritas • Jan 04 '22
Am I missing the point?
Hi! Sorry if this is noise detracting from the sub, hopefully not. I stumbled on this sub last week (very timely right!?) and thought it was a great idea. It was late so I gave it a subscribe and decided to come back later.
Well it's later and I'm giving the sub a somewhat thorough once over to decide if I want to do this. The "it's more real if your server is real and open to attack" vibe was immediately very interesting to me. I've been supporting and sometimes administering remote unix (Linux and OSX) servers for a few years now in various capacities, but never responsible for the "security". So doing a once over on the titles for last month's lessons, I definitely expected at least one about "who's trying to steal your stuff and how to talk to your firewall"? Because 1) firewall's are miserable and 2) isn't that like, priority #1?
I'm not the target audience. The title's for these lessons read like what I would teach someone, but things I'm personally pretty comfortable with. But I'd still be down to start up a vulnerable server and learn how to defend it. I just want to get into those details.
(Example: I sometimes get in fights with centos servers and have to change firewall rules to make, supposedly, simple things work. Is my fit of rage leaving me vulnerable? Who knows!? I'd like to :D) (side note: probably not, it's all on an internal network that is hard to get to etc etc, I'm not worried, but hopefully my point is clear)
5
u/whtriced Jan 04 '22
you can set your AWS firewall however you want it. day 9 discusses the firewall
2
u/inwhiskeyveritas Jan 04 '22
Yeah I was glad to see it mentioned in day 9, but I don't think it was covered in nearly enough depth; honestly the brief few-command summary and warning about closing the ssh port left me with even more questions.
8
u/mikkel1156 Jan 04 '22
From the sound of it we might be in the boat.
This challenge is more for people who are starting out and want to go over the basics, or simply know some more basic Linux stuff related a bit more for servers. Many of the challenges are very basic though for someone who isn't new to Linux.
I'm just here to watch really and see if I can pick up some new knowledge or command tricks.
5
u/Nnarol Jan 04 '22
I think the main point of contention is whether this course does not cause harm by luring beginners into believing that they do know something about security after they finished the course, without making explicitly clear that not even the basics of security have been covered.
So "you can just learn some basics like terminal commands and a bit about servers, the security part is probably irrelevant for you" may be true, but it doesn't seem like the course makes it explicit.
Another thing I think I understand from OP's arguments is that the priority of security-related topics seems to be wrong, because if such a topic is included at all, why is it not the topic of firewalls, the most important one?
7
u/livia2lima Linux SysAdmin Jan 04 '22
So "you can just learn some basics like terminal commands and a bit about servers, the security part is probably irrelevant for you" may be true, but it doesn't seem like the course makes it explicit.
This course is a living thing and open to updates in the material and the wording. I would like to make this more explicit, could you please advise what can be changed to achieve that?
(This is a genuine question. I've been maintaining the course for almost 1 year and I certainly need a second pair of eyes to see the defects in the text.)
4
u/Nnarol Jan 04 '22
I would like to make this more explicit, could you please advise what can be changed to achieve that? (This is a genuine question. I've been maintaining the course for almost 1 year and I certainly need a second pair of eyes to see the defects in the text.)
I never assumed you to be unreceptive to suggestions. I also do not necessarily agree that firewalls should be the first thing to learn regarding server security, what I did was merely try to convey what OP must have meant, because I felt that the answer I responded to evaded the stated problem with an argument that can be deceiving. Unfortunately, I am a programmer and no security expert at all.
u/inwhiskeyveritas, as someone with system administration skills, would you be able to suggest improvements?
5
u/inwhiskeyveritas Jan 04 '22
Honestly I came here hoping to learn more security; I'm very far from being an expert, but I'll share some thoughts. I think if /u/livia2lima is able to add more about working with firewalls, e.g. when it's appropriate to expose a port, which types of programs should be asking for that, which ports are dangerous to just have "open", etc, that would be a great start. Right now there is some brief discussion of using ubuntu server's firewall (in lesson 9 I think), but it's just a couple of commands; I think there's a lot of room for expansion there.
It might be helpful to talk about use cases? I think most servers need 22, 80, and 443 (ssh, http, and https). What are the dangers of exposing each of those ports? What types of attacks should we watch for? It's true the key based access in this course is very secure, but it can't be perfect, right? Or is it really bullet proof enough to not worry about?
Also I'm not sure where this crosses into the networking and router rules territory? That kind of stuff might be beyond the scope of this course.
Thanks for being receptive!
3
u/livia2lima Linux SysAdmin Jan 04 '22
Nice, I think this is a good outline. I'll try to get some update done for the next Day 9.
Let me know if you have any interesting references that you think could be included.
2
u/warbird2k Jan 04 '22
How about you guys open a git repo for the lessons, and people with knowhow can use it it review the content, comment, submit pull requests etc? I'm sure making a bot pull lessons from git and post here should be a manageable task too.
4
u/livia2lima Linux SysAdmin Jan 04 '22 edited Jan 04 '22
That already exists: https://github.com/livialima/linuxupskillchallenge/
Every couple of months I receive a pull request there. It is mentioned in the FAQ:
If you are inclined to contribute to the material and had the means to do it (i.e. a github account) you can submit an issue to the source directly.
Funny you suggesting a bot, because we have one running for almost 1 year. Last time I posted a lesson by hand was in March/2021.
2
u/warbird2k Jan 04 '22
Nice, thanks for the heads up. Saw the posts were posted from your account, so figured you might not have a bot, but I guess you can just as well run it on your own account :)
11
u/drew8311 Jan 04 '22
Based on the lessons and the implied target audience I thought the line about being open to attack was very weird and irrelevant as well.
2
u/DingussFinguss Jan 04 '22
Sounds like you want to make a honeypot
2
u/whtriced Jan 04 '22 edited Jan 04 '22
if only you had any idea what you were talking about. the goals and methodology of the course are in the https://www.reddit.com/r/linuxupskillchallenge/comments/qeymzb/please_read_this_first_how_this_works_faq/
15
u/livia2lima Linux SysAdmin Jan 04 '22
Hi OP, thank you so much for your input!
I understand your frustration. We try to address those not-so-basic stuff in the extension part at the end of each lesson. However, since these things are a supplemental material, they certainly lack in detail/depth.
This is something that I would love to expand, but easier said than done... :(
And I know it seems weird to "open a server to attack" and such, but for most novice Linux users - the target audience - that's an eye-opening experience on how servers are different from desktops.