Subversion Repositories ALCASAR

Rev

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

Rev 1184 Rev 1191
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1184 2013-08-27 09:16:38Z crox53 $ 
2
#  $Id: alcasar.sh 1191 2013-08-30 10:31:06Z 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 1462... Line 1462...
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"
1466
	echo "Installation de Fail2Ban"
1467
	$DIR_SCRIPTS/alcasar-fail2ban.sh
1467
	$DIR_CONF/fail2ban.sh
1468
#Autorise la lecture seule des 3 fichiers de log concernés
1468
#Autorise la lecture seule des 3 fichiers de log concernés
1469
	chmod 644 /var/log/fail2ban.log
1469
	chmod 644 /var/log/fail2ban.log
1470
	chmod 644 /var/log/havp/access.log
1470
	chmod 644 /var/log/havp/access.log
1471
} #Fin de fail2ban_install()
1471
} #Fin de fail2ban_install()
1472
 
1472