Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unbound 1.13.1 rpz-ip with ‘cname rpz-drop.’ and rpz-ip with "rpz-action-override: drop" can't take effect #580

Open
siwangqishidk opened this issue Dec 2, 2021 · 0 comments

Comments

@siwangqishidk
Copy link

siwangqishidk commented Dec 2, 2021

Hey Guys ,I meet a problem.help me please.

Describe the bug

rpz:
name: xxx
zonefile: /etc/unbound/zone/xxx
cat /etc/unbound/zone/xxx
32.24.10.68.1.rpz-ip IN CNAME rpz-drop.

To reproduce
Steps to reproduce the behavior:

  1. Configure iteration server
  2. use dig to send request and return www.mmm.com A 1.68.10.24
  3. I configure ”32.24.10.68.1.rpz.ip CNAME rpz.drop. “ in /etc/unbound/zone/xxx
  4. use dig to send request again and also return www.mmm.com A 1.68.10.24
  5. open rpz-log . Can see it.
    info: RPZ applied [xxx] 1.68.10.24/32 drop 169.254.1.1@54743 www.mmm.com. A IN
  6. I change rpz.drop. to . or *. 。 They can take effect and return NXDOMAIN or NODATA,so I think rpz.drop has wrong behavior.

Expected behavior
RPZ-DROP would be same as drop that local-data use.

System: linux

  • Unbound version: 1.13.1
  • OS:Linux localhost-8 4.9.230 Allow suppression of pidfiles. #1 SMP Thu Jul 29 19:22:53 CST 2021 x86_64 Intel(R) Core(TM)2 Duo CPU T7700 @ 2.40GHz GenuineIntel GNU/Linux
  • unbound -V output: Version 1.13.1

Configure line: --enable-cachedb --with-libhiredis --with-libevent --enable-subnet
Linked libs: libevent 2.0.21-stable (it uses epoll), OpenSSL 1.0.1c 10 May 2012
Linked modules: respip subnetcache iterator

BSD licensed, see LICENSE in source package for details.
Report bugs to unbound-bugs@nlnetlabs.nl or https://github.com/NLnetLabs/unbound/issues

Additional information
Add any other information that you may have gathered about the issue here.

@siwangqishidk siwangqishidk changed the title unbound 1.13.1 rpz-ip can't use rpz-drop and "rpz-action-override: drop" can't take effect unbound 1.13.1 rpz-ip with ‘cname rpz-drop.’ and "rpz-ip“ with "rpz-action-override: drop" can't take effect Dec 2, 2021
@siwangqishidk siwangqishidk changed the title unbound 1.13.1 rpz-ip with ‘cname rpz-drop.’ and "rpz-ip“ with "rpz-action-override: drop" can't take effect unbound 1.13.1 rpz-ip with ‘cname rpz-drop.’ and rpz-ip with "rpz-action-override: drop" can't take effect Dec 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant