-
Notifications
You must be signed in to change notification settings - Fork 257
Fail2Ban
📂 Click Here - Sign up for Google's Suite for Business - Unlimited Space
📂 Click Here - NZB's with from NewsHost - PG Members Receive a 58% Discount
Table of Contents
Fail2Ban is an intrusion prevention software framework that protects computer servers from brute-force attacks. Written in the Python programming language, it is able to run on POSIX systems that have an interface to a packet-control system or firewall installed locally, for example, iptables or TCP Wrapper.
When you install PlexGuide, fail2ban is installed by default. The basic settings are created directly, as well as the service runs with default settings.
Here in this section you will only be told a little bit more about "fail2ban" and some settings how to optimize your "fail2ban-service".
PLEASE be careful !!! if you bann your IP you must wait 24h for rejoin the Server.
// only for EXPERT \
- cd /etc/fail2ban/
- cp jail.conf backup.jail.conf
- nano jail.conf
Please ONLY change this ! // change this --> // scroll down // Please ONLY change this !
"bantime" is the number of seconds that a host is banned."
**bantime = 86400**
"A host is banned if it has generated "maxretry" during the last "findtime"seconds."
**findtime = 36000**
"maxretry" is the number of failures before a host get banned."
**maxretry = 3**
Please ONLY change this !
short info :
bann time = time for IP bann`s
findtime = the time for find the IP in the log
maxretry = maximal retry before bann the IP
-
CTRG + X ( then Y )
-
/etc/init.d/fail2ban restart
-
cd /var/log/
-
tail -f fail2ban.log
PLEASE be careful !!! if you bann your IP you must wait 24h for rejoin the Server.
// only for EXPERT \
- cd /etc/fail2ban/
- cp jail.conf backup.jail.conf
- nano jail.conf
Please ONLY change this ! // change this --> // scroll down // Please ONLY change this !
* "bantime" is the number of seconds that a host is banned.
bantime = 172800
* A host is banned if it has generated "maxretry" during the last "findtime" seconds.
findtime = 86400
* "maxretry" is the number of failures before a host get banned.
maxretry = 3
Please ONLY change this !
-
CTRG + X ( then Y )
-
/etc/init.d/fail2ban restart
-
cd /var/log/
-
tail -f fail2ban.log
PLEASE be careful !!! if you bann your IP you must wait 24h for rejoin the Server.
// only for EXPERT \
- cd /etc/fail2ban/
- cp jail.conf backup.jail.conf
- nano jail.conf
Please ONLY change this ! // change this --> // scroll down // Please ONLY change this !
* "bantime" is the number of seconds that a host is banned.
bantime = 604800
* A host is banned if it has generated "maxretry" during the last "findtime" seconds.
findtime = 172800
* "maxretry" is the number of failures before a host get banned.
maxretry = 2
Please ONLY change this !
-
CTRG + X ( then Y )
-
/etc/init.d/fail2ban restart
-
cd /var/log/
-
tail -f fail2ban.log
With Fail2Ban v0.8.8 and later:
fail2ban-client set sshd unbanip IPADDRESSHERE
- login over secondary IP ( not banned IP )
- fail2ban-client status ( normaly PGuide use this one sshd )
- cat /var/log/fail2ban.log
- find the IP -> right side are
- copy the IP if you want to unban !!! ( own risk )
- fail2ban-client set sshd unbanip IPADDRESSHERE
- try to login !
- if it failed
- go back to step 2.)
- be careful what IP you want to UNBAN !!
📂 Click Here - NZB's from USENET Server - PG Members Receive a 60% Discount
Home - https://plexguide.com