My logs are filled with brute force attempts to my SSH server. I learned and installed an iptables firewall script, but now I need a way to block brute force attempts. Sshguard worked well when I had freeBSD but now I'm into slackware. It configures correctly...
Code:
(root):sshguard/sshguard-1.4rc2# ./configure --with-firewall=iptables
checking for a BSD-compatible install... /bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for ranlib... ranlib
checking for bison... bison -y
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for pthread_create in -lpthread... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking return type of signal handlers... void
checking for gethostbyname... yes
checking for inet_ntoa... yes
checking for strerror... yes
checking for strstr... yes
checking for strtol... yes
checking for iptables... /usr/sbin
configure: Using /usr/sbin as location for iptables
configure: creating ./config.status
config.status: creating Makefile
config.status: creating man/Makefile
config.status: creating src/Makefile
config.status: creating src/fwalls/Makefile
config.status: creating src/config.h
config.status: executing depfiles commands
(root):/sshguard/sshguard-
No errors or anything but when I run "make" ...
Code:
(root):sshguard/sshguard-1.4rc2# make
Making all in src
make[1]: Entering directory `/sshguard/sshguard-1.4rc2/src'
make all-recursive
make[2]: Entering directory `/sshguard/sshguard-1.4rc2/src'
Making all in fwalls
make[3]: Entering directory `/sshguard/sshguard-1.4rc2/src/fwalls'
gcc -DHAVE_CONFIG_H -I. -I../../src -I. -I.. -Wall -O2 -std=c99 -g -O2 -MT command.o -MD -MP -MF .deps/command.Tpo -c -o command.o command.c
command.c: In function 'run_command':
command.c:58: warning: implicit declaration of function 'setenv'
command.c:67: warning: implicit declaration of function 'unsetenv'
mv -f .deps/command.Tpo .deps/command.Po
rm -f libfwall.a
ar cru libfwall.a command.o
ranlib libfwall.a
make[3]: Leaving directory `/sshguard/sshguard-1.4rc2/src/fwalls'
make[3]: Entering directory `/sshguard/sshguard-1.4rc2/src'
gcc -DHAVE_CONFIG_H -I. -I. -O2 -std=c99 -Wall -g -O2 -MT sshguard_options.o -MD -MP -MF .deps/sshguard_options.Tpo -c -o sshguard_options.o sshguard_options.c
sshguard_options.c: In function 'get_options_cmdline':
sshguard_options.c:44: warning: implicit declaration of function 'getopt'
sshguard_options.c:47: error: 'optarg' undeclared (first use in this function)
sshguard_options.c:47: error: (Each undeclared identifier is reported only once
sshguard_options.c:47: error: for each function it appears in.)
make[3]: *** [sshguard_options.o] Error 1
make[3]: Leaving directory `/sshguard/sshguard-1.4rc2/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/sshguard/sshguard-1.4rc2/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/sshguard/sshguard-1.4rc2/src'
make: *** [all-recursive] Error 1
Am I missing a package or something?
