On Sun, Sep 27, 2020 at 09:41:53AM +0100, Nick Howitt wrote: > > > On 27/09/2020 09:30, Chris Green wrote: > > > > On Sun, Sep 27, 2020 at 08:47:59AM +0100, Nick Howitt wrote: > > > On 26/09/2020 22:29, Chris Green wrote: > > > > > > 2020-09-26 16:24:54,531 fail2ban.utils [1563]: ERROR > > > 7f20226c35e0 -- > > > stderr: 'modprobe: FATAL: Module ip_tables not found in directory > > > /lib/modules/3 > > > .10.107-xenU-36-37a7b05-x86_64' > > > > > > This is you problem. Are you using iptables as your firewall? > > > Nick > > > > Well, I don't know, I did say I was a total fail2ban newbie. :-) > > > > I just did 'apt install fail2ban' and that's all, I did check that > > fail2ban was running but no more. > > > > So I guess you're saying that I need to install/configure something to > > do with ip_tables, yes? > > > > I have 'iptables' installed from the Ubuntu repositories. > > > > Ah, looking at /lib/modules I don't have the one referenced above:- > > > > chris@isbdGandi$ ls -l /lib/modules > > total 20 > > drwxr-xr-x 3 root root 4096 Jan 5 2017 > > 3.10.103-xenU-33-adcc8c8-x86_64 > > drwxr-xr-x 3 root root 4096 Jun 25 2017 > > 3.10.105-xenU-34-082da8f-x86_64 > > drwxr-xr-x 3 root root 4096 Sep 19 2014 3.10.42-xenU-12-e888729-x86_64 > > drwxr-xr-x 3 root root 4096 Oct 22 2015 3.10.62-xenU-25-0e6777a-x86_64 > > drwxr-xr-x 3 root root 4096 Oct 16 2016 3.10.99-xenU-26-7336ef7-x86_64 > > > > So how do I get the one that's needed? What is it a part of? > > > I don't know Ubuntu/Debian at all so can't really advise. It look like those > folders are related to your kernel. Probably your set up only keeps the last > 5 kernels installed, so your running kernel 'uname -r' is probably older > than any of these and is 3.10.107-xenU-36-37a7b05-x86_64. > > Try rebooting. This should bring the latest kernel into play and it should > then be able to find the module. > It's a virtual machine running at Gandi internet in Paris. The above /lib/modules directories are for *older* kernels. The xen kernels used for these virtual machines seem to be 'non-standard' in some way, they are not available from the normal repositories. I have therefore asked support at Gandi where I can get what's needed.
Meanwhile I have just put a symlink so that /lib/modules/3.10.107-xenU-36-37a7b05-x86_64 points to the latest /lib/modules that is installed, that seems to have made fail2ban happy though it's not a proper solution. -- Chris Green _______________________________________________ Fail2ban-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fail2ban-users
