Line 1:
Line 1:
+
[[User:Mmccarn|Mmccarn]] ([[User talk:Mmccarn|talk]]) 14:54, 7 May 2017 (CEST)
+
* Proposed update for the checklist_ban script:
+
<nowiki>#!/bin/bash
+
#lancer le script en sudo
+
echo -e "Jail failed / banned"
+
+
JAILS=$(fail2ban-client status | grep " Jail list:" | sed 's/`- Jail list://g' | sed 's/,//g')
+
for j in $JAILS
+
do
+
jail="$j "
+
failed=$(fail2ban-client status $j | grep " Currently failed:" | sed 's/[^0-9]*//')
+
banned=$(fail2ban-client status $j | grep " Currently banned:" | sed 's/[^0-9]*//')
+
echo -e "${jail:0:20} $failed / $banned"
+
done
+
</nowiki>
+
+
Fine. Usually I'm told to put forum stuff into the wiki. Bound to happen the other way around. Have appended to the thread that 'tried' to point to the unwanted piece in the wiki.
Fine. Usually I'm told to put forum stuff into the wiki. Bound to happen the other way around. Have appended to the thread that 'tried' to point to the unwanted piece in the wiki.
----
----
@Piran: don't take comments personally to quickly. HFW just pointed out that to keep the wiki readable it needs some style (see: [[Help:Wiki_Manual_of_Style|Wiki Manual of Style]]). I've added the most important parts to the page, the rest i would keep as your personal notes.
@Piran: don't take comments personally to quickly. HFW just pointed out that to keep the wiki readable it needs some style (see: [[Help:Wiki_Manual_of_Style|Wiki Manual of Style]]). I've added the most important parts to the page, the rest i would keep as your personal notes.