donkeyKICK
Verified User
- Joined
- Jul 24, 2007
- Messages
- 389
I wanted to have the new feature of brute force detection trigger a block in the csf.deny file.
I went to a shell and found that csf -d worked exactly as I wanted. It put it in the file block_ip.sh and when I click the button under admin panel--> brute force monitor it behaved exactly as desired:
However, in the script brute_force_notice_ip.sh, the exact same code does not work. After looking at the thread here: http://www.directadmin.com/forum/showthread.php?41163-How-do-I-stop-a-brute-force-attack?s= I decided to try:
I don't understand why I can call the dameon in the first case, but not in the second.
I went to a shell and found that csf -d worked exactly as I wanted. It put it in the file block_ip.sh and when I click the button under admin panel--> brute force monitor it behaved exactly as desired:
Code:
#!/bin/sh
csf -d $ip Added by DA BruteForce monitor
exit $?;
However, in the script brute_force_notice_ip.sh, the exact same code does not work. After looking at the thread here: http://www.directadmin.com/forum/showthread.php?41163-How-do-I-stop-a-brute-force-attack?s= I decided to try:
Code:
#!/bin/sh
/etc/csf/csf.pl -d $value Added by DA BruteForce monitor automatic
exit 0;
I don't understand why I can call the dameon in the first case, but not in the second.
Last edited: