DNSBLバインディングを解除するスクリプトはありますか?

DNSBLバインディングを解除するスクリプトはありますか?

私は多くのDNSBLのリストを知っています(personwhocares.org, Abuse.ch, Malwaredomains.com、等...)。これらのリスト(少なくとも一部)を収集し、Unboundで利用可能なリストにコンパイルできるスクリプトを知っている人がいるかどうか疑問に思います。

だから私は次のファイルを取得します:

local-zone: "000007.ru" redirect
local-data: "000007.ru A 127.0.0.1"
local-data: "000007.ru AAAA ::1"
...
local-zone: "0.r.msn.com" redirect
local-data: "0.r.msn.com A 127.0.0.1"
local-data: "0.r.msn.com AAAA ::1"

これにより、バインドされていないインスタンスがこれらのフィールドの解析を防ぎます。毎週スクリプトを実行して更新できます。

メモ:rsync理想的には、これはより効率的な更新のためにサーバーによって提供されるファイルです。後で共有したいです。

ベストアンサー1

1. DNSゾーンブラックリストジェネレータ

名前はこの人に会いました。DNSゾーンブラックリスト説明を見ると好きなように聞こえるようです。

プロジェクトはゾーンファイルを生成します。製本DNSそして拘束されないDNS サーバーは以下を使用します。スティーブンブラック/ホストプロジェクト。ローカル DNS サーバーと組み合わせて使用​​すると、結果のゾーン ファイルを使用してネットワーク全体の広告やマルウェアをブロックできます。

このブラックリストを使用するには、次のようにします。

ダウンロード
$ git clone https://github.com/oznu/dns-zone-blacklist.git
$ cd dns-zone-blacklist
nodejsのインストール
$ npm install
ブラックリストの作成/コンパイル
$ node build.js

ビルドが完了すると、3つのディレクトリが./bind作成さ./dnsmasqれます./unbound。生成された設定ファイルはこのディレクトリunboundにあります。./unbound

$ ll unbound/
total 4852
-rw-rw-r-- 1 vagrant vagrant 3372150 Jul 16 00:15 unbound.blacklist
-rw-rw-r-- 1 vagrant vagrant      64 Jul 16 00:15 unbound.blacklist.checksum
-rw-rw-r-- 1 vagrant vagrant 1584122 Jul 16 00:15 unbound-nxdomain.blacklist
-rw-rw-r-- 1 vagrant vagrant      64 Jul 16 00:15 unbound-nxdomain.blacklist.checksum

その後、このファイルをUnbound/etc/unboundディレクトリに追加して再起動できます。

2.DNSブラックリスト

別のオプションはDNSブラックリスト。同様の手順を実行してディレクトリに配置し、提供されたgitファイル/etc/unboundを使用してunbound.conf設定します。

blackholeGitリポジトリにはシェルスクリプトを含むディレクトリがありますrun.sh。スクリプトを実行run.shしてunbound-checkconf。すべてが順調に進んだら、Unboundを再起動してください。

3. Unboundの代わりにPi-Holeを使う

ヒントですが、私が使った結果https://pi-hole.net/過去数ヶ月間、DNSレベルで広告をブロックするのは本当に簡単です。私はそれを〜$ 35 Raspberry Piで実行しており、さらにDHCP +すべての内部DNSを追加しました。

Web UIはナビゲーションが非常に簡単で、UIを介して必要なすべてのリストを追加できます。ここでは、UIに50を超えるリストを追加し、約937,000のドメインをブロックしました。

     SS1

     SS2

次のリストはデバイスのこのディレクトリに追加されます。

$ ls /etc/pihole/
adlists.list                               list.20.www.joewein.net.domains            list.3.s3.amazonaws.com.domains             list.59.v.firebog.net.domains
auditlog.list                              list.21.raw.githubusercontent.com.domains  list.40.v.firebog.net.domains               list.5.hosts-file.net.domains
black.list                                 list.22.hostsfile.org.domains              list.41.raw.githubusercontent.com.domains   list.60.v.firebog.net.domains
blacklist.txt                              list.23.someonewhocares.org.domains        list.42.raw.githubusercontent.com.domains   list.61.raw.githubusercontent.com.domains
dhcp.leases                                list.24.raw.githubusercontent.com.domains  list.43.raw.githubusercontent.com.domains   list.62.ransomwaretracker.abuse.ch.domains
GitHubVersions                             list.25.raw.githubusercontent.com.domains  list.44.raw.githubusercontent.com.domains   list.63.v.firebog.net.domains
gravity.list                               list.26.winhelp2002.mvps.org.domains       list.45.raw.githubusercontent.com.domains   list.64.raw.githubusercontent.com.domains
install.log                                list.27.hostsfile.mine.nu.domains          list.46.raw.githubusercontent.com.domains   list.65.zeustracker.abuse.ch.domains
lan.list                                   list.28.v.firebog.net.domains              list.47.raw.githubusercontent.com.domains   list.66.raw.githubusercontent.com.domains
list.0.raw.githubusercontent.com.domains   list.29.adblock.mahakala.is.domains        list.48.github.com.domains                  list.6.hosts-file.net.domains
list.10.reddestdream.github.io.domains     list.2.zeustracker.abuse.ch.domains        list.49.raw.githubusercontent.com.domains   list.7.ransomwaretracker.abuse.ch.domains
list.11.hosts-file.net.domains             list.30.adaway.org.domains                 list.4.s3.amazonaws.com.domains             list.8.v.firebog.net.domains
list.12.reddestdream.github.io.domains     list.31.v.firebog.net.domains              list.50.v.firebog.net.domains               list.9.v.firebog.net.domains
list.13.raw.githubusercontent.com.domains  list.32.s3.amazonaws.com.domains           list.51.s3.amazonaws.com.domains            list.preEventHorizon
list.14.raw.githubusercontent.com.domains  list.33.hosts-file.net.domains             list.52.mirror1.malwaredomains.com.domains  localbranches
list.15.v.firebog.net.domains              list.34.v.firebog.net.domains              list.53.hosts-file.net.domains              local.list
list.16.v.firebog.net.domains              list.35.raw.githubusercontent.com.domains  list.54.hosts-file.net.domains              localversions
list.17.sysctl.org.domains                 list.36.pgl.yoyo.org.domains               list.55.hosts-file.net.domains              logrotate
list.18.raw.githubusercontent.com.domains  list.37.raw.githubusercontent.com.domains  list.56.mirror.cedia.org.ec.domains         pihole-FTL.db
list.19.www.dshield.org.domains            list.38.v.firebog.net.domains              list.57.www.malwaredomainlist.com.domains   setupVars.conf
list.1.mirror1.malwaredomains.com.domains  list.39.v.firebog.net.domains              list.58.bitbucket.org.domains               whitelist.txt

ブラックリスト

私は始めた大規模ブラックリスト収集そしてリンクをたどり、Pi-Holeデバイスに追加したすべてのブラックリストを収集しました。

引用する

おすすめ記事