-
Notifications
You must be signed in to change notification settings - Fork 66
Site can't be reached #116
Comments
How often? It's possible that it's fail2ban. I configured fail2ban with some crude ddos protection. |
Yes, i've tried to stop fail2ban via ssh, and was now able to access the site. |
@zedrickvillas check this here: #81 (comment) it helped me. |
It's probably the ddos rule. It bans someone for 2 hours if they spam requests. The default is 300 requests in 5 minute. You can override the defaults if you want. Or turn off that jail. |
you mean line 60 |
i just had a look here and the # Default mail notification method |
The default fail2ban action is wordpress__fail2ban__default_action: 'action_mwl' It will send those emails to The DDOS setting start at line 170: # .. envvar:: wordpress__fail2ban__jail_ddos_action
#
# Action performed by ``fail2ban`` when IP address is banned by the DDOS jail.
wordpress__fail2ban__jail_ddos_action: '{{ wordpress__fail2ban__default_action }}'
# .. envvar:: wordpress__fail2ban__jail_ddos_bantime
#
# Length of time in seconds for the DDOS jail ban to persist. (Default: 2 hours)
wordpress__fail2ban__jail_ddos_bantime: '{{ wordpress__fail2ban__default_bantime }}'
# .. envvar:: wordpress__fail2ban__jail_ddos_enabled
#
# Whether the DDOS jail is enabled or not.
wordpress__fail2ban__jail_ddos_enabled: 'true'
# .. envvar:: wordpress__fail2ban__jail_ddos_findtime
#
# Length of time in seconds under which the given ``maxretry`` needs to happen
# to trigger a DDOS ban. (Default: 5 minutes)
wordpress__fail2ban__jail_ddos_findtime: '300'
# .. envvar:: wordpress__fail2ban__jail_ddos_maxretry
#
# Maximum number of requests in the given ``findtime`` to trigger a DDOS ban.
wordpress__fail2ban__jail_ddos_maxretry: '300' |
thanks. |
i got banned just by updating plugins from wp-admin and deleting files through ftp. ssh is blocked too |
Mine's pretty sparse too, but I don't get many alerts either. It looks like this:
|
Can we adjust the fail2ban conditions before blocking an IP? |
What do you mean? Like a whitelist? |
Nope, like lessen the criteria for fail2ban to block and IP. |
Yep, you can lessen the criteria. Do you know which jail is banning you? |
I've deleted my droplet that has this problem. |
Can you provide specific instructions for how to disable fail2ban? Please reconsider enabling fail2ban by default. See my complaints on this other issue. |
I think the major issue is the firewall more than fail2ban. I have fail2ban emails enabled on my site and it doesn't block as aggressively. |
Yes, I think it's ferm that's causing me problems. |
Maybe we should see with @drybjed if |
I think we've gone to the root of this issue. Can we close it @zedrickvillas? |
Closing this for now. Feel free to reopen if you still have issues @zedrickvillas! 😄 |
It seems that something is blocking if an IP is visiting the site too much but not spamming.
is it because of fail2ban?
The text was updated successfully, but these errors were encountered: