Fail2ban on VM : stange Fatal message

givre

New Member
Jul 23, 2009
5
0
1
Hi,
I'm using ProxMox on Debian system with some virtual machine with debian also.

I don't understand something.
On my VM, when i do
Code:
iptables -L
without fail2ban installed
the result is normal :
Code:
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Now the same, but with Fail2ban installed (apt-get install fail2ban)

Chain INPUT (policy ACCEPT)
target prot opt source destination
FATAL: Could not load /lib/modules/2.6.24-7-pve/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/2.6.24-7-pve/modules.dep: No such file or directory
fail2ban-ssh tcp -- anywhere anywhere multiport dports ssh

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain fail2ban-ssh (1 references)
target prot opt source destination
RETURN all -- anywhere anywhere

It's true, these directory do not exist /lib/modules/2.6.24-7-pve/modules.dep
For all my VM, /lib/modules/ is empty ..

Visibly for iptbales this is not a problem, when i make a rules it's ok but i dont understand who to resolve this.

Thanks for you answer.
Benoit.
 
You cant load modules inside a container.

If you need that, use a KVM VM.
Yes but for user virtual machines with linux is better to use openvz so, what we can do to prevent brute forcing attack?
 
Thanks for your answers, but i dont understand what i have to do for make fail2ban working good...

I haved read that load module into Vm was not recommended.

Nobody used fail2ban to prevent brute force attack ?

Thanks ;)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!