Changes
From SME Server
Jump to navigation
Jump to search
← Older edit
Newer edit →
Fail2ban
(view source)
Revision as of 09:41, 31 August 2013
846 bytes added
,
09:41, 31 August 2013
→Uninstall
Line 179:
Line 179:
action = smeserver-iptables[bantime=604800]
action = smeserver-iptables[bantime=604800]
smeserver-sendmail[name="Recidive",dest=root]
smeserver-sendmail[name="Recidive",dest=root]
+
+
=== Unban an IP ===
+
In certain case you would to unban an IP immediately because you don't want waste time to wait the automatic IP unban process of fail2ban.
+
In first you you have to find the specific jail which has blocked you IP, you can refer to the mail that the admin user has received.
+
+
fail2ban-client status qpsmtpd
+
+
Status for the jail: qpsmtpd
+
|- filter
+
| |- File list: /var/log/qpsmtpd/current /var/log/sqpsmtpd/current
+
| |- Currently failed: 5
+
| `- Total failed: 119
+
`- action
+
|- Currently banned: 1
+
| `- IP list: 93.17.128.20
+
`- Total banned: 1
+
+
Therefore you have to play with this command to unban your IP
+
+
fail2ban-client set qpsmtpd unbanip 93.17.128.20
+
+
the generic command is :
+
+
fail2ban-client set JAIL unbanip MYIP
+
+
If you want to know all you active jail, then do :
+
+
fail2ban-client status
+
=== Uninstall ===
=== Uninstall ===
Stephdl
Administrators
5,576
edits
Navigation menu
Page actions
Page
Discussion
View source
History
Page actions
Page
Discussion
More
Tools
In other languages
Personal tools
English
Log in
Koozali SME Server
Main Page
Welcome
Releases
Testimonials
Documentation
SME Server FAQ
Volunteering
Commercial Support
Recent activities
Dashboard
Recent wiki changes
Recent bug changes
Unread Forum posts
Koozali resources
Contribs
How-To's
Forums
Bugzilla
Mailing Lists
Translations
Download
Koozali SME Server wiki
Wiki statistics
Wiki categories
Wiki Help
Koozali Wiki Help
Tools
Special pages
Printable version
Search