-
Notifications
You must be signed in to change notification settings - Fork 14
Step by step installation guide
Step by step installation guide on CentOS 7
-
(as root) update your rpm packages and boot from the latest kernel.
[root@localhost ~]# yum update [root@localhost ~]# reboot
-
install the necessary development tools, in case you don't already have them installed.
[root@localhost ~]# yum groupinstall "Development Tools"
-
get the source code from the repository, it will create "kpcre" directory.
[root@localhost ~]# git clone https://github.com/xnsystems/kpcre.git
-
change directory to kpcre, build the kernel modules and install them.
[root@localhost ~]# cd kpcre [root@localhost ~]# make modules modules_install
-
execute "iptables" like the below.
[root@localhost ~]# iptables -A INPUT -p icmp -m string --string "/ABCD.+/i" --algo regex -j DROP
-
This will get no replies because the ping packets contain "ABCDEFG.." in the payload.
[root@localhost ~]# ping -s 1400 127.0.0.1
-
This will get replies because the ping packets don't contain "ABCDEFG..." in the payload.
[root@localhost ~]# ping 127.0.0.1
"My colleague and I have been using your kpcre implementation extensively and have been finding it incredibly well-designed and comprehensive. Many thanks for all your efforts."
- Michael, Verisign, Inc.