Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
yum install -y ipset
ipset create vader hash:ip
ipset v6.29: Kernel error received: Operation not permitted
iptables -I INPUT -m set --match-set vader src -j DROP
iptables v1.4.21: Kernel module xt_set is not loaded in.
No module in my centos.
Code:
lsmod
Module Size Used by
cat /proc/modules
nothing as output
Module can't be installed.
Code:
modprobe xt_set
lsmod
Module Size Used by
Nothing as output
How to add module for my centos ,and how to make ipset run for me?
ls /usr/src/modules
ls: cannot access /usr/src/modules: No such file or directory
ls /lib/modules
ls: cannot access /lib/modules: No such file or directory
1. Install kernel sources.
2. Open a terminal
3. Login as root
4. "make menuconfig"
5. Select all nessecary options - help is availale. You can also ask here. Search in Internet for more specific howtos to configure the kernel
6. Install the kernel and the modules. "make install"
cd /usr/src/linux
-bash: cd: /usr/src/linux: No such file or directory
ls /usr/src
debug kernels
cd /usr/src/debug
make menuconfig
make: *** No rule to make target `menuconfig'. Stop.
cd /usr/src/kernels
make menuconfig
make: *** No rule to make target `menuconfig'. Stop.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.