Subversion Repositories ALCASAR

Rev

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

Rev 2844 Rev 2899
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-iptables.sh 2844 2020-07-04 15:21:55Z rexy $
2
# $Id: alcasar-iptables.sh 2899 2020-12-14 23:21:01Z rexy $
3
# Script de mise en place des regles du parefeu d'Alcasar (mode normal)
3
# Script de mise en place des regles du parefeu d'Alcasar (mode normal)
4
# This script writes the netfilter rules for ALCASAR
4
# This script writes the netfilter rules for ALCASAR
5
# Rexy - 3abtux - CPN
5
# Rexy - 3abtux - CPN
6
#
6
#
7
# Reminders
7
# Reminders
Line 492... Line 492...
492
#############################
492
#############################
493
#          FAIL2BAN         #
493
#          FAIL2BAN         #
494
#############################
494
#############################
495
# Reload Fail2Ban
495
# Reload Fail2Ban
496
if systemctl -q is-active fail2ban; then
496
if systemctl -q is-active fail2ban; then
497
	/usr/bin/fail2ban-client ping &>/dev/null && /usr/bin/fail2ban-client -q reload
497
	/usr/bin/fail2ban-client ping &>/dev/null && /usr/bin/fail2ban-client -q reload &>/dev/null
498
fi
498
fi