Skip to content
Discussion options

You must be logged in to vote

There are a few things wrong:

  1. In the RPZ zone itself the # comments will cause a syntax error. Use ;; for comments in zone files.
  2. The Lua script is not needed, RPZ are handled without the need for any custom Lua. Y
  3. If you want to use the actions defined the RPZ itself, do not set defpol and defpolOverrideLocalData. Leave them both out.

With that it works here. Example dig output:

; <<>> DiG 9.20.8 <<>> @127.0.0.1 -p 5301 malicious.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 50572
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 2

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTIO…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@liudonghua123
Comment options

Answer selected by omoerbeek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants