1

I've got a RPi4 and I'm trying to configure ufw. The problem is that I get this error

ERROR: Couldn't determine iptables version

The versions of iptables and ufw are

iptables 1.8.2-4
libnftables0:armhf 0.9.0-2
libnftnl11:armhf 1.1.2-2
nftables 0.9.0-2
ufw 0.36-1

Linux version is Linux rP15 4.19.50-v7l+

Any ideas?

3

I found the solution. Buster comes with two iptables flavours

 > $ update-alternatives --list iptables
   /usr/sbin/iptables-legacy
   /usr/sbin/iptables-nft

By default it uses iptables-nft. When changes to iptables-legacy

sudo update-alternatives --set iptables /usr/sbin/iptables-legacy

it works with UFW without problems after reboot.

0

Buster uses nftables.

I haven’t tried this, but it is supposed to support iftables commands.

It is possible to revert, but you may be better to look for an updated tutorial

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.