Day 12 of learning DevOps: Linux Firewall

📰 Medium · DevOps

Learn to configure a Linux firewall using UFW with a step-by-step guide

beginner Published 11 Jul 2026
Action Steps
  1. Check the firewall status using the UFW command
  2. Allow SSH connections to prevent lockout
  3. Enable the firewall and configure default policies
  4. Allow required services such as HTTP and HTTPS
  5. Block unwanted services to prevent unauthorized access
Who Needs to Know This

DevOps engineers and system administrators can benefit from this guide to secure their Linux systems

Key Insight

💡 UFW is a user-friendly interface for managing Linux firewalls

Share This
🔒 Secure your Linux system with UFW! 🔒

Key Takeaways

Learn to configure a Linux firewall using UFW with a step-by-step guide

Full Article

Title: Day 12 of learning DevOps: Linux Firewall

URL Source: https://medium.com/@xrsthasakil123/day-12-of-learning-devops-linux-firewall-299745f2ad75?source=rss------devops-5

Published Time: 2026-07-11T14:35:34Z

Markdown Content:
[Sitemap](https://medium.com/sitemap/sitemap.xml)

[Open in app](https://play.google.com/store/apps/details?id=com.medium.reader&referrer=utm_source%3DmobileNavBar&source=---top_nav_layout_nav-----------------------------------------)

Sign up

[Sign in](https://medium.com/m/signin?operation=login&redirect=https%3A%2F%2Fmedium.com%2F%40xrsthasakil123%2Fday-12-of-learning-devops-linux-firewall-299745f2ad75&source=post_page---top_nav_layout_nav-----------------------global_nav------------------)

[](https://medium.com/?source=---top_nav_layout_nav-----------------------------------------)

Get app

[Write](https://medium.com/m/signin?operation=register&redirect=https%3A%2F%2Fmedium.com%2Fnew-story&source=---top_nav_layout_nav-----------------------new_post_topnav------------------)

[Search](https://medium.com/search?source=---top_nav_layout_nav-----------------------------------------)

Sign up

[Sign in](https://medium.com/m/signin?operation=login&redirect=https%3A%2F%2Fmedium.com%2F%40xrsthasakil123%2Fday-12-of-learning-devops-linux-firewall-299745f2ad75&source=post_page---top_nav_layout_nav-----------------------global_nav------------------)

![Image 1: Unknown user](https://miro.medium.com/v2/resize:fill:32:32/1*dmbNkD5D-u45r44go_cf0g.png)

1. [What is a Firewall?](https://medium.com/?source=-----299745f2ad75---------------------------------------#4027 "What is a Firewall?")
2. [Why Should You Use a Firewall?](https://medium.com/?source=-----299745f2ad75---------------------------------------#ef2c "Why Should You Use a Firewall?")
3. [What is UFW?](https://medium.com/?source=-----299745f2ad75---------------------------------------#00b9 "What is UFW?")
4. [Step 1: Check the Firewall Status](https://medium.com/?source=-----299745f2ad75---------------------------------------#83c5 "Step 1: Check the Firewall Status")
5. [Step 2: Allow SSH First](https://medium.com/?source=-----299745f2ad75---------------------------------------#b4ef "Step 2: Allow SSH First")
6. [Step 3: Enable the Firewall](https://medium.com/?source=-----299745f2ad75---------------------------------------#6227 "Step 3: Enable the Firewall")
7. [Step 4: Configure Default Policies](https://medium.com/?source=-----299745f2ad75---------------------------------------#cd63 "Step 4: Configure Default Policies")
8. [Step 5: Allow Required Services](https://medium.com/?source=-----299745f2ad75---------------------------------------#b43e "Step 5: Allow Required Services")
9. [SSH](https://medium.com/?source=-----299745f2ad75---------------------------------------#c496 "SSH")
10. [HTTP](https://medium.com/?source=-----299745f2ad75---------------------------------------#cc2b "HTTP")
11. [HTTPS](https://medium.com/?source=-----299745f2ad75---------------------------------------#fd43 "HTTPS")
12. [Custom Application Port](https://medium.com/?source=-----299745f2ad75---------------------------------------#62d6 "Custom Application Port")
13. [Step 6: Check Your Firewall Rules](https://medium.com/?source=-----299745f2ad75---------------------------------------#20a3 "Step 6: Check Your Firewall Rules")
14. [Step 7: Block Unwanted Services](https://medium.com/?source=-----299745f2ad75---------------------------------------#ccfa "Step 7: Block Unwanted Services")
15. [Step 8: Remove Firewall Rules](https://medium.com/?source=-----299745f2ad75---------------------------------------#6185 "Step 8: Remove Firewall Rules")
16. [Step 9: Allow Connections from a Specific IP](https://medium.com/?source=-----299745f2ad75---------------------------------------#ae5a "Step 9: Allow Connections from a Specific IP")
17. [Step 10: Reset the Firewall](https://medium.com/?source=-----299745f2ad75--------------------------------------
Read full article → ← Back to Reads

Related Videos

AWS, Azure, GCP: The One Thing Every Business Gets Wrong
AWS, Azure, GCP: The One Thing Every Business Gets Wrong
AI Daily
Containers on Amazon ECS with Mama J
Containers on Amazon ECS with Mama J
AWS Developers
How to Open QTR Files (QuickTime Movie)
How to Open QTR Files (QuickTime Movie)
File Extension Geeks
Improving DevOps Security and Efficiency at Cathay with AWS ProServe | Amazon Web Services
Improving DevOps Security and Efficiency at Cathay with AWS ProServe | Amazon Web Services
Amazon Web Services
Kubernetes Observability 101: Metrics, Logs, Dashboards, and Traces
Kubernetes Observability 101: Metrics, Logs, Dashboards, and Traces
Kubesimplify
Do Azure and AWS Have Too Much Power? The EU’s Answer: Maybe So. #cloud #aws #azure
Do Azure and AWS Have Too Much Power? The EU’s Answer: Maybe So. #cloud #aws #azure
Digital Transformation with Eric Kimberling