@asha09

Как исправить проблему с модулем geoip iptables?

При попытке установить 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)


Хочу заблокировать все страны, кроме России для 80 порта, мне выбивает данную ошибку
iptables -I INPUT -p tcp --dport 80 ! -i lo -m geoip ! --src-cc RU -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
  • Вопрос задан
  • 536 просмотров
Пригласить эксперта
Ответы на вопрос 1
@krosh
Надо другое ядро ставить. На хостинге OVH дистрибутивы поставляются с кастомным ядром (почему так, я не знаю.
Поменяйте ядро, например как пишут How to switch to the standard Ubuntu kernel on OVH и все получится.
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы