Skip to content

Commit

Permalink
chore(gen): update
Browse files Browse the repository at this point in the history
  • Loading branch information
SamyOubouaziz committed Dec 13, 2024
1 parent cf16f2b commit 6f8fa11
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions tutorials/installation-uncomplicated-firewall/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,24 @@ UFW, or **[Uncomplicated FireWall](https://en.wikipedia.org/wiki/Uncomplicated_F

- A Scaleway account logged into the [console](https://console.scaleway.com)
- [Owner](/identity-and-access-management/iam/concepts/#owner) status or [IAM permissions](/identity-and-access-management/iam/concepts/#permission) allowing you to perform actions in the intended Organization
- An [Instance](/compute/instances/how-to/create-an-instance/) running on Ubuntu Focal Fossa or later
- An [SSH key](/identity-and-access-management/organizations-and-projects/how-to/create-ssh-key/)
- `sudo` privileges or access to the root user

## Installing UFW

UFW is available as a pre-built package in the apt repositories of Ubuntu. It can be easily installed via apt:
UFW is available as a pre-built package in the apt repositories of Ubuntu. It can be easily installed via `apt`.

1. Connect to your Instance with SSH. In a terminal run:
```
ssh root@<your_instance_ip>
```
2. Update the system and upgrade the software already installed on the Instance.
```
apt update && apt upgrade -y
```

3. run the command below to install UFW:

```code
sudo apt-get install ufw
Expand Down Expand Up @@ -82,7 +94,7 @@ The services running on the machine used in this example need the following port
```

<Message type="note">
In this case `TCP` has not to be specified, as both, `TCP` and `UDP` are needed.
In this case `TCP` has not to be specified, as both `TCP` and `UDP` are needed.
</Message>
5. Activate the new rules.
```code
Expand Down Expand Up @@ -130,7 +142,8 @@ Over time, you may recognize that some of the rules you defined previously do no
```

The numbers at the beginning of each row are the number of the rule in UFW.

2. To delete a rule, find its number and type:
```code
sudo ufw delete NUMBER
sudo ufw delete <RULE_NUMBER>
```

0 comments on commit 6f8fa11

Please sign in to comment.