Learn about Centmin Mod LEMP Stack today
Register Now

CSF limit problem

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

  1. hitman

    hitman Member

    126
    11
    18
    Jul 18, 2014
    Ratings:
    +15
    Local Time:
    5:18 AM
    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

    54,098
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    1:18 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+