Commit graph

23 commits

Author SHA1 Message Date
Sean DuBois
3b85ffd1fc Print return value when starting HTTP handler for better error display 2014-06-27 14:10:35 +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
1f93c63ea1 Updating README.md with more information on how to run fail2rest 2014-06-26 03:26:58 +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
66961603d6 Remove README entry about fail2rest, already has been started 2014-06-21 06:35:29 +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
67aa38de0d Update config.json so fail2rest only bind to loopback 2014-06-18 06:30:02 +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
777a2df7a4 Don't need fail2rest anymore all handled in fail2go 2014-06-16 08:16:55 +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
Sean DuBois
59f9d9b0a2 Start implementing jailControl 2014-06-15 07:14:13 +00:00
Sean DuBois
52d3885d74 Add README.md 2014-06-15 03:01:01 +00:00
Sean DuBois
de2a4e62f0 Rename global->basic for route, this more closely models the fail2ban-client documentation 2014-06-15 01:28:57 +00:00
Sean DuBois
3c3efd4449 Add basic Makefile with run+libs targets 2014-06-14 18:43:58 +00:00
Sean DuBois
865a7e49a4 Add config file, Addr is configured via config 2014-06-14 18:32:46 +00:00
Sean DuBois
de70086c1b Start modeling REST calls off of the fail2ban-client, add ping and status 2014-06-14 17:27:18 +00:00
Sean DuBois
28316de576 Implement #'fail2banRequest, allowing us to send a slice of commands to the fail2ban socket and using ogrek for serialize/deserialization to pickle 2014-06-13 04:06:27 +00:00