Keep Your System Up to Date
- Enable Automatic Updates: Most Linux distributions allow you to set up automatic updates. Check your system's settings for 'Software & Updates' or 'Automatic Updates'.
- Perform Manual Updates Regularly: Even with automatic updates configured, it's good practice to manually check for and install updates. Open a terminal and run
sudo apt update && sudo apt upgrade(for Debian/Ubuntu-based systems) orsudo dnf update(for Fedora/RHEL-based systems). - Reboot After Kernel Updates: If your updates include a new kernel version, it's essential to reboot your system to ensure the changes take effect. Your system will usually prompt you to do this.
Tip
Set Up a Firewall
- Enable UFW (Uncomplicated Firewall): UFW is a user-friendly firewall interface commonly found on Ubuntu and other Debian-based systems. Open a terminal and type
sudo ufw enable. - Check Firewall Status: To see if your firewall is active and what rules are in place, use the command
sudo ufw status verbose. - Allow Essential Services: By default, a firewall might block necessary services. For example, to allow web traffic (on port 80 and 443), you'd use
sudo ufw allow httpandsudo ufw allow https. - Block Unnecessary Ports: It's good practice to block all incoming connections by default and only allow those you specifically need. UFW does this when you enable it, but you can add specific deny rules if needed.
Important
Harden Your Browser with Sandboxing
- Understand Browser Built-in Sandboxing: Modern web browsers like Chrome, Firefox, and Edge have built-in sandboxing features that run web content in a restricted environment. Keep your browser updated to benefit from the latest protections.
- Use Browser Extensions for Extra Security: Consider extensions like uBlock Origin to block ads and trackers, and HTTPS Everywhere to enforce encrypted connections. Always research extensions before installing them.
- Consider a Dedicated Browser for Sensitive Tasks: For online banking or other critical activities, use a separate browser profile or even a different browser entirely to minimise risk.
- Run Browser in a Sandbox (Advanced): Tools like
firejailcan create a more robust sandbox for your browser, further isolating it from your system. Install withsudo apt install firejailand run your browser withfirejail firefoxorfirejail google-chrome.
Good to know
Practise Good Digital Hygiene
- Use Strong, Unique Passwords: Never reuse passwords across different accounts. Use a password manager to generate and store complex passwords.
- Enable Two-Factor Authentication (2FA): Wherever possible, activate 2FA for your online accounts. This adds an extra layer of security beyond just a password.
- Be Wary of Phishing Attempts: Always double-check the sender of emails and the legitimacy of links before clicking. If it looks suspicious, it probably is.
- Regularly Back Up Your Data: In the event of a security incident or system failure, regular backups ensure you don't lose your important files. Store backups offline or in a secure cloud service.
- Install Software Cautiously: Only download and install software from trusted sources. Be careful with repositories or direct downloads from unfamiliar websites.
Tip
Was this guide helpful?
Know someone who needs this? Send them the guide.
Written by
Jordan DicksonFounder, CyberSecurityGuides
Founder of CyberSecurityGuides, writing practical, jargon-free guides that help everyday people recover from and protect against online attacks.
Reviewed by CSG Security Engineers