The Biggest Linux Security Mistakes

  Рет қаралды 141,324

Chris Titus Tech

Chris Titus Tech

Күн бұрын

Security is a journey, not a destination
So after making a couple videos showing how to increase performance in desktop computers running Linux, I was overwhelmed by the sheer scale of comments worried about mitigations. If you are worried about that, you should be even more worried about the things below.
Website Guide: christitus.com/linux-security... .
►► Digital Downloads ➜ www.cttstore.com
►► Reddit ➜ / christitustech
►► Titus Tech Talk ➜ / titustechtalk
►► Twitch ➜ / christitustech

Пікірлер: 282
@ChrisTitusTech
@ChrisTitusTech Жыл бұрын
Now, I should say most desktop linux don't have these things configured because it WILL block things and applications good or bad. However, if you are security concise, it will be worth configuring these things in your system to open up any application that wants to use the internet. Article from Video: christitus.com/linux-security-mistakes/
@lmaoboxuser
@lmaoboxuser Жыл бұрын
bruh
@expensivecats
@expensivecats Жыл бұрын
This video is rather for the server-case than the desktop case. 1. Limiting ssh makes no sense - passwords are strong enough these days, and if not, you would have to manually forward the ssh port. SSH servers are usually not installed and enabled anyway. 2. repositories: I don't have any opinion on that. 3. not using apparmor or selinux: from my first comment to this video: "apparmor (and selinux) are pretty much useless in the desktop-case."
@nemonada3501
@nemonada3501 Жыл бұрын
Chris, more Linux security videos please!
@winstonsuny
@winstonsuny Жыл бұрын
Mr. Titus, I watch all of your videos. I am battling stage 4 cancer, and I keep my mind off it with your fantastic computer insight! Thank you!
@cameronmoore136
@cameronmoore136 Жыл бұрын
Best of luck! Hang in there!
@paw565
@paw565 Жыл бұрын
Wish you best m8
@winstonsuny
@winstonsuny Жыл бұрын
@@cameronmoore136 Thank you!
@winstonsuny
@winstonsuny Жыл бұрын
@@paw565 Thank you!
@jaunie8217
@jaunie8217 Жыл бұрын
I was stage 4 with lymphoma... So far in remission. What do you have if you dont mind me asking?
@andrzejsoporowski4549
@andrzejsoporowski4549 Жыл бұрын
Chris, thanks for the info, but before we can talk about individual computers on local network and their security we need to have a conversation about the most important device on your intranet: the router. This is a first line of defense and if it is not secure then your entire intranet is not secured. Please make a video about that.
@sahaskamble4467
@sahaskamble4467 Жыл бұрын
I really gona assume you put the wrong spelling of internet 😅 but your point is right but we can't do much to a router I think so... Correct me if I'm wrong
@akajammythakkar
@akajammythakkar Жыл бұрын
@@sahaskamble4467 No, internet and intranet are 2 different things bro
@mk72v2oq
@mk72v2oq Жыл бұрын
@@sahaskamble4467 just use a router with e.g. OpenWRT installed, its effectively full-featured Linux.
@ChrisTitusTech
@ChrisTitusTech Жыл бұрын
So true, a bad router or mis configured gateway and its just a bad time no matter what in today's environment.
@andrzejsoporowski4549
@andrzejsoporowski4549 Жыл бұрын
@@sahaskamble4467 Hi, no I did not. "intranet" is term used to describe your home or company internal network structure. Internet, as you know, is Word Wide Web. Regarding routers, yes, you can do many things with them, but the first thing is to stop using your standard "jack of all trades and master of none" store purchased routers. I would recommend to investigate Netgate devices/routers and or utilizing your old PC and installing "pfSense" router software (FREE). One of these solutions are used by most of small to med-size companies.
@AdenMocca
@AdenMocca Жыл бұрын
On the firewall - Fedora should come with firewalld / firewall-cmd running with FedoraWorkstation zone as the active zone. Using UFW on top of that wouldn't cause a conflict? I like UFW, but have been using / learning firewalld - usually I set a workstation to the 'public' zone which only has limited services.
@pyp2205
@pyp2205 Жыл бұрын
Yeah true, I remember when I switched to Fedora a while ago (I just wanted to switch from Ubuntu). I was trying to ssh and ping my linux laptop, and I kept on seeing something like "host unreachable" or "no route to host". And then from looking up Fedora, I found out that it had a firewall. And before I just stopped the process, but then I saw an easier way to configure the firewall. And since I set ssh to listen on a different port (instead of port 22), I set the firewall to allow the port number I set and I was able to ssh into my computer.
@BlissfulCounterstroke
@BlissfulCounterstroke Жыл бұрын
Great video, thank you! I'm currently a Junior Penetration Tester, and I think this touches on something we don't generally get taught. Load up Kali, fire off nmap, poke a few ports and send off a fairly standard report full of accepted mitigations. More videos on general hardening for Mac, Linux and Windows (I know, Windows will take years off your life) would help to give something different back to clients on top of the usual advice. I don't know anyone at work who's ever mentioned it.
@ryanhere7693
@ryanhere7693 Жыл бұрын
Selinux is enabled by default in Fedora workstation it's not in permissive mode and the rules these days are generally pretty decent so you typically don't get spammed with alerts anymore. In terms of firewall, as a lot of people have already mentioned, Fedora comes with firewalld enabled and configured, you just need to set the profile (in KDE you can do it directly from the NIC configuration) and you can configure additional rules if needed using the firewall-cmd command
@mk72v2oq
@mk72v2oq Жыл бұрын
I don't think regular users need to open any ports at all. They don't run web servers (80, 443) on their desktop computers and probably don't run ssh server (22) too. So its better to just deny all incoming ports without exceptions by default. And the techy people who does run servers, certainly already smart enough to open required ports.
@cameronmoore136
@cameronmoore136 Жыл бұрын
Oh, when he said "80 and 443 is the web," he didn't mean like the world wide web? I assumed without those enabled/allowed I wouldn't be able to use a web browser. Is that not correct?
@mk72v2oq
@mk72v2oq Жыл бұрын
@@cameronmoore136 no, the shown rules is only for incoming connections. In fact most users won't receive any incoming connections from the internet anyway because of providers' NAT.
@cameronmoore136
@cameronmoore136 Жыл бұрын
@@mk72v2oq I see. I guess I don't know enough about this. I assumed information being sent to your computer from a website you're trying to load would apply to this. But I appreciate the information!
@mk72v2oq
@mk72v2oq Жыл бұрын
@@cameronmoore136 this is true, packets travel in both directions of course, but *ufw* is just very simplified here on purpose. The only thing that matters here - who is the connection initiator. So when you are accessing a website (or any other resource/server) the whole connection counts as *outgoing* , so only respective rules applied.
@cameronmoore136
@cameronmoore136 Жыл бұрын
@@mk72v2oq Ohhhh okay, that makes sense. Thanks! 😄
@OcteractSG
@OcteractSG Жыл бұрын
Chris, Fedora comes with a firewall already-firewalld. Could you show us how to use what the operating ships with instead?
@ItsCryptic
@ItsCryptic Жыл бұрын
Yes! I was just about to comment about this.
@duffelo
@duffelo Жыл бұрын
Exactly, and firewalld is very good and there is a GUI and CLI interface for it!!
@nemonada3501
@nemonada3501 Жыл бұрын
Thank you. It's awesome to see someone make a basic "hardening" video for Linux. There's not many creators I've found do a "for dummies" video yet. Legend.
@rudyleplane727
@rudyleplane727 Жыл бұрын
Priceless info, always! Thanks again Chris!
@bantymech8242
@bantymech8242 Жыл бұрын
0:47 100% agreed Security is a journey not a destination - Chris Titus
@Esteban7GT
@Esteban7GT Жыл бұрын
Thank you! I was looking for something like this!
@arnoudrattink1572
@arnoudrattink1572 Жыл бұрын
Before installing a firewall check if it is usefull. Do a portscan like this: 'lsof -i -P -n | grep -i listen'. This shows a list of all listening (ie open) tcp ports on your system. On my standard Ubuntu system this list is empty. So there are no open ports and installing a firewall is rather pointless.
@ray_jay
@ray_jay Жыл бұрын
'ss -tuna' also shows al that is listening.
@MarceloCamargobr
@MarceloCamargobr Жыл бұрын
I'll take a look at that apparmor docs right away. Thanks for the heads up Chris! ✌😎
@cyben
@cyben Жыл бұрын
Thanks for this video. I am learning and loving linux now. Using Nobara 36 distro based on Fedora 36.
@MouseHunteR77n
@MouseHunteR77n Жыл бұрын
I learned a lot from you keep doing everything you're doing KZfaq Chris
@ArniesTech
@ArniesTech Жыл бұрын
SELinux and AppArmor are standard in OpenSUSE and Fedora. Two very enterprise focussed distros 💪😌
@operius2385
@operius2385 Жыл бұрын
And firewalld also.
@damienmarguerite827
@damienmarguerite827 Жыл бұрын
@@operius2385 Yes. Just Fedora comes with firewalld, not ufw. Chris TItus Tech choose the wrong distro for this topic.
@budliquor6972
@budliquor6972 Жыл бұрын
Well, openSUSE comes with AppArmor and Fedora with SELinux. Neither comes with both. Also, if you want enterprise go with RHEL and SLE, not the upstream versions.
@maxxwellwalt
@maxxwellwalt Жыл бұрын
rocky linux comes with what firewall?
@KacperZielinski
@KacperZielinski 4 ай бұрын
​@@budliquor6972openSUSE MicroOS and deriatives like SLE Micro come with SELinux instead of AppArmor
@radumamy2000
@radumamy2000 Жыл бұрын
Hi Chris. Thanks for the video, excellent work. Perhaps Safing Portmaster is a better firewall option for desktop users as it's got an excellent gui and can easily block individual apps.
@xXhotshot55Xx
@xXhotshot55Xx Жыл бұрын
RPM based distros use firewalld out of the box not ufw
@code8986
@code8986 Жыл бұрын
Hi Chris, thank you for these great tips. Can you do a video (or two videos, one on each) about how to configure and use SELinux and AppArmor?
@itzamedave6242
@itzamedave6242 Жыл бұрын
Great info as usual much appreciated 🙏
@milkibearmilkibear
@milkibearmilkibear Жыл бұрын
Very helpful video, thank you once again for the great content!!! :)
@jason-budney7624
@jason-budney7624 Жыл бұрын
Thanks Chris for the info, definitely learned a few things.
@xx_theartfuldodger_xx1105
@xx_theartfuldodger_xx1105 Жыл бұрын
Good stuff as always Chris!
@NoEgg4u
@NoEgg4u Жыл бұрын
Are there any distributions that come configured, by default, with the setting that our host is recommending (or something similar)? For example, the Qubes distribution is highly, highly focused on privacy and security. I have never used it (seems you need qualified hardware to take full advantage of its security features). I am not savvy enough to configure all of the settings in Linux. Down the road, when I am able to obtain a computer that I can dedicate for using Linux, I would like to find a distribution that has its security settings already in place, because I will not remember what to do. I understand that no two people will agree on every security setting. But the big ones, such as "ufw" that was demonstrated in this video... are there distributions that have that already set? There are countless distributions. Too many for me to figure out which ones put security first. I thought that Qubes was the answer (maybe it is?). But they have a web page dedicated to scoring hardware, and not too many computers check all of the security boxes.
@carlosboquin1027
@carlosboquin1027 Жыл бұрын
Chris, thanks for this video. the funny thing is, after applying the UFW rules and for some odd reason, Brave was longer able to access certain websites! I thought it was something else but Firefox had no problems. have to keep an eye on that Brave browser!
@ringo8410
@ringo8410 4 ай бұрын
Thanks for the info! I may have watched this video before, applied the recommended UFW settings, and quickly forgot all about it (my system said that UFW was active), but just to be sure I set the settings you lay out anyway. It's very easy to get caught in the mindset, "I use Linux so I'm safe". You still have to take basic precautions, even if Linux might be safer in some ways than Windows.
@davet4051
@davet4051 Жыл бұрын
Thanks for the information, I'm always learning from your videos. I wonder if you might be able to comment on the proper configuration when running virtual machines on a Linux desktop using QEMU / KVM. Is it sufficient to run a firewall on only the host machine? Are there any special considerations when setting up QEMU? Perhaps the subject for another video.... Thanks again!
@thatoneguy385
@thatoneguy385 5 ай бұрын
I think this depends on how the networking for the VM is set up. If all networking is done layered on top of your host machine, the firewall should also apply for the VM. If the VM has it's own networking independent from the host (e. g. the host gives the VM full access to an Ethernet Controller via USB / PCIe Passthrough) the VM needs it's own firewall.
@user-lx4lr1vs7m
@user-lx4lr1vs7m 9 ай бұрын
Hey just wanted to say thank you for this video, I just switched from Ubuntu after moving from Window's 6 month's ago to Fedora and didn't realize UFW wasn't prepackaged. I'm still relatively new to Linux but, it is so much better than window's in my opinion and I love learning but security and open source was my main reason for switching. Anyway i'm rambling, but very thankful for the info, now i have UFW on my Fedora 38.!
@espi742
@espi742 9 ай бұрын
Fedora comes with firewalld though, you can use it through firewall-cmd. The default configuration does leave everything open though
@muddyexport5639
@muddyexport5639 Жыл бұрын
Thanks again. Maybe a future vid could delv more deeply into other issues that are the next big 3.
@swissbuechi
@swissbuechi Жыл бұрын
Why do you open up incoming ports on your client?
@budliquor6972
@budliquor6972 Жыл бұрын
ufw on fedora? Why? Also allow ports 80 and 443 on a workstation? Why? Also you got 3 errors while editing your ufw configuration.
@ShrirajHegde
@ShrirajHegde 2 ай бұрын
Fedora comes with firewalld. I think he totally missed the point that ufw isn't the only firewall.
@ShrirajHegde
@ShrirajHegde 2 ай бұрын
Also seems like he's confused between incoming and outgoing ports because he opened ports 80 and 443
@tablettablete186
@tablettablete186 Жыл бұрын
If anyone wants to take a look at other utilities/features on Linux, here it is: - SECCOMP - no_new_privs bit - secure bits - Linux capabilities - Namespaces and pivot_root (not a security feature, but this is how container isolation works)
@peterwassmuth4014
@peterwassmuth4014 Жыл бұрын
Awesome thanks for sharing!
@nathanielescudero5379
@nathanielescudero5379 Жыл бұрын
Great advice. Thanks Chris
@rebo1841
@rebo1841 Жыл бұрын
Thanks for good lessons today Chris
@earthmancometh7416
@earthmancometh7416 Жыл бұрын
Thank you, Chris. Can you do a video on how to increase security on Windows? For 8.1 as well as the newer, barf, versions? I would greatly appreciate it.
@earthmancometh7416
@earthmancometh7416 Жыл бұрын
@SomeoneOnlyWeKnow You're right. I know. I am one of the odd ones. That was the ironic part of my comment...but with a touch screen 8.1 is absolutely awesome, imho. Peace to you and opinions are like pie-holes, everybody's got one. ;)
@ronjeremy9302
@ronjeremy9302 Жыл бұрын
Setting up arch as we speak. Cool vid
@michaelkouzmin281
@michaelkouzmin281 Жыл бұрын
Chris, what do you think abt feasibility of free antivirus soft (Clam for example) on workstations?
@13thravenpurple94
@13thravenpurple94 Жыл бұрын
Great work 🥳🥳🥳 Thank you 💜💜💜
@sklabs1939
@sklabs1939 8 ай бұрын
Good video, but not sure why you would need ports 80 and 443 open if you are not running a web server.
@gwgux
@gwgux Жыл бұрын
Good info, you definitely hit the big three. Also, it may not be a bad idea to do some follow up videos on each of those with some more in-depth explanations and examples of what they do. Based on on I'm seeing in the comments it looks like it may benefit a lot of folks.
@ian_n_w_
@ian_n_w_ Жыл бұрын
What is your take on RPM Fusion Chris?
@spikeprotien9023
@spikeprotien9023 Жыл бұрын
Thanks for the info- as desktop users numbers go up we will be a larger target.
@ToollJizz
@ToollJizz Жыл бұрын
Does UFW uses nftable backend since iptables was remove from Debian ?
@JeffWF73
@JeffWF73 Жыл бұрын
Hey Chris, I was wondering if you could give some information on Pacstall. I just heard about it through another YT channel. My concerns are after hearing that the packages being installed through it can be packaged by anyone. If that's true how secure would that be. Kind of sounds very insecure? Thank you
@marek7673
@marek7673 Жыл бұрын
Chris, can you please update your The Ultimate Linux Gaming Guide on your site for fedora 36 because I want to install nvidia drivers and optimus but every tutorial I found is for x-org and/or for older version of fedora and I'm on fedora 36 kde spin and it uses wayland.
@NADEEMKHAN-sj5hn
@NADEEMKHAN-sj5hn 3 ай бұрын
Is portmaster is the better firewall than firewalld and ufw/gufw
@zehph
@zehph Жыл бұрын
Fedora uses firewalld by default iirc, on the fail2ban recommendation I'd urge you to look into crowdsec, amazing project!
@hb9145
@hb9145 8 ай бұрын
1. A firewall is useless if it doesn't have any listening services behind it. 2. Allowing ports 22, 80 and 443 is pointless unless you are running a server. 3. Fail2ban makes no sense on a desktop computer at all. Why would anyone run a SSH-server on their desktop? 4. To sum it up: No listening services = no firewall necessary. Opening up the firewall for all listening services means that the firewall blocks nothing.
@vinodvpukale8781
@vinodvpukale8781 Жыл бұрын
Superb and thanks a lot
@user-bc5vv1ug2g
@user-bc5vv1ug2g Жыл бұрын
Questions: What about setting up firewall rule on pfSense, which I use to manage my local network and WAN. Put it another way, what's the key difference/benefit between setting up firewall on network level and local machine?
@kuhluhOG
@kuhluhOG Жыл бұрын
IT security should always be defence in depth
@tedmiles2461
@tedmiles2461 Жыл бұрын
Fedora has always been enforce mode by default when I've used it
@claudiafischering901
@claudiafischering901 Жыл бұрын
Thanks for this video. Please make a video about AppArmor, how do use it in the correct way. This application is on my linux system and I does not notice it, before I watch your video. So, I hope there is time for do that. otherwise give me a hint - where I can looking at. The right way. Thanks for helping - to understanding linux better.
@rubicksor
@rubicksor 2 ай бұрын
thanks for all bro one question no relation whit this video but i now how can install steam in me distro i'm used tinycore and no find how pls help me
@emblemi6345
@emblemi6345 Жыл бұрын
NFT Table :)) Btw You're using fedora, firewalld comes by default, not ufw.
@Philipp..
@Philipp.. Жыл бұрын
Can't I just configure Firewalld the same way as UFW?
@andrewnorris5415
@andrewnorris5415 Жыл бұрын
Great, thanks!
@dreamtoneamps
@dreamtoneamps Жыл бұрын
Question, by the way love your channel! But how come when I check my public ip then run nmap it said 23/tcp open telnet and 53/tcp open domain; So i closed these using ufw deny and i run nmap again on my public ip and there still open, but UFW says Deny IN. I am not sure what is going on here, I just installed Mint and trying to lock it down.
@RickMyBalls
@RickMyBalls Жыл бұрын
First cc cleaner now asterix?
@cameronmoore136
@cameronmoore136 Жыл бұрын
2:35 Why did it say "error problem running" and why did he not react to that? Was that expected? Is it not an issue?
@bravofourone
@bravofourone 2 ай бұрын
hmm isn't fedora shipped with firewalld by default? would explain why ufw was not present...
@jasonho4299
@jasonho4299 Жыл бұрын
good video,today i learn new things about linux
@lesliesavage9229
@lesliesavage9229 Жыл бұрын
Encrypt the drive with sensitive data on it, because like Windows, a live disk can get access. This is how data is stolen off of laptops stolen. If these drives were encrypted, then there would be a lot less data breaches out there from stolen laptops.
@ryansmith1413
@ryansmith1413 Жыл бұрын
Could anyone help if I have fedora and didn't know about 'firewalld' and installed 'ufw' - how would I uninstall or remove ufw?
Жыл бұрын
I gonna remember your quote "security is a journey not a destination" 😋👍
@terrayi
@terrayi 9 ай бұрын
For desktop linux system you would not really allow web ports either unless you absolutely need it nor ssh (22) unless if you'd need to access your desktop remotely from different device/location. To have web ports and ssh port open in basic firewall rules is kinda ridiculous.
@charliegalliher
@charliegalliher Жыл бұрын
On a laptop why not go with defaults: deny anything coming into this system? It's what I do... I get it if you have apps and processes that require it, but I'd lock it down until I found that I needed a config change.... (?)
@skarlok1
@skarlok1 Жыл бұрын
Hey, Will UFW work on fedora with firewalld allready installed? Should i remove firewalld and use UFW? And what is a good setup for firewalld?
@JahidulIslam
@JahidulIslam Жыл бұрын
what's wrong with firewalld? Use that. Allow the ports and deny incoming. There is a gui for firewalld . Opening a port using the command line. Get a list of allowed ports in the current zone: $ firewall-cmd --list-all Add a port to the allowed ports to open it for incoming traffic: $ sudo firewall-cmd --add-port=port-number/port-type Make the new settings persistent: $ sudo firewall-cmd --runtime-to-permanent To remove port sudo firewall-cmd --remove-port=port-number/port-type Make the new settings persistent: $ sudo firewall-cmd --runtime-to-permanent The port types are either tcp, udp, sctp, or dccp. The type must match the type of network communication.
@kazii_the_avali
@kazii_the_avali Жыл бұрын
i acutally have port 20 denied as i dont use SSH or Telnet(deny that one and use ssh if you do) rember to customize your firewall to your min needs
@lukasbandarra
@lukasbandarra Жыл бұрын
but what about firewalld? it's pre intalled in my fedora.
@siebren005
@siebren005 Жыл бұрын
@2:54 you talk about limiting SSH but you mark the 22/TCP, so SSH should be limited and not 22/TCP?
@froggore52
@froggore52 Жыл бұрын
I have a question about ufw (or how firewalls work in general I guess). Just for fun I set ufw to deny everything including all outgoing. My internet connection effectively halted, which was expected. BUT my bittorrent client Deluge continued to download files. Can someone explain how this can be?
@bobwyler119
@bobwyler119 Жыл бұрын
In the video you are using fedora which comes with firewall-d by default so I don't see any need to install ufw
@michaelplaczek9385
@michaelplaczek9385 Жыл бұрын
Doesn't Fedora use firewalld?
@kevinhawthorne5257
@kevinhawthorne5257 Жыл бұрын
Great Video!
@muhammadsuleiman857
@muhammadsuleiman857 Жыл бұрын
can you also recommend Gmail's alternatives emails which are safer?
@techfan7808
@techfan7808 Жыл бұрын
Good the other point is to think in layers but glad you stated that. BTW did you see the github shenanigans?
@cameronmoore136
@cameronmoore136 Жыл бұрын
What github shenanigans?
@rautamiekka
@rautamiekka Жыл бұрын
1) F2b is painful to conf. 2) firewall very much so. 3) prioritizing repos, much worse the packages, is extremely painful to conf on top of keeping up with multiple repos (keeping up with repos ain't nearly as painful cuz they change rarely). 4) the pkg manager always uses the newest packages and will warn you when a dep conflict occurs (so I don't understand your point). 5) AppArmor/SEL is the worst pain to conf.
@starypiard
@starypiard Жыл бұрын
1. first time - maybe, so is almost anything on the server side 2. not really, again - maybe the first time you do it, just keep it simple, block everything except the services/ports you need, usually 22,80,443 is enough 3. that is very much true, that's a reason to limit 3rd party repos as much as possible 4. newest packages are not always desirable, there may be braking config changes between some versions of a program 5. true, fortunately most software from repo's comes with sane policies by default, custom/external apps ideally would come with configs for apparmor and/or selinux, but far too often they do not
@rautamiekka
@rautamiekka Жыл бұрын
@@starypiard 1) It won't be limited to 1st time, it takes a long time to figure out the settings perfectly since shit tends to not be documented. Nah, in my experience Server-side things are mostly pretty simple, but F2b ... 2) Admittedly I ain't sure if apps are allowed to start listening to ports when the firewall blocks that port (as in, the app can try to send a packet down the port, but the firewall just snags it in DROP mode), but if they don't you have to shut down the firewall, let the app start listening, find those port numbers, and allow them, since that info is nearly never mentioned; or go read the source code. 2.1) Worse yet when there's no 24h listening, so you need to keep the firewall disabled for a long time and somehow log the port ranges so you can allow them, since unlike in Window$ there's no way in the firewall to allow process-based firewalling, the lack of which just doesn't make sense to me. 2.2) With both of the above points in mind, it can become an endless cat-and-mouse game when you're starting new services, which is my point. 3) But when it ain't possible ... Just easier to do the updating manually (I do it every Friday 0600pm) and read what the pkg mng says. 4) Depends. Mostly not.
@jokercardmaster
@jokercardmaster Жыл бұрын
what about passwordless sudo?
@idcrafter-cgi
@idcrafter-cgi Жыл бұрын
fedora uses by default firewalld the command is firewall-cmd
@xellaz
@xellaz Жыл бұрын
Glad I don't have to worry as much on this with my firewalla router/firewall. 🤪 Pretty much all inbound traffic is blocked on my network and my devices won't respond back at all on outside pings/probes. It's best practice to not respond at all and make the attacker/hacker think the IP/port they're pinging doesn't exist.
@bertnijhof5413
@bertnijhof5413 Жыл бұрын
I use gufw and I block the host and all my VMs, except one, for all inbound traffic. All PCs and VMs are connected to an own router and also there all inbound traffic is blocked, password and user name are changed and admin access is only allowed from the MAC addresses from my laptop and desktop. The backup server and laptop have a few open ports, but they are connected to my own router and they are only powered on for 1 to 2 hours per week. The easiest way to get into a desktop is of course through email; social media or the browser, basically everything that could seduce you to click on an infected file.
@andreujuanc
@andreujuanc Жыл бұрын
Why are those ports allowed INTO the system if you are not a server? shoudnt those be outgoing only?
@jongeduard
@jongeduard Жыл бұрын
I have the same issue! Seems that things are a bit different on the version that I have on Arch Linux. Are you on Arch too? I believe the developers must made some changes to the default behaviour of the CLI for this firewall: many commands appear to be about the incoming trafic by default. Or the issue is my knowledge, but then I really don't understand it. Same thing with the "ufw default deny" on the Arch wiki. It's also only the incoming trafic that you manage. You really need to explicitly add the outgoing and incoming words behind it to make it work as expected.
@gekkou7374
@gekkou7374 Жыл бұрын
Muchas gracias
@joshsmith4998
@joshsmith4998 Жыл бұрын
I also like to lock down SSH by using the /etc/sshd_config such that root can't login through ssh, only certain users can login via ssh, and disable password authentication in favor of public key authentication. Then if I want to get real spicy I'll use my distros firewall to restrict incoming ssh requests by admin computer IP.
@samanthaqiu3416
@samanthaqiu3416 Жыл бұрын
funny how ufw won't start by default but rpcbind open tcp 111 the very second after being installed, WTH
@padvitek
@padvitek Жыл бұрын
Bro i want to beco dj but i'm smart enough to learn soft soft but have financial problem.
@haplozetetic9519
@haplozetetic9519 Жыл бұрын
As I understand, UFW is not a firewall, but an interface. The actual firewall is part of the kernel. Am I missing something?
@fookingsog
@fookingsog Жыл бұрын
And aren't most ports closed even before you enable them??? In particular I am thinking about the incoming ports for Samba/SMB?!🤔
@gamtax
@gamtax Жыл бұрын
Yeah. ufw is just a front end, and Fedora does not use ufw but uses firewalld instead.
@ChrisTitusTech
@ChrisTitusTech Жыл бұрын
Pretty sure that is wrong. I believe it was made just to be easy way to configure iptables and then was adapted for nftables when iptables became deprecated.
@haplozetetic9519
@haplozetetic9519 Жыл бұрын
@@fookingsog I've read that that is the case, but I've never looked into in any depth.
@OctaviusPelagius
@OctaviusPelagius Жыл бұрын
In Fedora is Firewalld...
@Simpfan45
@Simpfan45 Жыл бұрын
UFW is a common package..... for me to replace with iptables.
@helpwork1
@helpwork1 Жыл бұрын
when you put these....you must use system.d using systemctl cmd as daemon
@potatogod3000
@potatogod3000 Жыл бұрын
1:30 Doesnt Fedora have FirewallD enabled and active by default??
@TimeoutMegagameplays
@TimeoutMegagameplays Жыл бұрын
Yes, the only mainstream distribution I can imagine you could mess up something like this would be Arch Linux.
@potatogod3000
@potatogod3000 Жыл бұрын
@@TimeoutMegagameplays When Fedora already does have firewall enabled by default, he should have used that or should have removed firewalld first instead of keeping both firewalld and ufw running side-by-side...
@TimeoutMegagameplays
@TimeoutMegagameplays Жыл бұрын
@@potatogod3000 Yes I agree completely. Firewalld is one of the main reasons to use fedora (basically the only mainstream distro not using ufw/iptables)
@user-rb4sz2xl9w
@user-rb4sz2xl9w Жыл бұрын
Most users don't use a public ip address. So it is quite safe from the gecko. Furthermore most routers have a firewall. In addition if you activate a firewall on your computer you are in a good territory.
@knutblaise9437
@knutblaise9437 5 күн бұрын
4:50 Linux repositories. Excellent point on multiple repository conflicts (which repository updates my system to which program version). Beyond this I feel a giant gaping hole in Linux security is the lack of corporate oversight for updates to the repository. Assume you are a hacker that wants to infect a system with malware. Would it make more sense to devote time to persuading users to install your malware or push the malware to a Linux repository? Beyond repositories consider there are more than 600 Linux distributions. Who is inspecting all of the distributions, all of the respins, all of the distribution/respin releases, and every update to all of the repositories which Linux distribution owners might create? So why the concern over a corporately maintained repository and for that matter distros? A corporation has the finances to assign technical resources to review submissions to their repository, pay for external audits, and secure the repository from infiltration. This corporate repository would immediately come under the scrutiny of security and privacy advocates. Currently there are over 600 distros out there. How much security/privacy advocate attention are each of these distributions, much less their repositories, receiving? Who would want a corporately distributed Linux offering? Someone like me. I purchased a notebook from a Microsoft Store location in December 2015 and 6 years later MS won’t allow me to upgrade to Windows 11 as my processor is not an eighth-generation or higher processor. Running Windows 10, my Microsoft Store notebook will simultaneously run VirtualBox Windows 11 and Windows 10 VMs. In 17 months, MS will provide no option for this hardware purchased at one of their store. For me, a Linux variant would be more than sufficient but where do you get a Linux variant with corporate oversight that compares favorably on a cost basis to Microsoft. Consider MS Windows 10-year life cycle with a free upgrade to Windows 11. BestBuy sells Windows 11 for $130. Considering a Windows 10 purchase will get you about 20 years of support, remember the Windows 11 free upgrade, you’re paying about $130/20 years = $6.5 per year for software, updates, and limited support. I would literally pay a corporation providing secured access to their distros/repositories $10/year vs bending the knee to MS and saving a few bucks per year.
@padvitek
@padvitek Жыл бұрын
anyone know how to fix it?
@fubaralakbar6800
@fubaralakbar6800 Жыл бұрын
What does "Warning: / is world writable" mean?
@donaldmickunas8552
@donaldmickunas8552 Жыл бұрын
It probably means that the file permissions in your root directory allow anyone to change those files. Only root should be able to do that.
@walter_lesaulnier
@walter_lesaulnier 21 күн бұрын
The GUI for firewalld in Fedora is a nightmare to try to explain to new Linux users. I've gotten lots of people to switch from Windows and several to Fedora specifically and the firewalld GUI presents them with something designed for high level IT networking professionals. I know Fedora is upstream to Red Hat so this makes sense. But to a Linux newbie running Fedora on a home desktop, it is terrible. I actually laugh out loud when I see the firewalld GUI referred to as simple or easy.
@devilzavacado8430
@devilzavacado8430 Жыл бұрын
How much of an effect would this have for gaming, if any?
@ChrisTitusTech
@ChrisTitusTech Жыл бұрын
Quite a bit, gaming uses lots of UDP ports for chat and matchmaking.
@mk72v2oq
@mk72v2oq Жыл бұрын
Literally zero. (If this is not you who hosting the game server.)
@YannMetalhead
@YannMetalhead Жыл бұрын
Good video.
3 Years using Linux as My Desktop
13:19
Chris Titus Tech
Рет қаралды 147 М.
Should You Run Anti-Virus On Linux?
9:26
DistroTube
Рет қаралды 81 М.
Buy Feastables, Win Unlimited Money
00:51
MrBeast 2
Рет қаралды 90 МЛН
Installing Linux The "Right" Way
18:43
Chris Titus Tech
Рет қаралды 601 М.
How to protect Linux from Hackers // My server security strategy!
30:39
Christian Lempa
Рет қаралды 208 М.
Your Anti-Virus LIES to YOU
10:24
Chris Titus Tech
Рет қаралды 41 М.
Choosing the Right Linux Distro
14:08
Chris Titus Tech
Рет қаралды 467 М.
APPS & TOOLS to improve LINUX PRIVACY & SECURITY
16:52
The Linux Experiment
Рет қаралды 91 М.
The Anti-Virus Tier List
9:38
Chris Titus Tech
Рет қаралды 744 М.
Windows Inside of Linux
21:58
Chris Titus Tech
Рет қаралды 196 М.
Linux for Beginners
26:32
Chris Titus Tech
Рет қаралды 537 М.
18 Commands That Will Change The Way You Use Linux Forever
29:50
Akamai Developer
Рет қаралды 1,2 МЛН
Samsung or iPhone
0:19
rishton vines😇
Рет қаралды 6 МЛН
Вы поможете украсть ваш iPhone
0:56
Romancev768
Рет қаралды 578 М.
How much charging is in your phone right now? 📱➡️ 🔋VS 🪫
0:11