? about fail2ban on ubuntu/redhat
I loaded the fail2ban on an RH system and it works great. I setup some jails etc. In the RH version the jails look like this....
enabled = true
filter = sasl
backend = polling
action = iptables[name=sasl, port=smtp, protocol=tcp]
logpath = /var/log/mail.log
Notice the line that says action = and there is an option to send mail to root. I then fwd this mail with a .forward file to another account. Works fine.
In Ubuntu the entry looks like this....
enable = true
port = ssh
filter = sshd_ddos
logpath = /var/log/auth.log
maxretry = 6
Notice no mail option... How do I get fail2ban to mail to root on specific jails?
Do I just have to add an action line like the RH version or is there some other place the DEB version keeps this info?
I also want to know how to get mail off my laptop to an internet account /phone so i know when someone it trying to hack my system etc.
I know the address just not sure how to set up sendmail in Ubuntu...
Last edited by unix1adm; 11-12-2009 at 08:18 AM.