项目作者: Keidan

项目描述 :
(GPL) LKM Netfilter Hook.
高级语言: C
项目地址: git://github.com/Keidan/nhm.git
创建时间: 2014-10-13T17:55:31Z
项目社区:https://github.com/Keidan/nhm

开源协议:GNU General Public License v3.0

下载


nhm

Build Status

(GPL) LKM Netfilter Hook.

This module is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.

Instructions

Make targets:

  1. module: To execute this target correctly, you should have the kernel source headers.
  2. demo: To execute this target correctly, you should have the Qt devel package.
  3. all: Build the module and the demo targets.
  4. clean: Clean the generated files.

Download the software :

  1. mkdir devel
  2. cd devel
  3. git clone git://github.com/Keidan/nhm.git
  4. cd nhm
  5. make

Insert the module:

  1. insmod module/nhm.ko

Or with IPv6 support:

  1. insmod module/nhm.ko ipv6_support=1

Udev

To get the UDEV information (after inserting the module):

  1. udevadm info -a -p /sys/class/nhm/nhm

To insert the module with specific rights:

  1. KERNEL=="nhm", SUBSYSTEM=="nhm", MODE="0666", GROUP="plugdev"

API

The NHM module provides an API (api/nhm.h) specifying the format of the transferred data and the list of IOCTLs that you can use to monitor the module.

You can also read the device (/dev/nhm) to get the list of rules known by the module (circular buffer).

The demo codes that explain how to communicate with the nhm module are available in the demo folder.

License

GPLv3