Learn about Centmin Mod LEMP Stack today
Become a Member

CSF limit problem

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by hitman, Jul 23, 2014.

  1. hitman

    hitman Member

    110
    9
    18
    Jul 18, 2014
    Ratings:
    +13
    Local Time:
    7:19 PM
    hallo i tried to limit the connections per IP
    i show that there is the way with domain.com.conf with the limit_conn limit_per_ip 16;

    and there is the the connection limit through csf
    i do not know if these 2 ways are relevant or even if they are the same but the fact is that although i have used both it does not work.


    here is the results after running the /etc/csf/csftest.pl
    Testing ip_tables/iptable_filter...OK
    Testing ipt_LOG...OK
    Testing ipt_multiport/xt_multiport...OK
    Testing ipt_REJECT...OK
    Testing ipt_state/xt_state...OK
    Testing ipt_limit/xt_limit...OK
    Testing ipt_recent...OK
    Testing xt_connlimit...FAILED [Error: iptables: Invalid argument. Run `dmesg' fo r more information.] - Required for CONNLIMIT feature
    Testing ipt_owner/xt_owner...OK
    Testing iptable_nat/ipt_REDIRECT...OK
    Testing iptable_nat/ipt_DNAT...OK


    as you can see the xt_connlimit failed,how can i fix that or what else can be done

    thank you
     
  2. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,573
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,755
    Local Time:
    2:19 AM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1