Ipset on Centos5 2.6.18-194.32.1.el5

General support questions including new installations
Post Reply
wvos
Posts: 3
Joined: 2016/04/08 12:42:59

Ipset on Centos5 2.6.18-194.32.1.el5

Post by wvos » 2016/04/08 14:56:26

Hi

I want to use IPSET on a CentOS5 server.

I tried yum install ipset
But that gives me "No package ipset available."

I downloaded the package from http://ipset.netfilter.org/install.html
For the old branch / linux kernel source code (version >= 2.6.16 or >= 2.4.36) / source of ipset: ipset-4.5.tar.bz2

First I installed the kernal source yum install kernel-devel
that downloaded 2.6.18-409.el5.centos.plus-x86_64

Then I compiled the package make KERNEL_DIR=/usr/src/kernels/2.6.18-409.el5.centos.plus-x86_64/
Then I compiled the binaries: make KERNEL_DIR=/usr/src/kernels/2.6.18-502.el5.lve0.8.85-x86_64/ install

Note that the kernal source seems different that the kernel in use.
uname -r
2.6.18-194.32.1.el5

ipset would not work, as it could not find ip_set.ko
I had to manually cp that file to the extra directory in the downloaded source.
I ran insmod on ip_set.ko


then depmod
then modprobe ip_set

Now ipset -v returns:
ipset v4.5, protocol version 4.
Kernel module protocol version 4.

Still modprobe -v ip_set returns
FATAL: Module ip_set not found.

I can't use it , because:

iptables -m set
iptables v1.3.5: Couldn't load match `set':/lib64/iptables/libipt_set.so: cannot open shared object file: No such file or directory

These files 'libipt_set.so' and co , are nowhere to be found.

/scripts/ensurerpm iptables
Package iptables-1.3.5-9.2.el5_8.x86_64 already installed and latest version
Nothing to do

I'm using C-panel + CSF
But I had to disbable ipset because of various "cannot open shared object file: No such file or directory" errors.

Any advise on where to get these files?

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Ipset on Centos5 2.6.18-194.32.1.el5

Post by gerald_clark » 2016/04/08 15:22:28

Elrepo's kernel-lt has ipset.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Ipset on Centos5 2.6.18-194.32.1.el5

Post by TrevorH » 2016/04/08 15:23:53

2.6.18-194.32.1.el5
Note that your system is years out of date and badly needs yum update run to bring it up to the current level of 5.11 where the current kernel is 2.6.18-409.el5. Your system is currently highly insecure as there are years of security updates pending. You have CentOS 5.5 and the current version is 5.11. 5.5 was released in 2010.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply