]> granicus.if.org Git - pdns/log
pdns
8 years agoauth: Fix a possible memory leak in the webserver
Remi Gacogne [Fri, 7 Oct 2016 13:04:12 +0000 (15:04 +0200)]
auth: Fix a possible memory leak in the webserver

Also state clearly that we advise against running the webserver
without password protection.

Reported by mongo (thanks!).

(cherry picked from commit bea69e320e7f3ec4b9e607f6492a58f01b4fe9bf)

8 years agoMerge pull request #4558 from mind04/auth-4.0.x
Pieter Lexis [Thu, 20 Oct 2016 07:52:47 +0000 (09:52 +0200)]
Merge pull request #4558 from mind04/auth-4.0.x

Auth 4.0.x backports

8 years agoMerge pull request #4586 from rgacogne/backport-4544
Pieter Lexis [Thu, 20 Oct 2016 07:52:34 +0000 (09:52 +0200)]
Merge pull request #4586 from rgacogne/backport-4544

Backport #4544: auth: Fix a stack-based off-by-one write in the HTTP remote backend

8 years agoauth: Fix a stack-based off-by-one write in the HTTP remote backend
Remi Gacogne [Mon, 29 Aug 2016 13:50:44 +0000 (15:50 +0200)]
auth: Fix a stack-based off-by-one write in the HTTP remote backend

Reported by mongo (thanks!).

(cherry picked from commit 9e5fa399eea5152a451753f1db68dec46537447c)

8 years agoMerge pull request #4523 from zeha/backport-4459
Pieter Lexis [Tue, 18 Oct 2016 09:38:39 +0000 (11:38 +0200)]
Merge pull request #4523 from zeha/backport-4459

Backport #4459: plugs memory leak in postgresql backend

8 years agoMerge pull request #4543 from zeha/api-search-no-ents-40x
Pieter Lexis [Tue, 18 Oct 2016 09:36:41 +0000 (11:36 +0200)]
Merge pull request #4543 from zeha/api-search-no-ents-40x

Backport of #4542: API: search should not return ENTs

8 years agoAPI: search should not return ENTs
Christian Hofstaedtler [Thu, 6 Oct 2016 14:18:09 +0000 (16:18 +0200)]
API: search should not return ENTs

This should also fix #4534, when backported.

8 years agofix a few 'types may not be defined in a for-range-declaration' warnings
Kees Monshouwer [Fri, 30 Sep 2016 20:50:57 +0000 (22:50 +0200)]
fix a few 'types may not be defined in a for-range-declaration' warnings

8 years agoadd gcc 6.2 to boost.m4
Kees Monshouwer [Fri, 30 Sep 2016 20:53:05 +0000 (22:53 +0200)]
add gcc 6.2 to boost.m4

8 years agoeleksir noted that we leak a ton of memory in postgresql. I'm no postgres expert...
bert hubert [Sun, 11 Sep 2016 18:40:44 +0000 (20:40 +0200)]
eleksir noted that we leak a ton of memory in postgresql. I'm no postgres expert, but this plugs my leak and still appears to function. In other news, do we need a transaction for every query?

(cherry-picked from master 903bb4924bc5130c0e81f0c5759d0177f53e82fd)

8 years agodisable negative getSOA caching if the negcache_ttl is 0
Kees Monshouwer [Sat, 17 Sep 2016 22:28:41 +0000 (00:28 +0200)]
disable negative getSOA caching if the negcache_ttl is 0

8 years agofix up packetcache not to use constexpr which upset clang (perhaps it is right)
bert hubert [Thu, 29 Sep 2016 17:51:34 +0000 (19:51 +0200)]
fix up packetcache not to use constexpr which upset clang (perhaps it is right)

8 years agodocument cache cleaning rate adjustment, plus switch to symbolic names for limits
bert hubert [Thu, 29 Sep 2016 15:23:42 +0000 (17:23 +0200)]
document cache cleaning rate adjustment, plus switch to symbolic names for limits

8 years agoadaptive packetcache cleaning interval
Kees Monshouwer [Tue, 27 Sep 2016 08:55:47 +0000 (10:55 +0200)]
adaptive packetcache cleaning interval

8 years agoremove some outdated comments in packetcache.cc
Kees Monshouwer [Mon, 26 Sep 2016 18:31:22 +0000 (20:31 +0200)]
remove some outdated comments in packetcache.cc

8 years agoremove unnecessary locking in packetcache
Kees Monshouwer [Mon, 26 Sep 2016 18:30:20 +0000 (20:30 +0200)]
remove unnecessary locking in packetcache

8 years agoupdate packetcache size in insert()
Kees Monshouwer [Mon, 26 Sep 2016 18:28:27 +0000 (20:28 +0200)]
update packetcache size in insert()

8 years agoMerge pull request #4452 from pieterlexis/backport-4319
Pieter Lexis [Wed, 28 Sep 2016 11:42:51 +0000 (13:42 +0200)]
Merge pull request #4452 from pieterlexis/backport-4319

Backport #4319: pipe: SERVFAIL when needed:

8 years agoMerge pull request #4453 from pieterlexis/backport-4442
Pieter Lexis [Wed, 28 Sep 2016 11:42:45 +0000 (13:42 +0200)]
Merge pull request #4453 from pieterlexis/backport-4442

Backport #4442: geoipbackend: Fix minor naming issue

8 years agoMerge pull request #4451 from pieterlexis/backport-4407
bert hubert [Sun, 11 Sep 2016 19:10:28 +0000 (21:10 +0200)]
Merge pull request #4451 from pieterlexis/backport-4407

Backport #4407: Fix warning: types may not be defined in a for-range-declaration

8 years agoMerge pull request #4454 from pieterlexis/backport-4371
bert hubert [Sun, 11 Sep 2016 19:10:03 +0000 (21:10 +0200)]
Merge pull request #4454 from pieterlexis/backport-4371

pdnsutil: create-slave-zone accept multiple masters

8 years agopdnsutil: create-slave-zone accept multiple masters
Hannu Ylitalo [Sat, 27 Aug 2016 08:22:03 +0000 (11:22 +0300)]
pdnsutil: create-slave-zone accept multiple masters

(cherry picked from commit af3a3769097ed43b8a1ebc623a6697f668f9f4c5)

8 years agogeoipbackend: Fix minor naming issue
Aki Tuomi [Thu, 8 Sep 2016 09:15:05 +0000 (12:15 +0300)]
geoipbackend: Fix minor naming issue

(cherry picked from commit d0f81f040c6ef6dfc6d84471c084a1a86ce18e4e)

8 years agoFix warning: types may not be defined in a for-range-declaration
Christian Hofstaedtler [Fri, 2 Sep 2016 19:52:36 +0000 (21:52 +0200)]
Fix warning: types may not be defined in a for-range-declaration

As emitted by gcc 6.2.0 20160830 (Debian 6.2.0-2)

(cherry picked from commit 8ce9e4e67dbe8ce2cf546f5f549c3fb638946c56)

8 years agopipe: SERVFAIL when needed:
Pieter Lexis [Tue, 16 Aug 2016 13:51:47 +0000 (15:51 +0200)]
pipe: SERVFAIL when needed:

 * SERVFAIL, but don't restart the coprocess if we get a FAIL.
 * SERVFAIL if the coprocess sends something we don't understand.
   * In this case, restart the coprocess.

Closes #4308

(cherry picked from commit 6e0daabf5d93bd240c4c3a5ba5afcb843686f3b8)

8 years agoMerge pull request #4410 from pieterlexis/auth-4.0-autoconf-modules-no
Pieter Lexis [Mon, 5 Sep 2016 14:06:33 +0000 (16:06 +0200)]
Merge pull request #4410 from pieterlexis/auth-4.0-autoconf-modules-no

Backport #4405: allow --without-modules

8 years agoMerge pull request #4421 from pieterlexis/auth-backport-4403
Pieter Lexis [Mon, 5 Sep 2016 14:06:26 +0000 (16:06 +0200)]
Merge pull request #4421 from pieterlexis/auth-backport-4403

Backport #4403: (auth) Fix build with OpenSSL 1.1.0 final

8 years agoMerge pull request #4423 from pieterlexis/backport-4306
Pieter Lexis [Mon, 5 Sep 2016 14:06:19 +0000 (16:06 +0200)]
Merge pull request #4423 from pieterlexis/backport-4306

Backport #4306: limit size of mysql cell to 128 kilobytes

8 years agolimit size of mysql cell to 128 kilobytes
Peter van Dijk [Thu, 11 Aug 2016 14:45:22 +0000 (16:45 +0200)]
limit size of mysql cell to 128 kilobytes

(cherry picked from commit 9acd983b8de33c3d2d70a8cb0c9e3bdc2adca7a9)

8 years agoBump version requirement for CRYPTO_ctr128_encrypt
Christian Hofstaedtler [Fri, 2 Sep 2016 19:55:52 +0000 (21:55 +0200)]
Bump version requirement for CRYPTO_ctr128_encrypt

While CRYPTO_ctr128_encrypt should be available in 1.0.1,
apparently in some library builds (Ubuntu) one can not link
against it.

(cherry picked from commit 3e4b01664660f1a8d9564508843a7e51b8f7549e)

8 years agoFix build with OpenSSL 1.1.0 final
Christian Hofstaedtler [Fri, 2 Sep 2016 12:06:35 +0000 (12:06 +0000)]
Fix build with OpenSSL 1.1.0 final

Where aes.h apparently no longer includes opensslv.h.

(cherry picked from commit e6fc073faf3b1d9b4da301821da40dff33186057)

8 years agoAuth: allow --with-(dyn-)modules=no
Pieter Lexis [Fri, 2 Sep 2016 13:38:47 +0000 (15:38 +0200)]
Auth: allow --with-(dyn-)modules=no

Fixes #4399

8 years agoAuth: remove unused AC_DEFINE
Pieter Lexis [Fri, 2 Sep 2016 07:32:58 +0000 (09:32 +0200)]
Auth: remove unused AC_DEFINE

8 years agoauth: remove autoconf leftover from before the split
Pieter Lexis [Fri, 2 Sep 2016 07:31:57 +0000 (09:31 +0200)]
auth: remove autoconf leftover from before the split

8 years agoMerge pull request #4393 from rgacogne/dnsdist-110-beta-changelog
Pieter Lexis [Thu, 1 Sep 2016 12:48:31 +0000 (14:48 +0200)]
Merge pull request #4393 from rgacogne/dnsdist-110-beta-changelog

dnsdist: Update ChangeLog for 1.1.0-beta1

8 years agodnsdist: Update ChangeLog for 1.1.0-beta1
Remi Gacogne [Thu, 1 Sep 2016 12:34:46 +0000 (14:34 +0200)]
dnsdist: Update ChangeLog for 1.1.0-beta1

8 years agoMerge pull request #4346 from mind04/anytotcp dnsdist-1.1.0-beta1
Pieter Lexis [Thu, 1 Sep 2016 09:38:03 +0000 (11:38 +0200)]
Merge pull request #4346 from mind04/anytotcp

change default for any-to-tcp to yes

8 years agoMerge pull request #4305 from rgacogne/dnsdist-lua-anon
bert hubert [Wed, 31 Aug 2016 14:48:04 +0000 (16:48 +0200)]
Merge pull request #4305 from rgacogne/dnsdist-lua-anon

dnsdist: Add an optional Lua callback for altering a Protobuf message

8 years agoMerge pull request #4350 from rgacogne/rec-tcp-gettag
bert hubert [Wed, 31 Aug 2016 14:44:05 +0000 (16:44 +0200)]
Merge pull request #4350 from rgacogne/rec-tcp-gettag

rec: Call `gettag()` for TCP queries

8 years agoMerge pull request #4380 from rgacogne/dnsdist-clang-ebpf
bert hubert [Wed, 31 Aug 2016 14:43:40 +0000 (16:43 +0200)]
Merge pull request #4380 from rgacogne/dnsdist-clang-ebpf

dnsdist: Fix compilation with clang when eBPF support is enabled

8 years agoMerge pull request #4387 from pieterlexis/port-overflow
bert hubert [Wed, 31 Aug 2016 14:42:49 +0000 (16:42 +0200)]
Merge pull request #4387 from pieterlexis/port-overflow

ComboAddress: don't allow invalid ports

8 years agoMerge pull request #4379 from sspans/patch-1
bert hubert [Wed, 31 Aug 2016 14:28:25 +0000 (16:28 +0200)]
Merge pull request #4379 from sspans/patch-1

Update notrack rules

8 years agoComboAddress: don't allow invalid ports
Pieter Lexis [Wed, 31 Aug 2016 13:30:30 +0000 (15:30 +0200)]
ComboAddress: don't allow invalid ports

Add tests for this.

Fixes: #4382
8 years agodnsdist: Fix warnings when compiling with clang
Remi Gacogne [Tue, 30 Aug 2016 08:41:07 +0000 (10:41 +0200)]
dnsdist: Fix warnings when compiling with clang

8 years agoremove hash signs
Sten Spans [Tue, 30 Aug 2016 06:51:04 +0000 (08:51 +0200)]
remove hash signs

As requested by @ahupowerdns, to make copy-pasting easier.

8 years agoUpdate notrack rules
Sten Spans [Tue, 30 Aug 2016 06:42:22 +0000 (08:42 +0200)]
Update notrack rules

* switch from NOTRACK to CT target (deprecated around 2012)
* add output accept for sport 53
* describe firewalld configuration for newer centos/fedora/redhat versions

```
Date: Thu, 20 Dec 2012 12:26:22 +0100
Subject: [PATCH] netfilter: xt_CT: recover NOTRACK target support

Florian Westphal reported that the removal of the NOTRACK target
(9655050 netfilter: remove xt_NOTRACK) is breaking some existing
setups.

That removal was scheduled for removal since long time ago as
described in Documentation/feature-removal-schedule.txt
```

https://patchwork.ozlabs.org/patch/207653/

8 years agodnsdist: Fix compilation with clang when eBPF is enabled
Remi Gacogne [Mon, 29 Aug 2016 15:54:03 +0000 (17:54 +0200)]
dnsdist: Fix compilation with clang when eBPF is enabled

8 years agoMerge pull request #4359 from pieterlexis/doc-fixes
Pieter Lexis [Mon, 29 Aug 2016 15:49:38 +0000 (17:49 +0200)]
Merge pull request #4359 from pieterlexis/doc-fixes

Several documentation fixes

8 years agoMerge pull request #4368 from rgacogne/rec-more-lua-bindings
Pieter Lexis [Mon, 29 Aug 2016 15:49:29 +0000 (17:49 +0200)]
Merge pull request #4368 from rgacogne/rec-more-lua-bindings

rec: Fix doc for ComboAddress/Netmask Lua bindings, add missing ones

8 years agoMerge pull request #4376 from rgacogne/rec-uninit-policy
Pieter Lexis [Mon, 29 Aug 2016 15:49:21 +0000 (17:49 +0200)]
Merge pull request #4376 from rgacogne/rec-uninit-policy

rec: fix the use of an uninitialized filtering policy

8 years agoDocument config-dir in the manpage better
Pieter Lexis [Mon, 29 Aug 2016 13:09:53 +0000 (15:09 +0200)]
Document config-dir in the manpage better

Closes #4372

8 years agorec: document edns-subnet-whitelist
Pieter Lexis [Tue, 23 Aug 2016 15:50:27 +0000 (17:50 +0200)]
rec: document edns-subnet-whitelist

Closes #4275

8 years agoRec: Fully document loglevel
Pieter Lexis [Tue, 23 Aug 2016 15:42:27 +0000 (17:42 +0200)]
Rec: Fully document loglevel

closes #4209

8 years agorec: fix the use of an uninitialized filtering policy
Remi Gacogne [Mon, 29 Aug 2016 09:52:00 +0000 (11:52 +0200)]
rec: fix the use of an uninitialized filtering policy

If `wantsRPZ` is set to false by the `prerpz` hook, `dfepol` might
not be correctly initialized. This leads to `appliedPolicy` not being
either before being passed to `preresolve` and `postresolve`.

Reported by Coverity.

8 years agoMerge pull request #4365 from rgacogne/dnsdist-outstanding-race
Remi Gacogne [Mon, 29 Aug 2016 09:10:54 +0000 (11:10 +0200)]
Merge pull request #4365 from rgacogne/dnsdist-outstanding-race

dnsdist: Reset origFD asap to keep the outstanding count correct

8 years agoMerge pull request #4348 from rgacogne/dnsdist-outstanding-xfr
Remi Gacogne [Mon, 29 Aug 2016 09:10:23 +0000 (11:10 +0200)]
Merge pull request #4348 from rgacogne/dnsdist-outstanding-xfr

dnsdist: Fix invalid outstanding count for {A,I}XFR over TCP

8 years agoMerge pull request #4375 from rgacogne/dnsdist-dynbpf-tuple-rga
Remi Gacogne [Mon, 29 Aug 2016 09:07:02 +0000 (11:07 +0200)]
Merge pull request #4375 from rgacogne/dnsdist-dynbpf-tuple-rga

dnsdist: tuple requires make_tuple to initialize

8 years agodnsdist: tuple requires make_tuple to initialize
Remi Gacogne [Fri, 26 Aug 2016 15:52:48 +0000 (17:52 +0200)]
dnsdist: tuple requires make_tuple to initialize

Fix compilation on Ubuntu Xenial.
Reported by Christof Chen (thanks!).

8 years agoAdd recursor 4.0.2 secpoll
Pieter Lexis [Fri, 26 Aug 2016 13:23:09 +0000 (15:23 +0200)]
Add recursor 4.0.2 secpoll

Thanks @zaphodb for noticing

8 years agoslightly improve 4.0.2 recursor release notes
bert hubert [Fri, 26 Aug 2016 10:30:05 +0000 (12:30 +0200)]
slightly improve 4.0.2 recursor release notes

8 years agoMerge pull request #4364 from pieterlexis/rec-4.0.2-changelog rec-4.0.2
Pieter Lexis [Fri, 26 Aug 2016 10:19:24 +0000 (12:19 +0200)]
Merge pull request #4364 from pieterlexis/rec-4.0.2-changelog

Add Recursor 4.0.2 changelog

8 years agoAdd Recursor 4.0.2 changelog
Pieter Lexis [Thu, 25 Aug 2016 09:54:29 +0000 (11:54 +0200)]
Add Recursor 4.0.2 changelog

8 years agodoc: Clarify `gettag()` use, `dq`'s `addPolicyTag()`, `{get,set}PolicyTags()`
Remi Gacogne [Mon, 22 Aug 2016 16:12:32 +0000 (18:12 +0200)]
doc: Clarify `gettag()` use, `dq`'s `addPolicyTag()`, `{get,set}PolicyTags()`

8 years agorec: Call `gettag()` for TCP queries
Remi Gacogne [Mon, 22 Aug 2016 14:15:12 +0000 (16:15 +0200)]
rec: Call `gettag()` for TCP queries

The `gettag()` hook used to be called to set a tag for the packet cache
and hence it did not make sense to call it for TCP queries, but now it
can also be used to policy tags.

8 years agorec: Fix doc for ComboAddress/Netmask Lua bindings, add missing ones
Remi Gacogne [Fri, 26 Aug 2016 10:06:17 +0000 (12:06 +0200)]
rec: Fix doc for ComboAddress/Netmask Lua bindings, add missing ones

8 years agoMerge pull request #4324 from rgacogne/lua-RPZ-discard-rebased
bert hubert [Fri, 26 Aug 2016 10:06:27 +0000 (12:06 +0200)]
Merge pull request #4324 from rgacogne/lua-RPZ-discard-rebased

Allow Lua access to the result of the Policy Engine decision, skip RPZ

8 years agoMerge pull request #3 from pieterlexis/lua-RPZ-discard-rebased-doc-update
Remi Gacogne [Fri, 26 Aug 2016 08:22:52 +0000 (10:22 +0200)]
Merge pull request #3 from pieterlexis/lua-RPZ-discard-rebased-doc-update

The return value for prerpz is unused

8 years agoThe return value for prerpz is unused
Pieter Lexis [Fri, 26 Aug 2016 08:16:38 +0000 (10:16 +0200)]
The return value for prerpz is unused

8 years agodnsdist: Add an optional Lua callback for altering a Protobuf message
Remi Gacogne [Fri, 26 Aug 2016 07:53:24 +0000 (09:53 +0200)]
dnsdist: Add an optional Lua callback for altering a Protobuf message

For anonymization purposes, for example.

8 years agorec: The prerpz hook didn't return anything when compiled w/o Lua
Remi Gacogne [Fri, 26 Aug 2016 07:50:01 +0000 (09:50 +0200)]
rec: The prerpz hook didn't return anything when compiled w/o Lua

8 years agodnsdist: Reset origFD asap to keep the outstanding count correct
Remi Gacogne [Thu, 25 Aug 2016 15:15:54 +0000 (17:15 +0200)]
dnsdist: Reset origFD asap to keep the outstanding count correct

Previously the health check thread waited until we had finished
with the IDState to set `origFD` to -1, but:
* for the UDP client thread, the only difference it makes is that
`outstanding` will not be incremented if `origFD` is not -1,
which is not what we want since we are going to decrement it
* for the UDP responder thread, it actually increases the
likelihood of decrementing `outstanding` twice, once in the
responder threader and once in the health check thread.

This was especially likely to be an issue because the health check
thread used to call `gettime()` and to acquire a mutex before
setting `origFD` to -1.

8 years agoMerge pull request #4360 from 42wim/systemd
Pieter Lexis [Thu, 25 Aug 2016 13:57:02 +0000 (15:57 +0200)]
Merge pull request #4360 from 42wim/systemd

Make sure mariadb (mysql on centos/rhel) is started before pdns

8 years agoMerge pull request #4356 from rgacogne/auth-nocachelookup-tsig
Pieter Lexis [Thu, 25 Aug 2016 13:56:52 +0000 (15:56 +0200)]
Merge pull request #4356 from rgacogne/auth-nocachelookup-tsig

auth: Don't look up the packet cache for TSIG-enabled queries

8 years agofix subtle bug in findNamedPolicy
Pieter Lexis [Tue, 23 Aug 2016 07:41:18 +0000 (09:41 +0200)]
fix subtle bug in findNamedPolicy

8 years agoRevert "Recursor: Always log EDNS clientsubnet in trace"
Remi Gacogne [Tue, 23 Aug 2016 07:14:36 +0000 (09:14 +0200)]
Revert "Recursor: Always log EDNS clientsubnet in trace"

This reverts commit 601b188c559fb9d58392bc2115ddd583225ee52c.

`dc->d_ednssubnet` is only available when protobuf support is enabled.

8 years agorec: Fix rec_control man page tests
Remi Gacogne [Tue, 16 Aug 2016 15:55:34 +0000 (17:55 +0200)]
rec: Fix rec_control man page tests

8 years agoFix counting of `rec_control help` elements and grep syntax
Remi Gacogne [Tue, 16 Aug 2016 15:35:40 +0000 (17:35 +0200)]
Fix counting of `rec_control help` elements and grep syntax

8 years agoRecursor config for the regression tests is still in configs
Remi Gacogne [Tue, 16 Aug 2016 14:27:18 +0000 (16:27 +0200)]
Recursor config for the regression tests is still in configs

8 years agoFix hardcoded prefix in auth-zone-delegation test
Remi Gacogne [Tue, 16 Aug 2016 10:00:17 +0000 (12:00 +0200)]
Fix hardcoded prefix in auth-zone-delegation test

8 years agoActually fail on failed recursor tests
Remi Gacogne [Mon, 15 Aug 2016 13:28:24 +0000 (15:28 +0200)]
Actually fail on failed recursor tests

8 years agoFix hardcoded prefix in lowercase-outgoing test
Remi Gacogne [Mon, 15 Aug 2016 12:48:34 +0000 (14:48 +0200)]
Fix hardcoded prefix in lowercase-outgoing test

8 years agorecursor regression tests: have the socket live in /tmp
Pieter Lexis [Mon, 15 Aug 2016 09:32:41 +0000 (11:32 +0200)]
recursor regression tests: have the socket live in /tmp

8 years agoRecursor tests: we use bashisms now
Pieter Lexis [Mon, 15 Aug 2016 09:29:11 +0000 (11:29 +0200)]
Recursor tests: we use bashisms now

8 years agoRecursor tests: Fail on failed tests
Pieter Lexis [Mon, 15 Aug 2016 09:28:43 +0000 (11:28 +0200)]
Recursor tests: Fail on failed tests

8 years agoAdd regression tests for prerpz
Remi Gacogne [Mon, 15 Aug 2016 08:51:00 +0000 (10:51 +0200)]
Add regression tests for prerpz

8 years agoAdd documentation for the `prerpz` hook
Remi Gacogne [Mon, 15 Aug 2016 08:15:17 +0000 (10:15 +0200)]
Add documentation for the `prerpz` hook

8 years ago`protobufLogQuery()` never actually gets an applied policy
Remi Gacogne [Mon, 15 Aug 2016 08:01:45 +0000 (10:01 +0200)]
`protobufLogQuery()` never actually gets an applied policy

8 years agoMinor indentation fixes in `loadRecursorLuaConfig()`
Remi Gacogne [Mon, 15 Aug 2016 07:35:10 +0000 (09:35 +0200)]
Minor indentation fixes in `loadRecursorLuaConfig()`

8 years agorec: Add a 'prerpz' hook to be able to discard selected RPZ policies
Remi Gacogne [Fri, 12 Aug 2016 16:35:08 +0000 (18:35 +0200)]
rec: Add a 'prerpz' hook to be able to discard selected RPZ policies

8 years agoRPZ: Tests for wantsRPZ override, NSDNAME and NSIP
Pieter Lexis [Wed, 27 Jul 2016 21:03:20 +0000 (23:03 +0200)]
RPZ: Tests for wantsRPZ override, NSDNAME and NSIP

8 years agoRPZ: Implement NSDNAME and NSIP RPZ capabilities
Pieter Lexis [Wed, 27 Jul 2016 20:34:08 +0000 (22:34 +0200)]
RPZ: Implement NSDNAME and NSIP RPZ capabilities

Closes #2897

This also adds an extra bool 'wantsRPZ' to the Lua engine so RPZ
processing can be disabled for queries (Closes #4226).

Furthermore, IPv6 for RPZ is implemented.

8 years agoRPZ: Add metrics for the Policy Engine
Pieter Lexis [Wed, 27 Jul 2016 13:11:37 +0000 (15:11 +0200)]
RPZ: Add metrics for the Policy Engine

Closes #2895

8 years agoRPZ tests: add test for #4086
Pieter Lexis [Wed, 27 Jul 2016 10:44:09 +0000 (12:44 +0200)]
RPZ tests: add test for #4086

8 years agoAdd RPZ lua tests
Pieter Lexis [Tue, 26 Jul 2016 13:54:38 +0000 (15:54 +0200)]
Add RPZ lua tests

8 years agoAdd basic RPZ tests
Pieter Lexis [Tue, 26 Jul 2016 12:02:33 +0000 (14:02 +0200)]
Add basic RPZ tests

8 years agoAllow Lua to modify the RPZ decision
Pieter Lexis [Fri, 22 Jul 2016 18:56:44 +0000 (20:56 +0200)]
Allow Lua to modify the RPZ decision

in preResolve() and postResolve(), the user can now modify the whole
appliedPolicy. For clarity, the appliedPolicy elements have been named
policySomething. one can set the policyKind with the helper
pdns.policykinds.Name.

When the query is not marked as 'handled' by the Lua function, the
(possibly modified) policy is applied to the query.

8 years agoRPZ: Always set the policy name
Pieter Lexis [Fri, 22 Jul 2016 19:14:47 +0000 (21:14 +0200)]
RPZ: Always set the policy name

For slaved zones, set it to the name of the zone by default. For
file-based RPZs, use "rpzFile";

8 years agoRPZ: filter correctly by name
Pieter Lexis [Tue, 26 Jul 2016 11:48:01 +0000 (13:48 +0200)]
RPZ: filter correctly by name

Closes #4086

8 years agopdns_recursor.cc: Move comment to the right place
Pieter Lexis [Fri, 22 Jul 2016 18:49:39 +0000 (20:49 +0200)]
pdns_recursor.cc: Move comment to the right place

8 years agoRecursor: Always log EDNS clientsubnet in trace
Pieter Lexis [Fri, 22 Jul 2016 17:42:41 +0000 (19:42 +0200)]
Recursor: Always log EDNS clientsubnet in trace