Comment 2 for bug 1597349

Revision history for this message
David Favor (davidfavor) wrote :

Maybe the correct way to do this is...

ln -sf /lib/modules/4.4.0-28-generic/updates/dkms/xt_TARPIT.ko /lib/modules/4.2.0-36-generic/kernel/lib/.

Except, now we're back to the original problem of module-assistant failing to build all xtables modules against latest kernels, so it appear the way to use xt_TARPIT.ko is to...

1) fix module-assistant build break

2) synlink .ko files built via module-assistant into /lib/modules/`uname -r`

3) arrange for appropriate /lib/modules/`uname -r` modules to load via /etc/modules

So first up, is the fix for original build break.

net10.bizcooker.com# uname -a
Linux net10.bizcooker.com 4.4.0-28-generic #47-Ubuntu SMP Fri Jun 24 10:09:13 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

net10.bizcooker.com# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04 LTS
Release: 16.04
Codename: xenial

dpkg -l | egrep 'module-assistant|xtables|kmod'
ii kmod 22-1ubuntu4 amd64 tools for managing Linux kernel modules
ii libkmod2:amd64 22-1ubuntu4 amd64 libkmod shared library
ii libxtables11:amd64 1.6.0-2ubuntu3 amd64 netfilter xtables library
ii module-assistant 0.11.8 all tool to make module package creation easier
ii xtables-addons-common 2.10-1build1 amd64 Extensions targets and matches for iptables [tools, libs]
ii xtables-addons-dkms 2.10-1build1 all Extensions targets and matches for iptables
ii xtables-addons-source 2.10-1build1 all Extensions targets and matches for iptables [modules sources]