A
A
asha092017-08-11 18:30:35
Debian
asha09, 2017-08-11 18:30:35

How to fix problem with iptables geoip module?

I get this error when trying to install xtables-addons-common

------------------------------
Deleting module version: 2.6
completely from the DKMS tree.
------------------------------
Done.
Loading new xtables-addons-2.6 DKMS files...
It is likely that 3.14.32-xxxx-grs-ipv6-64 belongs to a chroot's host
Building for 3.14.32-xxxx-grs-ipv6-64 and 4.9.0-0.bpo.3-amd64
Module build for kernel 3.14.32-xxxx-grs-ipv6-64 was skipped since the
kernel headers for this kernel does not seem to be installed.
Building initial module for 4.9.0-0.bpo.3-amd64
Error!  Build of xt_ACCOUNT.ko failed for: 4.9.0-0.bpo.3-amd64 (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/xtables-addons/2.6/build/ for more information.
dpkg: error processing package xtables-addons-dkms (--configure):
 subprocess installed post-installation script returned error exit status 7
E: Sub-process /usr/bin/dpkg returned an error code (1)

I want to block all countries except Russia for port 80, I get this error
iptables -I INPUT -p tcp --dport 80 ! -i lo -m geoip ! --src-cc EN -j DROP
iptables: No chain/target/match by that name.
lsmod:
libkmod: ERROR ../libkmod/libkmod-module.c:1638 kmod_module_new_from_loaded: could not open /proc/modules: No such file or directory
Error: could not get list of modules: No such file or directory

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
krosh, 2017-08-11
@krosh

You need to install another core. On OVH hosting, distributions come with a custom kernel (why, I don’t know.
Change the kernel, for example, as they write How to switch to the standard Ubuntu kernel on OVH and everything will work out.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question