- Added documentation to the ipset files (for doxygen output).

This commit is contained in:
W.C.A. Wijngaards 2019-06-18 16:25:11 +02:00
parent 72738471f1
commit 0f3eac4a0e
3 changed files with 31 additions and 0 deletions

View file

@ -7,6 +7,7 @@
use unsigned type because of comparison, and assign null instead use unsigned type because of comparison, and assign null instead
of compare with it. Remade lex and yacc output. of compare with it. Remade lex and yacc output.
- make depend - make depend
- Added documentation to the ipset files (for doxygen output).
17 June 2019: Wouter 17 June 2019: Wouter
- Master contains version 1.9.3 in development. - Master contains version 1.9.3 in development.

View file

@ -1,3 +1,10 @@
/**
* \file
* This file implements the ipset module. It can handle packets by putting
* the A and AAAA addresses that are configured in unbound.conf as type
* ipset (local-zone statements) into a firewall rule IPSet. For firewall
* blacklist and whitelist usage.
*/
#include "config.h" #include "config.h"
#include "ipset/ipset.h" #include "ipset/ipset.h"
#include "util/regional.h" #include "util/regional.h"

View file

@ -6,6 +6,29 @@
*/ */
#ifndef IPSET_H #ifndef IPSET_H
#define IPSET_H #define IPSET_H
/** \file
*
* This file implements the ipset module. It can handle packets by putting
* the A and AAAA addresses that are configured in unbound.conf as type
* ipset (local-zone statements) into a firewall rule IPSet. For firewall
* blacklist and whitelist usage.
*
* To use the IPset module, install the libmnl-dev (or libmnl-devel) package
* and configure with --enable-ipset. And compile. Then enable the ipset
* module in unbound.conf with module-config: "ipset validator iterator"
* then create it with ipset -N blacklist iphash and then add
* local-zone: "example.com." ipset
* statements for the zones where you want the addresses of the names
* looked up added to the set.
*
* Set the name of the set with
* ipset:
* name-v4: "blacklist"
* name-v6: "blacklist6"
* in unbound.conf. The set can be used in this way:
* iptables -A INPUT -m set --set blacklist src -j DROP
* ip6tables -A INPUT -m set --set blacklist6 src -j DROP
*/
#include "util/module.h" #include "util/module.h"