The linked Q/A is incomplete. In addition to userland tools, you need the kernel side equivalent: you'll have to install the package xtables-addons-dkms
. Note that xtables-addons-common
recommends xtables-addons-dkms
, so installing the former should have either installed the later, or mentioned the recommendation. Not doing it severely limits the usefulness of xtables-addons-common
.
Beware, it will pull a whole compilation suite needed by dkms
. Make sure you get the linux-headers-4.9.0-4-amd64
package because it's not the latest available and might not be pulled automatically.
If that's understandably not acceptable for production systems, it will have to be installed on a development system and this will have to be run manually. The exact command might depend on the target kernel's version:
dkms mkbmdeb xtables-addons/2.12 -k 4.9.0-4-amd64
The newly built package found with:
find /var/lib/dkms/ -name 'xtables-addons*deb'
can then be installed on the production server (along with the xtables-addons-common
package).
To state it again: dkms mkbmdeb ...
is needed only for a "two stages" installation. If xtables-addons-dkms
is installed directly on the server using the iptables rules, it doesn't have to be done: the installation took care of it already.