UFW changes
This commit is contained in:
parent
e3e3346fd3
commit
cd3ffa479c
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: "A Beginner's Guide to UFW: Uncomplicated Firewall"
|
||||
title: "Keep Your Linux System Secure: A Beginner’s 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, it’s perfect for beginners while still offering advanced features for experienced users. In this post, we’ll explore how UFW works, how to use it effectively, and why it’s 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. That’s 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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user