Skip to content

Step by step installation guide

Seongmyun Cho edited this page Sep 19, 2016 · 9 revisions

Step by step installation guide on CentOS 7

  1. (as root) update your rpm packages and boot from the latest kernel.

    [root@localhost ~]# yum update [root@localhost ~]# reboot

  2. install the necessary development tools, in case you don't already have them installed.

    [root@localhost ~]# yum groupinstall "Development Tools"

  3. get the source code from the repository, it will create "kpcre" directory.

    [root@localhost ~]# git clone https://github.com/xnsystems/kpcre.git

  4. change directory to kpcre, build the kernel modules and install them.

    [root@localhost ~]# cd kpcre [root@localhost ~]# make modules modules_install

  5. execute "iptables" like the below.

    [root@localhost ~]# iptables -I INPUT -p icmp -m string --string "/ABCD.+/i" --algo regex -j DROP

  6. This will get no replies because the ping packets contain "ABCDEFG.." in the payload.

    [root@localhost ~]# ping -s 1400 127.0.0.1

  7. 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.

Clone this wiki locally