Netgate m1n1wall

Author Topic: Denyhosts Service disable  (Read 4923 times)

0 Members and 1 Guest are viewing this topic.

Offline Arist

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Denyhosts Service disable
« on: September 06, 2009, 08:15:29 pm »
After install Denyhosts service is disable and wont start after entering

$ /usr/local/etc/rc.d/denyhosts.sh start I get the error below

$ /usr/local/etc/rc.d/denyhosts.sh start
Missing configuration parameter: DENY_THRESHOLD_INVALID

Note: The configuration parameter DENY_THRESHOLD has been renamed
      DENY_THRESHOLD_INVALID.  Please update your DenyHosts configuration
      file to reflect this change.
Missing configuration parameter: DENY_THRESHOLD_VALID
Missing configuration parameter: DENY_THRESHOLD_ROOT
Missing configuration parameter: DENY_THRESHOLD_RESTRICTED

Note: DENY_THRESHOLD_RESTRICTED has not been defined. Setting this
value to DENY_THRESHOLD_ROOT

how can i fix thanks

Offline Elight

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Denyhosts Service disable
« Reply #1 on: September 10, 2009, 01:54:25 am »
I've got the same problem on pfSense 1.2.3-RC1 with DenyHosts 0.5.



  $ cp /usr/local/share/denyhosts/denyhosts.cfg-dist /usr/local/etc/denyhosts.conf

Then edit /usr/local/etc/denyhosts.conf to set the parameters:

  SECURE_LOG = /var/log/system.log
  BLOCK_SERVICE  = sshd

DenyHosts should  work after that.



Also there is an alternative method:

  $ rm /usr/local/etc/denyhosts*

And reinstall the package.
« Last Edit: September 10, 2009, 02:08:46 am by Elight »

Offline mcrane

  • Sr. Member
  • ****
  • Posts: 495
    • View Profile
Re: Denyhosts Service disable
« Reply #2 on: September 11, 2009, 03:58:29 pm »
I just added the command you suggested:
rm /usr/local/etc/denyhosts*

To the package uninstall.

Offline heleniovix

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Denyhosts Service disable
« Reply #3 on: September 24, 2009, 09:40:15 am »
i have another problem:

/usr/local/etc/rc.d/denyhosts.sh start
/libexec/ld-elf.so.1: Shared object "libm.so.4" not found, required by "python2.5"

but, i have file "libm.so.4" in /lib

# ls -lh /lib/libm*
-r-xr-xr-x  1 root  wheel    90K Jan  8  2009 /lib/libm.so.5
-r-xr-xr-x  1 root  wheel    59K Jan  8  2009 /lib/libmd.so.4

any sugestions ????

Offline BrianBonnell

  • Jr. Member
  • **
  • Posts: 28
    • View Profile
Re: Denyhosts Service disable
« Reply #4 on: September 24, 2009, 01:15:53 pm »
I get:

# /usr/local/etc/rc.d/denyhosts.sh start
/usr/local/etc/rc.d/denyhosts.sh: /usr/local/bin/python2.5: not found
#

Offline mcrane

  • Sr. Member
  • ****
  • Posts: 495
    • View Profile
Re: Denyhosts Service disable
« Reply #5 on: September 24, 2009, 09:36:36 pm »
heleniovix:

This is hackish but would probably work.
cp /lib/libm.so.5 /lib/libm.so.4

Then try again.

Offline serialdie

  • Sr. Member
  • ****
  • Posts: 395
    • View Profile
Re: Denyhosts Service disable
« Reply #6 on: September 27, 2009, 08:06:21 pm »
heleniovix:

This is hackish but would probably work.
cp /lib/libm.so.5 /lib/libm.so.4

Then try again.

Or you can symlink it instead.

Offline heleniovix

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Denyhosts Service disable
« Reply #7 on: September 28, 2009, 10:44:41 am »
thankīs guys,

itīs work !!!!

i have a 1.2.3-RC3 and i download python packīs from this site:
http://ftp.cse.yzu.edu.tw/pub/BSD/FreeBSD/ports/i386/packages-7.2-release/All/python25-2.5.4_1.tbz
pkg_add python25-2.5.4_1.tbz
cd /usr/local/lib/python2.5/site-packages/
cp -rp ../../python2.4/site-packages/DenyHosts* .
post Elight

Finnish !!!

45 days after, problem solved !




« Last Edit: October 27, 2009, 01:47:45 pm by heleniovix »

Offline lol

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
Re: Denyhosts Service disable
« Reply #8 on: March 21, 2010, 11:31:42 pm »
Hello,
Thanks for this usefull topic.

It's work also for me  !  :)