New IPSET function feedback.

Post Reply
Sergio
Junior Member
Posts: 1712
Joined: 12 Dec 2006, 14:56

New IPSET function feedback.

Post by Sergio »

Hi,
I started to use IPSET with CSF, really nice addition, hope in a future Chirpy creates a GUI on where to add or delete IPs on the IPSET.

POST EDITED DUE TO NEW ADVANCES!!

I have to admit, with new toys to play there will always be a chance to forget something, lol.

CSF + IPSET works great!!!

After configuring everything on the server I restarted CSF completely and CSF created a few IPSET databases for each one of the rules that were set on LFD BLOCKLIST, so, it created bl_MAXMIND, bl_TOR, bl_SPAMCOP, etc. and I add my own called BLACKIPS with over 20K IPs in there, I have my own script that block IPs that have triggered my own mod_security rules and with a cron I move those IPs from CFS.DENY to my BLACKIPS.

The load on the server before IPSET was about 2.0 average, now, with IPSET running about 20K blocked IPs the load has been in 0.42 average.

In one word, IPSET is a really nice addition to CSF, thanks Jonathan!!
addictofcsf
Junior Member
Posts: 8
Joined: 20 May 2015, 09:51

Re: New IPSET function feedback.

Post by addictofcsf »

After I disable FASTSTART it has been fixed :)
------------------

Hello,

If I try to use IPSET I get the following message when I restart CSF.
open3: exec of /usr/sbin/ipset flush failed at /usr/sbin/csf line 4191.
Do you have any idea about this?
screege
Junior Member
Posts: 44
Joined: 31 Dec 2006, 17:53

Re: New IPSET function feedback.

Post by screege »

I have the same problem running centos 6.6 with cloudlinux:

open3: exec of /usr/sbin/ipset flush failed at /usr/sbin/csf line 4563

Firewall will not start if lf_ipset enabled
SteveV
Junior Member
Posts: 2
Joined: 27 Oct 2012, 12:47

Re: New IPSET function feedback.

Post by SteveV »

I have the same problem running centos 6.7 with cloudlinux:

open3: exec of /usr/sbin/ipset flush failed at /usr/sbin/csf line 4563

Firewall will not start if lf_ipset enabled even with FASTSTART disabled
Sergio
Junior Member
Posts: 1712
Joined: 12 Dec 2006, 14:56

Re: New IPSET function feedback.

Post by Sergio »

You should check if your server has IPSET running.

http://ipset.netfilter.org/install.html
SteveV
Junior Member
Posts: 2
Joined: 27 Oct 2012, 12:47

Re: New IPSET function feedback.

Post by SteveV »

Hi Sergio

<smacks forehead>
That's correct - this is a new server, and I forgot to install ipset!
Sergio
Junior Member
Posts: 1712
Joined: 12 Dec 2006, 14:56

Re: New IPSET function feedback.

Post by Sergio »

Glad to help.
bigste
Junior Member
Posts: 1
Joined: 08 Oct 2015, 12:53

Re: New IPSET function feedback.

Post by bigste »

also <smacks forehead> :o

I used yum install ipset and that seemed to do the trick, which is lucky since I don't have a clue!

thanks Sergio
Sergio
Junior Member
Posts: 1712
Joined: 12 Dec 2006, 14:56

Re: New IPSET function feedback.

Post by Sergio »

yes, that is the first step to start using iptables.

Good to know it worked for you.
Post Reply