「Cloudflared」の版間の差分
ナビゲーションに移動
検索に移動
Kusanaginoturugi (トーク | 投稿記録) |
(→設定) |
||
20行目: | 20行目: | ||
}} |
}} |
||
+ | == チェック == |
||
− | [https://developers.cloudflare.com/1.1.1.1/1.1.1.1-for-families/setup-instructions/dns-over-https/ upstream documentation], にあるように、利用可能なエンドポイントは以下の通りです: |
||
+ | |||
+ | [https://1.1.1.1/help 1.1.1.1/help] を使用して、ブラウザーが ''CloudFlare Doh'' を使用しているかどうかを確認します。 |
||
+ | |||
+ | == エンドポイント == |
||
+ | |||
+ | デフォルトでは、Cloudflared は Cloudflare の DNS サーバー (IPv4 アドレス:1.1.1.1 および 1.0.0.1) を上流エンドポイント URL として使用します。 |
||
+ | |||
+ | 異なる上流エンドポイント URL を指定する場合は、--upstream オプションを使用できます。 |
||
+ | |||
+ | 上流ドキュメントによると、利用可能なエンドポイントは次のとおりです: |
||
{{Tip|[[cURL]] のドキュメントで、代替の公開された [https://github.com/curl/curl/wiki/DNS-over-HTTPS endpoints] のリストが維持されています}} |
{{Tip|[[cURL]] のドキュメントで、代替の公開された [https://github.com/curl/curl/wiki/DNS-over-HTTPS endpoints] のリストが維持されています}} |
||
+ | |||
{| class="wikitable sortable" style="text-align: center;" |
{| class="wikitable sortable" style="text-align: center;" |
||
! class="unsortable" | エンドポイント |
! class="unsortable" | エンドポイント |
2025年2月2日 (日) 18:34時点における版
Cloudflared は、ローカルの DNS over HTTPS サーバー (DoH) 、すなわちスタブリゾルバを実行できます。
インストール
cloudflared または cloudflared-binAUR パッケージを インストール してください。
設定
以下のファイルを作成し、<endpoint>
を優先するエンドポイントに置き換えます。
/etc/cloudflared/config.yml
proxy-dns: true proxy-dns-upstream: - <endpoint> - <endpoint> - <endpoint> proxy-dns-port: 53 proxy-dns-address: 0.0.0.0
チェック
1.1.1.1/help を使用して、ブラウザーが CloudFlare Doh を使用しているかどうかを確認します。
エンドポイント
デフォルトでは、Cloudflared は Cloudflare の DNS サーバー (IPv4 アドレス:1.1.1.1 および 1.0.0.1) を上流エンドポイント URL として使用します。
異なる上流エンドポイント URL を指定する場合は、--upstream オプションを使用できます。
上流ドキュメントによると、利用可能なエンドポイントは次のとおりです:
エンドポイント | 説明 |
---|---|
- https://1.0.0.1/dns-query - https://1.1.1.1/dns-query - https://2606:4700:4700::1111/dns-query - https://2606:4700:4700::1001/dns-query |
標準 |
- https://security.cloudflare-dns.com/dns-query |
標準、マルウェアをブロック |
- https://family.cloudflare-dns.com/dns-query |
標準、マルウェアやポルノをブロック |
- https://9.9.9.9/dns-query |
Quad9 |
使い方
cloudflared
を直接実行するか、systemd サービス を作成して Cloudflared を実行します。