Commit graph

18 commits

Author SHA1 Message Date
Sean DuBois
c59cb07298 All fail2go communication now has error handling, JSON casting still has no error handling 2014-07-08 05:28:30 +00:00
Sean DuBois
a49b9b67de Add support for the special fail2ban form <HOST> all <HOST> instances are now replaced with (?:::f{4,6}:)?(?P<host>\S+) 2014-07-06 13:31:25 +00:00
Sean DuBois
17c57fa7f1 Add endpoint to do basic regex testing against all the logfiles for a jail 2014-07-05 06:03:53 +00:00
Sean DuBois
be624ce771 Garbage paren char, also remove comments above null checks 2014-07-04 01:50:39 +00:00
Phillip Moore
dec5d521b7 Also update for fail regexes
Update for fail regexes too (same issue as IPList)
2014-07-03 21:18:26 +00:00
Phillip Moore
13babc7958 Fix nill/null value of IPList
Initialize IPList to an empty array if the IPList is nil/null.
2014-07-03 21:18:26 +00:00
Sean DuBois
e981bb0d73 Fail2go now returns useful errors when a failregex is not correctly added 2014-06-30 00:08:18 +00:00
Sean DuBois
6ac04f33cf fail2go pkg renamed Fail2goConn -> Conn so fully qualified name would just read fail2go.Conn 2014-06-27 06:58:35 +00:00
Sean DuBois
65a8a01f94 Add REST handlers for setting useDNS, maxRetry and findTime 2014-06-25 07:00:44 +00:00
Sean DuBois
2541520b69 Add findTime, useDNS, maxRetry to toplevel get for jail information 2014-06-25 05:23:33 +00:00
Sean DuBois
b46fd86c8a Add ErrorBody struct so all errors will have the same JSON format. If a failregex is malformed send a 400 error code with the fail message 2014-06-23 06:53:42 +00:00
Sean DuBois
25f4e02772 Implement the deletion/creation of failRegexes 2014-06-21 02:48:40 +00:00
Sean DuBois
5705bcd2ed fail2go now has multi-value returns instead of maps, update effected code 2014-06-20 13:58:57 +00:00
Sean DuBois
149fb451a6 Better URL scheme for manipulating bannedips, now just have single dir that you can POST or DELETE to 2014-06-20 06:30:18 +00:00
Sean DuBois
c9ba89e725 Fail2bansocket location is now a configuration option, refactor project since fail2go does method dispatch off of Fail2goConn struct 2014-06-18 05:53:54 +00:00
Sean DuBois
cf7967390d Add the ability to ban/unban IPs per jail 2014-06-17 06:02:54 +00:00
Sean DuBois
ba4bcaf440 Add failRegex to jail info 2014-06-16 08:15:26 +00:00
Sean DuBois
405d61e729 Move fail2ban socket communication into its own project called fail2go 2014-06-16 03:38:10 +00:00