0

I have an Rpi 5, with Ubuntu 24.04.2 LTS and the following installed.

$ dpkg --list | grep xtable
ii  libxtables12:arm64              1.8.10-3ubuntu2                         arm64        netfilter xtables library
ii  xtables-addons-common           3.25-2build1                            arm64        Additional targets and matches for iptables [tools, libs]
ii  xtables-addons-dkms  

These are the same packages as I have installed on a x64amd machine with the same OS.

After I download and build the geoip data (with xt_geoip_build) and try to add the required firewall rules with the module, iptables says it can't find it.

And I see this:

$ modprobe xt_geoip
modprobe: FATAL: Module xt_geoip not found in directory /lib/modules/6.8.0-1018-raspi

Does anyone know how I can get the packages for this to work as I have on the x64amd? I'd rather not compile from source if possible.

TommyPeanuts
  • 1,147

1 Answers1

0

This seems to have been due to the kernel headers package not being installed. So I ran:

sudo apt-get install linux-headers-$(uname -r)

After which I saw various modules being built. I then tried:

sudo depmod -a

followed by:

lsmod | grep xtables which showed the module had loaded.

I could then add the firewall rules.

TommyPeanuts
  • 1,147