So after updating my SSHGuard port today I couldn't start the service afterwards. I checked /usr/ports/UPDATING but didn't find anything in there.
I changed /usr/local/etc/rc.d/sshguard as follows:
to:
Just so I could get some kind of error as when I try to start the service manually otherwise it quietly exits. Now when I start the service it says:
My /etc/rc.conf has the following options set:
So what do I need to do to get the service to start again? :q
I changed /usr/local/etc/rc.d/sshguard as follows:
Code:
command_args="-cf ${actual_command} -b .....
to:
Code:
command_args="-c ${actual_command} -b .....
Just so I could get some kind of error as when I try to start the service manually otherwise it quietly exits. Now when I start the service it says:
Code:
Warning! Sshguard now uses *attack dangerousness*, not occurrences, to gauge threats.
Default dangerousness per attack is 10, default threshold is 40.
sshguard: option requires an argument -- i
Usage:
sshguard [-b <thr:file>] [-w <whlst>]{0,n} [-a num] [-p sec] [-s sec]
[-l <source>] [-f <srv:pidfile>]{0,n} [-i <pidfile>] [-v]
-b Blacklist: thr = number of abuses before blacklisting, file = blacklist filename.
-a Number of hits after which blocking an address (40)
-p Seconds after which unblocking a blocked address (420)
-w Whitelisting of addr/host/block, or take from file if starts with "/" or "." (repeatable)
-s Seconds after which forgetting about a cracker candidate (1200)
-l Add the given log source to Log Sucker's monitored sources (off)
-f "authenticate" service's logs through its process pid, as in pidfile
-i When started, save PID in the given file; useful for startup scripts (off)
-v Dump version message to stderr, supply this when reporting bugs
The SSHGUARD_DEBUG environment variable enables debugging mode (verbosity + interactivity).
My /etc/rc.conf has the following options set:
Code:
sshguard_enable="YES"
sshguard_watch_logs="/var/log/auth/auth.log:/var/log/system/messages"
sshguard_safety_thresh="3"
sshguard_pardon_min_interval="43200"
sshguard_prescribe_interval="7200"
sshguard_blacklist="40:/var/db/sshguard/blacklist.db"
So what do I need to do to get the service to start again? :q