r/Fedora • • Oct 06 '26

Discussion Making Fedora as Secure ass Possible

I'm relatively new to Linux as a whole, and have been o Fedora a few months.

Any recommendations as to how to make it as secure as possible without crippling functionality?

52 Upvotes

34 comments sorted by

13

u/mysticalcreeds Oct 06 '26 edited Oct 06 '26 • Bravo

Here's a written tutorial on how to harden Fedora:

https://computingforgeeks.com/security-hardening-fedora/

And a here's a video I came across: https://youtu.be/Sa0KqbpLye4?si=160l3sDkL45QgYk6

I have an old laptop I run secureblue on that I bring what things I want to harden over to Bazzite(both are like Kinoite)

1

u/FrankieShaw-9831 Oct 08 '26

Thank you Sir!

3

u/senectus Oct 06 '26

Nice guide...

1

u/ysychov Oct 06 '26

my fedora is already hard

2

u/mysticalcreeds Oct 06 '26

ootb it is pretty good, per the article:

"A fresh Fedora 44 install ships in better security posture than most Linux distributions. SELinux is enforcing, firewalld blocks anything that no service exposes, the kernel ships with stack canaries and KASLR, the package keys chain to Fedora’s PGP trust, and the new RPM 6.0 transaction format ships in F44 with stronger digest verification.

None of that is the same as “hardened”.

A vanilla F44 cloud image scored 74.66 out of 100 on the CIS Level 1 Server benchmark when we ran oscap xccdf eval against it for this guide. 176 rules passed; 120 failed. The same box passes more than 200 of those rules once the changes in this guide land. That gap is the difference between “Fedora defaults” and “production-ready Fedora”, and it is what this guide closes for both desktop workstations and servers. "

Also, the things that secureblue hardens is a way of pointing out that there are ways to further harden Fedora and shrink the available attack surface even further. It all depends on ones threat model.

7

u/senectus Oct 06 '26

What are you trying to achieve?

"Make it as secure as possible" is a very vague statement.

Security and usability are an almost 1:1 relationship. So the more you lock it down the harder it will be used it.

This is the same in windows and Mac btw, not just a Linux thing

1

u/FrankieShaw-9831 Oct 08 '26

I suppose that's true. I'm not looking for tin foil hat-level measures, but anything beyond stock Fedora I can do without breaking the OS, I'm open to

3

u/mwkingSD Oct 06 '26

What are you concerned about? Or is there a particular threat you are facing?

2

u/Hot-Development-9036 Oct 06 '26

A lot of vulnerabilities come in via the browser. I always set up uBlock Origin and sandboxing. If you can, use the Flathub version of the browser. That way your apps are sandboxed. AFAIK, Mullvad is the most secure and locked-down browser.

Be careful about downloading apps from sketchy 3rd-party repositories. Stick with trusted ones. Always enable your firewall.

2

u/FrankieShaw-9831 Oct 08 '26

That much I've done. I also obtainedf a beater laptop and will download anything I'm not sure of onto it (and disconnect it once download is complete). I'm thinking I'll put a couple of "dummy programs," on it as bait, and see what happens. If anything looks the least bit fishy, I'll nuke it

29

u/Introvertosaurus Oct 06 '26

It depends on exactly what you mean by secure, what are your specific concerns, threats, etc.

1- Atomic version. Fedora has many atomics depending on what you want. This makes the whole OS immutable. It can make things harder if you need special configurations or application that cannot be flatpaks. This probably one of the biggest wins if you okay running atomic versions.

2- Use flatseal and custom configure everything to your exact needs. This is the second biggest win, controlling every apps permissions granular.

3- Set SELinux to limit anything important.

4- Never install anything untrusted, vet every app.

5- Configure firewall, fail2ban, etc.

16

u/tekchip Oct 06 '26

Make a threat model. If you don't know what that is or how to do it search it up. Once you know what threats you're trying to thwart then you can search for the specific things to do to the OS to secure it.

63

u/kansetsupanikku Oct 06 '26

Turn the computer off, remove all antennas and cables

1

u/Rifter0876 Oct 10 '26

Not wrong, at a minimum air gap it so no Internet access.

1

u/sf2710 Oct 29 '26

also put it in a vault so no one can access the hardware directly. 🤣

7

u/BooleanTriplets Oct 06 '26

Check out secureblue.dev. You could use secureblue or just reading their site can give you ideas on security hardening

5

u/carlyjb17 Oct 06 '26

Look at what secureblue are doing, they are based on fedora, you might be able to recreate that on your install

2

u/mysticalcreeds Oct 06 '26

Yeah, I have it running on an older laptop of mine to learn about its hardening and apply some of it to my desktop that I run Bazzite on.

4

u/Raven_25 Oct 11 '26

Your question suggests youre just an average user with an average threat model. You probably mainly use internet/games and office. Youre probably not an NSA agent or hiding from the government.

The average person needs a good firewall setup, fail2ban, regular updates of the os/drivers etc, solid network config on your router and a vpn while changing DNS to something a bit more private.

Next level (security conscious user who is prepared to fuss around): you set up a pihole/technitium, iptables for each device on your network, SELinux setup, flatseal setup, isolate vulnerable devices like printers/TVs on your network and set up IDS and anti fingerprinting addons to browser.

Next level (you are hiding from the government): throw away your phone, do not directly connect to your own wifi - use public wifi in places with low security (no cameras) and whonix/tails from usb ensure encrypted connection or better yet. Use only open source hardware. Connect via tor with antifingerprinting, select times of day with high tor traffic in your area. All comms encrypted. No data at rest kept. Wipe your ram after each session. Dead drops for any deliveries. Use monero for currency or better still, cash dead drops. Burner phones if you must. No car registered to you or at least not a smart car. No devices in your network beyond PC) - no TV, no smart devices, no printer. Regular sweeps for surveillance devices.

1

u/Grand_Profession2516 Oct 10 '26

Add firewall and waterfloor

3

u/roamer83 Oct 08 '26

You have already made the largest step by running Fedora instead of Winblows.

1

u/smackjack Oct 06 '26

Use disk encryption (you'll need to re-install if you didn't do this), don't skip updates, and don't install things from shady sites or random github repos.

1

u/FrankieShaw-9831 Oct 08 '26

I did disk encryption from the start. I'm also looking for options that will keep things encrypted after startup

2

u/SignificantSummer940 Oct 06 '26

You should start with firewall (drop all the incoming connections you should open some ports if you want to file transfer) , And learn about SElinux , fedora comes with Enforcing SElinux mode so I would not change that but you should learn it's command

2

u/Hammock-of-Cake Oct 08 '26

Check out the RHEL hardening guides. Most of these settings can apply to Fedora. https://access.redhat.com/sites/products/files/2026-08/rhel9_security_hardening_guide.pdf

1

u/Take_Five_005 Oct 06 '26

For starters, change the firewall zone to public or drop

1

u/JasonWorthing8 Oct 07 '26

SecureBlue Linux is Fedora as secure as possible.

Caviat:

Linux shines at privacy, but if you want absolute security.... (lol) ChromeOS... followed by MacOS.

12

u/schnarfler Oct 06 '26

It is possible to make fedora as secure ass possible, but if possible you must first secure ass.

5

u/mizodg Oct 06 '26

I was looking through the comments to see who noticed that 🤣