{"action":"created","issue":{"url":"https://api.github.com/repos/fail2ban/fail2ban/issues/1040","labels_url":"https://api.github.com/repos/fail2ban/fail2ban/issues/1040/labels{/name}","comments_url":"https://api.github.com/repos/fail2ban/fail2ban/issues/1040/comments","events_url":"https://api.github.com/repos/fail2ban/fail2ban/issues/1040/events","html_url":"https://github.com/fail2ban/fail2ban/issues/1040","id":72253187,"number":1040,"title":"Fail2ban & CloudFlare??","user":{"login":"techpulse","id":12190261,"avatar_url":"https://avatars.githubusercontent.com/u/12190261?v=3","gravatar_id":"","url":"https://api.github.com/users/techpulse","html_url":"https://github.com/techpulse","followers_url":"https://api.github.com/users/techpulse/followers","following_url":"https://api.github.com/users/techpulse/following{/other_user}","gists_url":"https://api.github.com/users/techpulse/gists{/gist_id}","starred_url":"https://api.github.com/users/techpulse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techpulse/subscriptions","organizations_url":"https://api.github.com/users/techpulse/orgs","repos_url":"https://api.github.com/users/techpulse/repos","events_url":"https://api.github.com/users/techpulse/events{/privacy}","received_events_url":"https://api.github.com/users/techpulse/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-04-30T19:04:35Z","updated_at":"2015-05-04T01:21:13Z","closed_at":null,"body":"Hello everyone.\r\n\r\nI found this, and it worked perfectly when I did not use CloudFlare: https://rtcamp.com/tutorials/nginx/fail2ban/\r\n\r\nHowever, I am currently using CloudFlare. I did some re-search and I found that these two commands would work to ban and unban:\r\n\r\nactionban = curl -s \"https://www.cloudflare.com/api.html?a=ban&key=<ip>&u=<account>&tkn=<token>\"\r\nactionunban = curl -s \"https://www.cloudflare.com/api.html?a=nul&key=<ip>&u=<account>&tkn=<token>\"\r\n\r\nDoes anyone know how I could use https://rtcamp.com/tutorials/nginx/fail2ban/ configuration, with CloudFlare API? \r\n\r\nI will obviously replace the toke and account my self.\r\n\r\nCan someone help? i can donate a few bucks in paypal."},"comment":{"url":"https://api.github.com/repos/fail2ban/fail2ban/issues/comments/98564376","html_url":"https://github.com/fail2ban/fail2ban/issues/1040#issuecomment-98564376","issue_url":"https://api.github.com/repos/fail2ban/fail2ban/issues/1040","id":98564376,"user":{"login":"leeclemens","id":1250267,"avatar_url":"https://avatars.githubusercontent.com/u/1250267?v=3","gravatar_id":"","url":"https://api.github.com/users/leeclemens","html_url":"https://github.com/leeclemens","followers_url":"https://api.github.com/users/leeclemens/followers","following_url":"https://api.github.com/users/leeclemens/following{/other_user}","gists_url":"https://api.github.com/users/leeclemens/gists{/gist_id}","starred_url":"https://api.github.com/users/leeclemens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leeclemens/subscriptions","organizations_url":"https://api.github.com/users/leeclemens/orgs","repos_url":"https://api.github.com/users/leeclemens/repos","events_url":"https://api.github.com/users/leeclemens/events{/privacy}","received_events_url":"https://api.github.com/users/leeclemens/received_events","type":"User","site_admin":false},"created_at":"2015-05-04T01:21:13Z","updated_at":"2015-05-04T01:21:13Z","body":"@TheTechnoMan I think \"there is no way to use fail2ban and CloudFlare together\" is different from understanding the limitations/issues you identified regarding the time lapse for CloudFlare to start blocking."}}