1

サーバーFAIL2BANをインストールしましたが、何が問題なのか理解できません。

fail2ban-regex は正規表現を検出しません。非常に単純です:

fail2ban-regex "192.168.1.1" "<HOST>$"

AND で答える

Running tests
=============

Use regex line : <HOST>$
Use single line: 192.168.1.1


Results
=======

Failregex
|- Regular expressions:
|  [1] <HOST>$
|
`- Number of matches:
   [1] 0 match(es)

Ignoreregex
|- Regular expressions:
|
`- Number of matches:

Summary
=======

Sorry, no match

Look at the above section 'Running tests' which could contain important
information.

ミツバチのエラーでしたか教えてください。

4

1 に答える 1

0

私はこれを持っています:

「192.168.1.1」の一致が見つかりましたが、「192.168.1.1」の有効な日付/時刻が見つかりませんでした。この形式のサポートを受けるには、作成者に連絡してください

したがって、文字列の例には日時が必要なようです。

たとえば、これはうまくいきます:

fail2ban-regex "03-12-2012 12:00:00 192.168.1.1" "<HOST>$"



Running tests
=============

Use regex line : <HOST>$
Use single line: 03-12-2012 12:00:00 192.168.1.1


Results
=======

Failregex
|- Regular expressions:
|  [1] <HOST>$
|
`- Number of matches:
   [1] 1 match(es)

Ignoreregex
|- Regular expressions:
|
`- Number of matches:

Summary
=======

Addresses found:
[1]
    192.168.1.1 (Mon Dec 03 12:00:00 2012)

Date template hits:
0 hit(s): MONTH Day Hour:Minute:Second
0 hit(s): WEEKDAY MONTH Day Hour:Minute:Second Year
0 hit(s): WEEKDAY MONTH Day Hour:Minute:Second
0 hit(s): Year/Month/Day Hour:Minute:Second
0 hit(s): Day/Month/Year Hour:Minute:Second
0 hit(s): Day/MONTH/Year:Hour:Minute:Second
0 hit(s): Month/Day/Year:Hour:Minute:Second
0 hit(s): Year-Month-Day Hour:Minute:Second
0 hit(s): Day-MONTH-Year Hour:Minute:Second[.Millisecond]
2 hit(s): Day-Month-Year Hour:Minute:Second
0 hit(s): TAI64N
0 hit(s): Epoch
0 hit(s): ISO 8601
0 hit(s): Hour:Minute:Second
0 hit(s): <Month/Day/Year@Hour:Minute:Second>

Success, the total number of match is 1

However, look at the above section 'Running tests' which could contain important
information.
于 2012-12-10T10:49:53.740 に答える