Monday, February 26, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 366  / 3 Years ago, thu, september 2, 2021, 10:12:05

I am going to install Xubuntu 22.04 on one of my computers and i have a question about firewall.


As i understand Ubuntu use NFTables now.


I have noticed some information about Debian (which is base for Ubuntu) using NFTables now. And Debian wiki says



If you want to enable a default
firewall in Debian, follow these steps...
# aptitude install nftables
# systemctl enable nftables.service



So i wonder now, should i at first install and enable ntfstables and only after that to enable (g)ufw? It seems logical, but i also have read in ArchWiki that



Start and enable ufw.service to make it available at boot. Note that
this will not work if iptables.service is also enabled (and same for
its ipv6 counterpart).



I guess that this rule can also be applied to Ubuntu and NFTables..? And on Arch Reddit we can read:



UFW, being a frontend wrapper, will require the nftables package to be
installed and the service to be
enabled/started
. Simply, it will use IPTables or NFTables
depending on which is configured and in use. Edit: Only UFW service
need be enabled to avoid conflict



So, in short, i have the following questions:



  1. should i install NFTables?



  2. Should i enable it as a service (and configure)?



  3. Or just using GUFW is enough? Because it somehow automatically uses NFTables?




More From » networking

 Answers
0

After some research and discussion i have come to the following conclusion about nftables and (g)ufw. So, if you want to use (g)ufw:



should i install NFTables?



No, it is not needed. But the package itself probably won't lead to conflicts



Should i enable it as a service (and configure)?



No, it will lead to the conflict with g(ufw) serivce



Or just using GUFW is enough? Because it somehow automatically uses
NFTables?



Yes, and yes.


[#48] Friday, September 3, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
berlorful

Total Points: 346
Total Questions: 90
Total Answers: 99

Location: Monaco
Member since Tue, Nov 30, 2021
2 Years ago
berlorful questions
Sun, May 9, 21, 20:55, 3 Years ago
Mon, Jan 16, 23, 23:19, 1 Year ago
Mon, Aug 29, 22, 05:43, 2 Years ago
Sun, Sep 12, 21, 17:12, 3 Years ago
;