Results 1 to 9 of 9

Thread: Fail2 ban support for Ubuntu 6.06.1 LTS

  1. #1
    Join Date
    Nov 2007
    Beans
    42
    Distro
    Ubuntu 18.04 Bionic Beaver

    Fail2 ban support for Ubuntu 6.06.1 LTS

    Hi all ,

    Advance thanks to all ,

    I install fail2ban on my too old server for security reasons . I am getting error message .

    Few Out put from my Box

    Code:
    root@LABPBX-01:~# sudo ls -l /var/run/fail2ban/
    total 4
    -rw------- 1 root root 6 2010-12-28 17:19 fail2ban.pid
    srwx------ 1 root root 0 2010-12-28 17:19 fail2ban.sock
    root@LABPBX-01:~#
    root@LABPBX-01:~#
    root@LABPBX-01:~#
    root@LABPBX-01:~# sudo ls -l /var/run/fail2ban/ -d
    drwxr-xr-x 2 root root 80 2010-12-28 17:19 /var/run/fail2ban/
    root@LABPBX-01:~#
    
    root@LABPBX-01:~#
    root@LABPBX-01:~# time sudo /etc/init.d/fail2ban start
    /etc/init.d/fail2ban: line 13: /etc/init.d/functions: No such file or directory
    Starting fail2ban: /etc/init.d/fail2ban: line 36: echo_success: command not found
    
    
    real    0m0.027s
    user    0m0.010s
    sys     0m0.020s
    root@LABPBX-01:~#
    root@LABPBX-01:~#
    root@LABPBX-01:~#
    root@LABPBX-01:~# time sudo /etc/init.d/fail2ban restart
    /etc/init.d/fail2ban: line 13: /etc/init.d/functions: No such file or directory
    Stopping fail2ban: rm: cannot remove `/var/lock/subsys/fail2ban': Is a directory
    /etc/init.d/fail2ban: line 54: echo_success: command not found
    
    Starting fail2ban: /etc/init.d/fail2ban: line 36: echo_success: command not found
    
    
    real    0m1.466s
    user    0m0.330s
    sys     0m0.040s
    root@LABPBX-01:~#
    root@LABPBX-01:~#
    root@LABPBX-01:~#
    root@LABPBX-01:~# uname -a
    Linux LABPBX-01 2.6.15-26-server #1 SMP Thu Aug 3 04:09:15 UTC 2006 i686 GNU/Linux
    root@LABPBX-01:~#
    root@LABPBX-01:~#
    root@LABPBX-01:~#
    root@LABPBX-01:~# lsb_release -dcs
    Ubuntu 6.06.1 LTS
    dapper
    root@LABPBX-01:~#
    root@LABPBX-01:~#
    root@LABPBX-01:~# apt-cache policy fail2ban
    fail2ban:
      Installed: 0.6.0-3
      Candidate: 0.6.0-3
      Version table:
     *** 0.6.0-3 0
            500 http://in.archive.ubuntu.com dapper/universe Packages
            100 /var/lib/dpkg/status
    root@LABPBX-01:~#

  2. #2
    Join Date
    Dec 2006
    Location
    Finland
    Beans
    859
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Fail2 ban support for Ubuntu 6.06.1 LTS

    Hi,

    I do not have solution for you, sorry.
    If you look security, you should upgrade your server OS.
    Regards,
    Jari

  3. #3
    Join Date
    Aug 2008
    Location
    Victoria, BC Canada
    Beans
    1,741

    Re: Fail2 ban support for Ubuntu 6.06.1 LTS

    You might want to consider an new machine using a new version of Linux server.

  4. #4
    Join Date
    May 2007
    Location
    Phoenix, Arizona USA
    Beans
    2,909
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Fail2 ban support for Ubuntu 6.06.1 LTS

    Dudes, telling him to upgrade because YOU think latest and greatest is best is not helping him with the problem.

    To the OP, your startup script for fail2ban is messed up, and it is not starting. You may want to completely remove fail2ban and then re-install it if you don't know how to fix the startup script or simply don't want to go through the hassle.

    -Tim
    www.pcchopshop.net

    Hard to find and obsolete PC and server parts. "If we can't find it, it probably doesn't exist"

  5. #5
    Join Date
    May 2007
    Location
    Phoenix, Arizona USA
    Beans
    2,909
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Fail2 ban support for Ubuntu 6.06.1 LTS

    This appears to be an SELinux bug. If you have SELinux enabled, try disabling it.

    To disable the SELinux permanently, modify the /etc/selinux/config and set the SELINUX=disabled as shown below. One you make any changes to the /etc/selinux/config, reboot the server for the changes to be considered.
    Code:
     
    # cat /etc/selinux/config
    SELINUX=disabled
    SELINUXTYPE=targeted
    SETLOCALDEFS=0
    -Tim
    www.pcchopshop.net

    Hard to find and obsolete PC and server parts. "If we can't find it, it probably doesn't exist"

  6. #6
    Join Date
    Nov 2007
    Beans
    42
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Fail2 ban support for Ubuntu 6.06.1 LTS

    I love to THANKS for all friends . =D>

    I am going to check today and let you know the status .


    This is the server i am using for more than 3 years without any trouble . Really i much impressed this server setup and don't want to disturb .

    For security reasons i need to installing fail2ban .

    NOTE : previously one of member try to install fail2ban through source file . really i am not aware of this and i tried to install via apt-get and configured as what i need .

    I doubt that is the one messed up this issue .

  7. #7
    Join Date
    Jun 2007
    Location
    Michigan, USA
    Beans
    465

    Re: Fail2 ban support for Ubuntu 6.06.1 LTS

    Quote Originally Posted by Waappu View Post
    Hi,

    I do not have solution for you, sorry.
    If you look security, you should upgrade your server OS.
    6.06 is still supported..
    Ubuntu 14.04 Server
    -Linode 1GB
    Ubuntu Mate 16.04 Laptop
    -Toshiba Satellite A505-6005, Intel i3, 4.00 GB ram

  8. #8
    Join Date
    Nov 2007
    Beans
    42
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Fail2 ban support for Ubuntu 6.06.1 LTS

    Quote Originally Posted by windependence View Post
    This appears to be an SELinux bug. If you have SELinux enabled, try disabling it.

    To disable the SELinux permanently, modify the /etc/selinux/config and set the SELINUX=disabled as shown below. One you make any changes to the /etc/selinux/config, reboot the server for the changes to be considered.
    Code:
     
    # cat /etc/selinux/config
    SELINUX=disabled
    SELINUXTYPE=targeted
    SETLOCALDEFS=0
    -Tim
    root@C$$tSrv:~# cat /etc/selinux/config
    cat: /etc/selinux/config: No such file or directory
    root@C$$tSrv:~#

  9. #9
    Join Date
    Nov 2007
    Beans
    42
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Fail2 ban support for Ubuntu 6.06.1 LTS

    simply i like to remove the Fail2ban from my server .

    apt-get remove fail2ban -----> already i did

    shows Error :

    Reading package lists... Done
    Building dependency tree... Done
    The following packages will be REMOVED:
    fail2ban
    0 upgraded, 0 newly installed, 1 to remove and 90 not upgraded.
    Need to get 0B of archives.
    After unpacking 246kB disk space will be freed.
    Do you want to continue [Y/n]? y
    (Reading database ... 36765 files and directories currently installed.)
    Removing fail2ban ...
    /etc/init.d/fail2ban: line 13: /etc/init.d/functions: No such file or directory
    Stopping fail2ban: /etc/init.d/fail2ban: line 59: echo_failure: command not found

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •