Merge pull request 'UFW changes' (#3) from dev into prod

Reviewed-on: #3
This commit is contained in:
rajukottedi 2025-01-05 23:02:18 +05:30
commit 7b3ae70073

View File

@ -1,5 +1,5 @@
---
title: "A Beginner's Guide to UFW: Uncomplicated Firewall"
title: "Keep Your Linux System Secure: A Beginners Guide to UFW"
description: UFW is a tool that helps you decide which connections can or can't access your Linux system. It's simple enough for beginners but also has features for experts.
date: 2025-01-01T17:48:18.319Z
tags:
@ -15,7 +15,7 @@ image:
alt: A Beginner's Guide to UFW (Uncomplicated Firewall)
slug: ufw-guide
---
UFW (Uncomplicated Firewall) is a tool that helps you decide which connections can or can't access your Linux system. It's simple enough for beginners but also has features for experts. This post explains how to use it and why it's useful.
UFW (Uncomplicated Firewall) is a powerful yet user-friendly tool that allows you to control which connections can access your Linux system. Designed with simplicity in mind, its perfect for beginners while still offering advanced features for experienced users. In this post, well explore how UFW works, how to use it effectively, and why its an essential tool for securing your system.
When it comes to securing your Linux server or desktop, managing network access is one of the most critical tasks. Firewalls serve as the first line of defense, and while tools like iptables offer granular control, they can be intimidating for beginners. Thats where UFW (Uncomplicated Firewall) steps in.
@ -74,6 +74,26 @@ To delete a rule, prepend the rule with `delete`. For example:
```terminal
sudo ufw delete allow 22
```
Or Remove a rule by its number
List UFW Rules with Numbers
```terminal
sudo ufw status numbered
```
Example output
```terminal
Status: active
To Action From
[ 1] 22/tcp ALLOW Anywhere
[ 2] 80/tcp ALLOW Anywhere
[ 3] 22/tcp (v6) ALLOW Anywhere (v6)
[ 4] 80/tcp (v6) ALLOW Anywhere (v6)
```
Delete the Rule by Number
```terminal
sudo ufw delete 2
```
### Resetting UFW
To reset UFW to its default state, removing all rules:
```terminal