Subversion Repositories ALCASAR

Rev

Rev 1192 | Rev 1205 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1192 Rev 1201
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1192 2013-08-30 15:20:24Z crox53 $ 
2
#  $Id: alcasar.sh 1201 2013-09-02 07:48:07Z crox53 $ 
3
 
3
 
4
# alcasar.sh
4
# alcasar.sh
5
 
5
 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
7
# Ce programme est un logiciel libre ; This software is free and open source
7
# Ce programme est un logiciel libre ; This software is free and open source
Line 1461... Line 1461...
1461
##- Modification de la configuration de fail2ban		##
1461
##- Modification de la configuration de fail2ban		##
1462
##- Sécurisation DDOS, SSH-Brute-Force, Intercept.php ...	##
1462
##- Sécurisation DDOS, SSH-Brute-Force, Intercept.php ...	##
1463
##################################################################
1463
##################################################################
1464
fail2ban()
1464
fail2ban()
1465
{
1465
{
1466
	echo "Installation de Fail2Ban"
-
 
1467
	$DIR_CONF/fail2ban.sh
1466
	$DIR_CONF/fail2ban.sh
1468
#Autorise la lecture seule 2 des 3 fichiers de log concernés, havp est traité dans le script d'init de havp
1467
#Autorise la lecture seule 2 des 3 fichiers de log concernés, havp est traité dans le script d'init de havp
1469
	[ -e /var/log/fail2ban.log ] || touch /var/log/fail2ban.log
1468
	[ -e /var/log/fail2ban.log ] || touch /var/log/fail2ban.log
1470
	[ -e /var/Save/logs/security/watchdog.log ] || touch /var/Save/logs/security/watchdog.log
1469
	[ -e /var/Save/logs/security/watchdog.log ] || touch /var/Save/logs/security/watchdog.log
1471
	chmod 644 /var/log/fail2ban.log
1470
	chmod 644 /var/log/fail2ban.log