如何为我的IP添加到Fail2ban例外

・1 分钟阅读

打开/etc/fail2ban/jail.conf文件,并且将你的IP添加到[DEFAULT]部分的"ignoreip"行。



[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


保存文件,并且重新启动fail2ban以应用更改。



service fail2ban restart


Zhongy0410 profile image