gods

a simple blocklist for ssh
Log | Files | Refs | README | LICENSE

config.h (407B)


      1 char *sshlog = "/var/log/authlog";
      2 char *black_list = "/etc/gods/blacklist";
      3 char *white_list = "/etc/gods/whitelist";
      4 int immune_try = 2;
      5 int max_try = 9;
      6 char *attack_pattern[] = {
      7 	"Invalid user",
      8 	"Failed password for",
      9 	"Disconnected from authenticating user",
     10 	"Unable to negotiate with",
     11 	"Received disconnect from",
     12 	"Connection closed by",
     13 	NULL,
     14 };
     15 
     16 int pauth[] = {
     17 	0,
     18 	0,
     19 	0,
     20 	0,
     21 	1,
     22 	1,
     23 	0,
     24 };