what's better to manage ports? ufw or firewalld?
what's better to manage ports? ufw or firewalld?
OS is xubuntu 24.04
Ubuntu defaults to ufw. That, by itself, justifies the use of ufw in your case.
I use UFW personally but firewalld professionally. UFW ships with Debian based and firewalld with RHEL.
If suppose I might like UFW’s syntax a bit more.
The documentation is there for everyone to see. You can easily see what it takes to accomplish your task with both. Honestly though, why not just try it for yourself and come to your own conclusion.
Firewalld had, at least last time I checked, way more capabilities than UFW. Both are fine at being basic firewalls, but I don’t think you can build a router using just UFW.
Firewalld allows some pretty advanced rules. I use it to redirect a bunch of web requests going to a certain address over a local ssh tunnel.
internal zone instead
How often are you going to be managing ports?
Just use any tool you like, all they do is fiddle with the Kernel’s filter table.
I like firewalld. Its also used on many enterprise distros (RHEL, SLES).
But if you just have to open one port for something, just use what’s installed on your distro.