what's better to manage ports? ufw or firewalld?
what's better to manage ports? ufw or firewalld?
I'm trying to open a port for transmission but before I get to know either of the 2 options I'd like to know what you recommend and why.
OS is xubuntu 24.04
if you use docker, docker ignores ufw rules
11 0 ReplyIt'll also ignore the default firewalld rules. IIRC it uses the
internal
zone instead4 0 ReplyGood to know, thx
1 0 Reply
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.
9 0 ReplyHow 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.
6 0 ReplyOS is xubuntu 24.04
Ubuntu defaults to ufw. That, by itself, justifies the use of ufw in your case.
5 0 ReplyIMO firewalld because it's going to be more portable knowledge.
5 0 ReplyIptables. Because in the end its iptables, so I learned it from the beginning „the right way“ and i am therefore not locked into one or another
5 0 ReplyThis is even better than my answer.
1 0 Reply
Network Filter Tables (NFT) is the current system. https://wiki.nftables.org/wiki-nftables/index.php/Main_Page
2 0 ReplyI found firewalld had so many options that it was a bit overwhelming at first, especially understanding how zones were actually meant to be used, and how each zone had a default handover for the unhandled traffic. But OpenSUSE has a GUI for it so I was able to make sense of it. UFW seemed pretty user friendly and atraight forward.
2 0 ReplyI like iptables + opensnitch
1 0 Reply