Results 1 to 18 of 18
  1. #1
    Join Date
    May 2003
    Posts
    96

    APF and mod_dosevasive (first time)

    Hi

    I'm playing with my first server (goodbye VPS)

    1) I installed APF and it ok but how can I block IPs from my server

    another thing when I restart APF it shows

    lsmod: QM_MODULES: Function not implemented

    I changed MONOKERN="0" to MONOKERN="1" in conf.apf but the problem not solved

    my kernel is the lastest one for my server
    and when I run uname -a

    it shows 2.4.30-managed

    2) I installed also mod_dosevasive

    but I found step that tells me to run command

    visudo

    and add this line in the end of the file
    nobody ns1 = NOPASSWD: /usr/local/sbin/apf -d *

    my question is did I put the line in right place ??

    thank you and sorry for my long txt
    Last edited by zoomx; 07-21-2005 at 04:53 AM.

  2. #2
    Join Date
    Jan 2005
    Posts
    2,175
    to block using apf: apf -d ipaddress
    allow: apf -a ipaddress

    you'll need to restart apf for changes to take effect,

    --> apf -r

  3. #3
    Join Date
    Jul 2005
    Posts
    35
    thank.... you....

  4. #4
    Join Date
    May 2003
    Posts
    96
    thank you

    any idea about lsmod: QM_MODULES: Function not implemented

  5. #5
    Join Date
    Jan 2005
    Posts
    2,175
    I think that QM_MODULES error is normal, read it somewhere.

  6. #6
    Join Date
    Aug 2003
    Location
    Gods Own Country
    Posts
    869
    To solve the issue with "QM_MODULES: Function not implemented" An error while restarting the APF,

    The below steps will help you fix it.

    1) Download the latest version of module-init-tools
    wget http://www.kernel.org/pub/linux/kern...ls-3.1.tar.bz2

    2) Untar it. tar xjf module-init-tools-3.1.tar.bz2

    3) cd module-init-tools-3.1

    4) ./configure --prefix=/usr --exec-prefix="" ;
    make
    make check
    make moveold
    make install


    5. Now translate your old /etc/modules.conf into /etc/modprobe.conf with the ./generate-modprobe.conf script that comes with module-init-tools:

    ./generate-modprobe.conf /etc/modprobe.conf

    Now your issue should be solved ....:-)

    have a nice day
    Blessen Cherian
    Follow me on twitter.com/blessenonly
    Over a decade plus in the Hosting Industry

  7. #7
    Join Date
    May 2003
    Posts
    96
    Hi

    blessen

    I run the command that you said

    but now when I run

    apf -s

    it shows

    /etc/apf/firewall: line 1: /sbin/lsmod: No such file or directory

  8. #8
    Join Date
    Aug 2003
    Location
    Gods Own Country
    Posts
    869
    can you just try to find the lsmod using the command
    whereis lsmod

    and post the reply
    Blessen Cherian
    Follow me on twitter.com/blessenonly
    Over a decade plus in the Hosting Industry

  9. #9
    Join Date
    May 2003
    Posts
    96
    Hi

    [email protected] [~]# whereis lsmod
    lsmod: /bin/lsmod.old /sbin/lsmod.old
    [email protected] [~]#

  10. #10
    Join Date
    Aug 2003
    Location
    Gods Own Country
    Posts
    869
    Are you sure that you executed the command
    make install
    The last step
    Blessen Cherian
    Follow me on twitter.com/blessenonly
    Over a decade plus in the Hosting Industry

  11. #11
    Join Date
    May 2003
    Posts
    96
    yes but it was showing

    [email protected] [~/module-init-tools-3.1]# make install
    if [ "docbook2man" = "docbook2man" ]; then \
    docbook2man doc/modprobe.conf.sgml > /dev/null 2>&1; \
    else \
    docbook2man doc/modprobe.conf.sgml 2>&1 > modprobe.conf.5 | sed 's/^[^:]*://'; \
    fi
    make: *** [modprobe.conf.5] Error 127
    [email protected] [~/module-init-tools-3.1]# ./generate-modprobe.conf /etc/modprobe.conf
    modprobe: Can't open dependencies file /lib/modules/2.4.30-managed/modules.dep (No such file or directory)
    modprobe: QM_MODULES: Function not implemented

    Warning: not translating path[updates]=/lib/modules/updates
    Warning: not translating path[unsupported]=/lib/modules/unsupported


    before this setp it show

    make: *** [modprobe.conf.5] Error 127

  12. #12
    Join Date
    Aug 2003
    Location
    Gods Own Country
    Posts
    869
    Which version of OS are you using ? For example rh9 or centos
    Blessen Cherian
    Follow me on twitter.com/blessenonly
    Over a decade plus in the Hosting Industry

  13. #13
    Join Date
    May 2003
    Posts
    96
    Fedora core 1

  14. #14
    Join Date
    Aug 2003
    Location
    Gods Own Country
    Posts
    869
    [email protected] [~/module-init-tools-3.1]# make install
    if [ "docbook2man" = "docbook2man" ]; then \
    docbook2man doc/modprobe.conf.sgml > /dev/null 2>&1; \
    else \
    docbook2man doc/modprobe.conf.sgml 2>&1 > modprobe.conf.5 | sed 's/^[^:]*://'; \
    fi
    make: *** [modprobe.conf.5] Error 127
    This error shows that the docbook-utils is not installed on your machine. Please install the docbook-utils for fedora and then try to install mod-init-tools.. it should work
    Blessen Cherian
    Follow me on twitter.com/blessenonly
    Over a decade plus in the Hosting Industry

  15. #15
    Join Date
    May 2003
    Posts
    96
    How can I install docbook-utils is it script or hardwere ??

  16. #16
    Join Date
    Aug 2003
    Location
    Gods Own Country
    Posts
    869
    its a script....

    take http://www.rpmfind.net
    and serach for docbook-utils and chose the docbook-utils rpm for Fedora core 1
    Blessen Cherian
    Follow me on twitter.com/blessenonly
    Over a decade plus in the Hosting Industry

  17. #17
    Join Date
    May 2003
    Posts
    96
    [email protected] [~]# rpm -Uvh -- docbook-utils-0.6.13-7.noarch.rpm
    error: Failed dependencies:
    docbook-style-dsssl >= 1.72 is needed by docbook-utils-0.6.13-7
    elinks is needed by docbook-utils-0.6.13-7
    perl-SGMLSpm >= 1.03ii is needed by docbook-utils-0.6.13-7
    tetex-dvips is needed by docbook-utils-0.6.13-7
    [email protected] [~]#

  18. #18
    Join Date
    Aug 2003
    Location
    Gods Own Country
    Posts
    869
    Blessen Cherian
    Follow me on twitter.com/blessenonly
    Over a decade plus in the Hosting Industry

Posting Permissions

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