DNS RPZ介紹
TWNIC
2021/9/28
1
內容
2
TWNIC簡介
3
什麼是DNS
DNS的重要性
為什麼要有DNS黑名單
6
為什麼要有DNS黑名單(續)
7
*1 Cisco 2016 security report�*2 https://www.ixresearch.com/reports/%E7%A0%94%E7%A9%B6%E6%A1%88%E4%BE%8B-%E5%B0%8F%E8%AA%BF%E6%9F%A5/
傳統作法
8
什麼是RPZ
9
RPZ運作方式
10
RPZ的好處
11
RPZ標準
12
各產品支援程度
13
Vendor | Product | Notes |
AnswerX Cloud (deployed all over the world) and AnswerX License (rack and stack on Unix or VMs) can pull in multiple RPZ threat feed. Each RPZ threat feed can be applied to multiple “services,” nested workflows, or merged into a master RPZ feed. | ||
BlueCat provides both their own protection policies for customers as well as the ability for customers to add their own zones. | ||
SolidServer allows incorporation of external policies through a GUI | ||
The DNS engine is based on BIND 9 (with enhancements). Add providers or manage your own list with a GUI. | ||
RPZ support is included in BIND version 9.8 and later. | ||
policy.rpz module | Partial support | |
PowerDNS Recursor 4.0.0 | |
Source: https://dnsrpz.info/
資源消耗情況
14
使用DNS RPZ的法源基礎
15
網域名稱進入RPZ的三種情況
16
| 情況一 | 情況二 | 情況三 |
情況 | 網域名稱係法院判決/裁定或行政機關行政命令移除 | 網域名稱為經法院或行政機關認定違法者 | 網域名稱系有資安疑慮且影響資安重大者 |
性質 | 依據法律移除 | 法律認定違法自願移除 | 法律認定關鍵基礎設施有維護資安的義務自願移除 |
情況一:法院判決/裁定
17
情況二
18
情況三
19
如何設定TWNIC DNS RPZ
20
BIND設定 (named.conf)
options {
response-policy {
zone “rpztw”;
};
};
zone “rpztw” {
type slave;
file “rpztw”;
masters {
35.221.136.32;
};
allow-query {
localhost;
};
};
key "rpztw" {
algorithm hmac-sha512;
secret "ilbWTAZ4Nvip4SHP82x1B+aSiMHFbS80+qXBkDtuYDHdf5LtEG1t1sRlGL7MpUAlCDmNJsznALk6ivxm6EtPvA==";
};
server 35.221.136.32 {
keys { "rpztw"; };
};
21
BIND設定
key "rpztw-sha256" {
algorithm hmac-sha256;
secret “n6MGuHTZI7z26MDmksLkHJwYxb5x5b3O84LAHqRnNNo=";
};
如何作一個RPZ master zone
23
RPZ zone file範例
$TTL 300
@ IN SOA localhost. This.is.an.infringing.website 1618646406 60 60 86400 60
IN NS localhost.
wordtheminer.com IN CNAME .
akams.live IN CNAME .
categery.com IN CNAME .
32.97.41.64.97.rpz-ip IN CNAME .
32.200.44.90.97.rpz-ip IN CNAME .
32.154.75.126.98.rpz-ip IN CNAME .
24
解析結果範例
25
對某個域名不解析(查不到IP)
26
改變原有解析結果(IP導向)
27
對某一解析出來的IP進行處理
28
IPv6的寫法
29
處理某一部或多部nameserver的解析
30
封鎖特定Client IP/網段的解析結果
31
RPZ Action
32
Q & A
33