Hallo alle zusammen,
ich habe das Prob das Fail2ban nicht bannen tut.Laut den logfiles wird aber gebannt.
Hier mal den log von Fail2ban nach eine restart.
Ein iptables -L brachte dieses hervor.
Die config zu Failed2ban beinhaltet dieses,
Die jail.conf sieht so aus,
Mein Problem ist nun das sich keine Fehler zeigen,zumindest nicht für mich.
Die Sofu hat zwar einiges ausgeworfen,aber nichts was mich weiter bringt.
Vllt habt Ihr ja noch eine paar Tips für mich um das zu lösen.
Os ist Debian 5.0
ich habe das Prob das Fail2ban nicht bannen tut.Laut den logfiles wird aber gebannt.
Hier mal den log von Fail2ban nach eine restart.
Code:
2010-09-25 19:40:42,420 fail2ban.jail : INFO Jail 'ssh' stopped
2010-09-25 19:40:42,649 fail2ban.server : INFO Changed logging target to /var/log/fail2ban.log for Fail2ban v0.8.3
2010-09-25 19:40:42,650 fail2ban.jail : INFO Creating new jail 'ssh'
2010-09-25 19:40:42,650 fail2ban.jail : INFO Jail 'ssh' uses poller
2010-09-25 19:40:42,659 fail2ban.filter : INFO Added logfile = /var/log/auth.log
2010-09-25 19:40:42,659 fail2ban.filter : INFO Set maxRetry = 6
2010-09-25 19:40:42,660 fail2ban.filter : INFO Set findtime = 600
2010-09-25 19:40:42,660 fail2ban.actions: INFO Set banTime = 600
2010-09-25 19:40:42,728 fail2ban.jail : INFO Jail 'ssh' started
2010-09-25 19:42:15,740 fail2ban.actions: WARNING [ssh] Ban 188.193.58.157
2010-09-25 19:42:29,752 fail2ban.actions: WARNING [ssh] 188.193.58.157 already banned
Ein iptables -L brachte dieses hervor.
Code:
target prot opt source destination
fail2ban-ssh tcp -- anywhere anywhere multiport dports ssh
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain fail2ban-ssh (1 references)
target prot opt source destination
RETURN all -- anywhere anywhere
Code:
[Definition]
loglevel = 3
logtarget = /var/log/fail2ban.log
socket = /var/run/fail2ban/fail2ban.sock
(Das unwichtige Zeugs habe ich entfernt)
Die jail.conf sieht so aus,
Code:
[DEFAULT]
ignoreip = 127.0.0.1
bantime = 600
maxretry = 3
backend = polling
destemail = userxyz@localhost
banaction = iptables-multiport
mta = sendmail
protocol = tcp
action_ = %(banaction)s[name=%(__name__)s, port="%(port)s", protocol="%(protocol)s]
action_mw = %(banaction)s[name=%(__name__)s, port="%(port)s", protocol="%(protocol)s]
%(mta)s-whois[name=%(__name__)s, dest="%(destemail)s", protocol="%(protocol)s]
action_mwl = %(banaction)s[name=%(__name__)s, port="%(port)s", protocol="%(protocol)s]
%(mta)s-whois-lines[name=%(__name__)s, dest="%(destemail)s", logpath=%(logpath)s]
action = %(action_)s
[ssh]
enabled = true
port = ssh
filter = sshd
logpath = /var/log/auth.log
maxretry = 6
[pam-generic]
enabled = false
filter = pam-generic
port = all
banaction = iptables-allports
port = anyport
logpath = /var/log/auth.log
maxretry = 6
[xinetd-fail]
enabled = false
filter = xinetd-fail
port = all
banaction = iptables-multiport-log
logpath = /var/log/daemon.log
maxretry = 2
[ssh-ddos]
enabled = false
port = ssh
filter = sshd-ddos
logpath = /var/log/auth.log
maxretry = 6
[proftpd]
enabled = false
port = ftp,ftp-data,ftps,ftps-data
filter = proftpd
logpath = /var/log/proftpd/proftpd.log
maxretry = 6
(Das unwichtige Zeugs habe ich entfernt)
Mein Problem ist nun das sich keine Fehler zeigen,zumindest nicht für mich.
Die Sofu hat zwar einiges ausgeworfen,aber nichts was mich weiter bringt.
Vllt habt Ihr ja noch eine paar Tips für mich um das zu lösen.
Os ist Debian 5.0