Difference between revisions of "How to add Fail2ban exception for my IP"

From Kolmisoft Wiki
Jump to navigationJump to search
(Created page with 'Open file /etc/fail2ban/jail.conf and add your IP to "ignoreip: line which is under [DEFAULT] section. [DEFAULT] …')
 
m
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
Open file /etc/fail2ban/jail.conf and add your IP to "ignoreip: line which is under [DEFAULT] section.
Open file /etc/fail2ban/jail.conf and add your IP to "ignoreip" line which is under [DEFAULT] section.


  [DEFAULT]                                                                                                                     
  [DEFAULT]                                                                                                                     
Line 7: Line 7:
  # defined using space separator.                                                                                             
  # defined using space separator.                                                                                             
  ignoreip = 192.168.0.1/16 10.0.0.0/8 127.0.0.1/8 172.16.0.0/12 213.197.141.162 '''''YOUR_IP_HERE'''''
  ignoreip = 192.168.0.1/16 10.0.0.0/8 127.0.0.1/8 172.16.0.0/12 213.197.141.162 '''''YOUR_IP_HERE'''''
Save the file and restart fail2ban to apply changes.
service fail2ban restart
<br><br>
=See Also=
* [[How to block someone's IP]]
* [[Blocked IPs]]

Latest revision as of 21:13, 13 October 2018

Open file /etc/fail2ban/jail.conf and add your IP to "ignoreip" line which is under [DEFAULT] section.

[DEFAULT]                                                                                                                    
                                                                                                                            
# "ignoreip" can be an IP address, a CIDR mask or a DNS host. Fail2ban will not                                              
# ban a host which matches an address in this list. Several addresses can be                                                 
# defined using space separator.                                                                                             
ignoreip = 192.168.0.1/16 10.0.0.0/8 127.0.0.1/8 172.16.0.0/12 213.197.141.162 YOUR_IP_HERE

Save the file and restart fail2ban to apply changes.

service fail2ban restart




See Also