gods

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

commit 73344fb55b0e8ca34fadd494546c76241b715b39
parent a6635dd8b619784a46c76f5d06df65c18b0a9463
Author: Naveen Narayanan <zerous@nocebo.space>
Date:   Sun, 26 Sep 2021 19:00:13 +0200

Add fw.[ch]

Diffstat:
MMakefile | 1+
Afw.c | 17+++++++++++++++++
Afw.h | 7+++++++
3 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -2,6 +2,7 @@ include config.mk OBJ = \ attack.o\ + fw.o\ ip.o\ main.o \ parser.o \ diff --git a/fw.c b/fw.c @@ -0,0 +1,17 @@ +#include <stdio.h> + +int +fw_block(char *ip) +{ + /* stub */ + printf("fw_block: blocked ip: %s\n", ip); + return 1; +} + +int +fw_unblock(char *ip) +{ + /* stub */ + printf("fw_unblock: unblocked ip: %s\n", ip); + return 1; +} diff --git a/fw.h b/fw.h @@ -0,0 +1,7 @@ +#ifndef _FW_H +#define _FW_H + +int fw_block(char *); +int fw_unblock(char *); + +#endif