4 203
modifications
Ligne 39 : | Ligne 39 : | ||
iptables -A INPUT -p tcp -m multiport --dports ssh,telnet,ftp,ftp-data,ftps,ftps-data,http,https,pop3,pop3s,imap,imaps,submission -j morales | iptables -A INPUT -p tcp -m multiport --dports ssh,telnet,ftp,ftp-data,ftps,ftps-data,http,https,pop3,pop3s,imap,imaps,submission -j morales | ||
if [ -f "$banned_file" ]; then | if [ -f "$banned_file" ]; then | ||
for ligne in `cat $banned_file`; do | for ligne in `cat "$banned_file"`; do | ||
iptables -A morales -s $ligne -j DROP | iptables -A morales -s $ligne -j DROP | ||
done | done | ||
else | else | ||
touch $ | touch "$banned_file" | ||
fi | fi | ||
echo "Started" | echo "Started" |