Skip to content

请教一下PaoPaoDNS内的mosdns配置 #17

Answered by kkkgo
xxllllll asked this question in 问答和帮助
Discussion options

You must be logged in to vote

我没使用过blackhole功能,根据你的描述,以下是参考的配置,你可以测试一下。需要注意的是,修改/data/下面的mosdns.yaml需要重启容器才生效。
https://github.com/kkkgo/PaoPaoDNS/blob/679f3b0bbcb8e71ebfe6eec03c6b41d9f8e908cd/src/mosdns.yaml#L112C1-L114
此处假设cf的ip是 104.21.21.239 172.67.201.108,需要balckhold的IP是1.2.3.4。

        - matches: resp_ip_mmdb $cnip CN
          exec: accept
        - matches: resp_ip 104.21.21.239 172.67.201.108
          exec: black_hole 1.2.3.4
        - matches: resp_ip 1.2.3.4
          exec: accept
        - exec: drop_resp 

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

Comment options

You must be logged in to vote
0 replies
Answer selected by kkkgo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants