Subversion Repositories ALCASAR

Rev

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

Rev 2234 Rev 2243
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 2234 2017-05-18 21:20:10Z richard $ 
2
#  $Id: alcasar.sh 2243 2017-05-20 23:31:41Z tom.houdayer $ 
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 1784... Line 1784...
1784
##- Modification de la configuration de fail2ban		##
1784
##- Modification de la configuration de fail2ban		##
1785
##- Sécurisation DDOS, SSH-Brute-Force, Intercept.php ...	##
1785
##- Sécurisation DDOS, SSH-Brute-Force, Intercept.php ...	##
1786
##################################################################
1786
##################################################################
1787
fail2ban()
1787
fail2ban()
1788
{
1788
{
1789
	$DIR_CONF/fail2ban.sh
1789
	/usr/bin/sh $DIR_CONF/fail2ban.sh
1790
# Autorise la lecture seule 2 des 3 fichiers de log concernés, havp est traité dans le script d'init de havp
1790
# Autorise la lecture seule 2 des 3 fichiers de log concernés, havp est traité dans le script d'init de havp
1791
	[ -e /var/log/fail2ban.log ] || touch /var/log/fail2ban.log
1791
	[ -e /var/log/fail2ban.log ] || touch /var/log/fail2ban.log
1792
	[ -e /var/Save/security/watchdog.log ] || touch /var/Save/security/watchdog.log
1792
	[ -e /var/Save/security/watchdog.log ] || touch /var/Save/security/watchdog.log
1793
	chmod 644 /var/log/fail2ban.log
1793
	chmod 644 /var/log/fail2ban.log
1794
	chmod 644 /var/Save/security/watchdog.log
1794
	chmod 644 /var/Save/security/watchdog.log