Want to subscribe to topics you're interested in?
Become a Member

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:
    7:07 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

    50,476
    11,663
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,088
    Local Time:
    2:07 AM
    Nginx 1.25.x
    MariaDB 10.x