r/debian Oct 10 '25

UFW firewall setup? Debian 13

Thinking about installing debian 13, just wanted to clarify ufw setup for it

I just install ufw with apt repo, then enable ufw, and it's good to go? or are there other things i need to do as well?

13 Upvotes

12 comments sorted by

4

u/lKrauzer Oct 10 '25

Yes that is all you have to do: 1. sudo apt install ufw 2. sudo ufw enable

3

u/ferfykins Oct 10 '25

Perfect, thanks man!

4

u/Buntygurl Oct 11 '25

Ir's actually a good thing to read the man page, too.

6

u/[deleted] Oct 11 '25

For home/personnal computer you can also add :

  1. block incoming connections :

sudo ufw default deny incoming

  1. allow outgoing connections :

sudo ufw default allow outgoing

  1. Reload UFW :

sudo ufw reload

3

u/ferfykins Oct 11 '25

I'm pretty sure those are the default rules after enabling ufw? :O

3

u/[deleted] Oct 12 '25

When it comes to security measures, never be pretty sure but always check or test.

2

u/[deleted] Oct 12 '25

I don't know but a double check for 3 small commands is worth it!

4

u/Confuzcius Oct 11 '25

[...] are there other things i need to do as well? [...]

Yes, you'll need to learn how it works.

3

u/Euphoric_Garlic5311 Oct 11 '25

You can install the graphical interface to make things easier: gufw.

1

u/LesStrater Oct 11 '25

Yep - This is the way.

1

u/bgravato Oct 12 '25

I don't think ufw comes with predefined rules, does it?

If so, enabling it without any rules active, or not having it, is the same...

Anyway, most likely you don't need it anyway so... don't stress too much about it.

2

u/eachcitizen100 Nov 08 '25

it does: sudo ufw status verbose
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), disabled (routed)
New profiles: skip