sylvaing26
Posts: 8
Joined: Tue Apr 11, 2017 1:59 pm

xtables GeoIP and kernel update

Tue Apr 11, 2017 3:18 pm

Hello,
sorry for my bad english...
Since I've upgraded my pi to the last kernel, I'm unable to reinstall Geoip
Or, for the previous version, it work as perfection.
This is my steps :
sudo apt-get install libncurses5-dev

sudo wget https://raw.githubusercontent.com/notro ... rpi-source -O /usr/bin/rpi-source && sudo chmod +x /usr/bin/rpi-source && /usr/bin/rpi-source -q --tag-update

sudo rpi-source

sudo apt-get install git autoconf automake libtool xutils-dev

git clone git://git.code.sf.net/p/xtables-addons/xtables-addons
cd xtables-addons
libtoolize --force
aclocal
./autogen.sh
autoheader
autoconf
./configure
sudo make install
sudo depmod
But with the kernel 4.9.20-v7+ they doesn't work

Xtables work but the xt_geoip module is not loaded

Do you have the same issue ?

Many thanks

User avatar
topguy
Posts: 5967
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: xtables GeoIP and kernel update

Wed Apr 12, 2017 1:42 pm

With a new kernel, you will have to rebuild and reinstall the kernel module I guess.. or have you already done that with no errors and the module is still not loaded ?

What does "modprobe xt_geoip" say ?
Last edited by topguy on Wed Apr 12, 2017 1:46 pm, edited 1 time in total.

sylvaing26
Posts: 8
Joined: Tue Apr 11, 2017 1:59 pm

Re: xtables GeoIP and kernel update

Wed Apr 12, 2017 1:45 pm

Yes of course
With the previous version it's ok.
But with 4.9.20-v7+, it doesn't work. I have no error during the compilation and the installation...

sylvaing26
Posts: 8
Joined: Tue Apr 11, 2017 1:59 pm

Re: xtables GeoIP and kernel update

Wed Apr 12, 2017 1:48 pm

topguy wrote: What does "modprobe xt_geoip" say ?
He say "FATAL: Module xt_geoip not found"

My module is located in /lib/modules/4.9.20-v7+/extra/xt_geoip.ko

User avatar
topguy
Posts: 5967
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: xtables GeoIP and kernel update

Wed Apr 12, 2017 1:50 pm

I saw a tip suggestion "depmod -a" ( https://bbs.archlinux.org/viewtopic.php?id=195565 )

sylvaing26
Posts: 8
Joined: Tue Apr 11, 2017 1:59 pm

Re: xtables GeoIP and kernel update

Wed Apr 12, 2017 2:22 pm

It doesn't work

I've just upgraded the kernel to 4.9.21
And it work now...
I think is a bug the linux kernel source installed with rpi-source beacouse in my /lib/modules/4.9.20-v7+/ folder, i haven't the simlinks to "build" and "source" linux folder.

Return to “Raspbian”