mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Added documentation to the ipset files (for doxygen output).
This commit is contained in:
parent
72738471f1
commit
0f3eac4a0e
3 changed files with 31 additions and 0 deletions
|
|
@ -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.
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue