Repository navigation
fix(adguardhome): 外からの平文 DNS(53)を Cilium のポリシーで捨てる - #644
Merged
Merged
Conversation
DMZ で外に出ていた 53 番が、送信元を偽装した DNS の増幅攻撃の踏み台に 使われていた(`xxx.heimaoip.com` の TXT が 1 日 90 万件、全問い合わせの 89%)。 平文の DNS を使うのは家の LAN・Pod・NetBird だけなので、プライベートの アドレス以外からの 53 番を Pod の手前で捨てる。DoT(853)と DoH は外から 使っているので絞らない。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T9PbUfqG4pPxus99UeLiJs
|
Claude finished @5ym's task in 24s —— View job レビュー結果方針(53 番だけを Cilium の 指摘は 1 件だけです。 要確認: LAN 端末が IPv6 のグローバルアドレスで 53 番に来るケース (
|
|
Hi! I'm independently investigating the I was wondering about a few details:
No sensitive data needed, of course. Even a small anonymized measurement would be very helpful. Thanks for documenting this! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
なぜ
AdGuard Home の 53 番が DMZ で外に出ていて、DNS の増幅攻撃の踏み台に使われていた。
xxx.heimaoip.comの TXT(返事は数 KB)何を変えたか
apps/adguardhome/network-policy.yaml: プライベートのアドレス(10/8・172.16/12・192.168/16・NetBird の 100.64/10・fc00::/7・fe80::/10)以外からの 53 番をingressDenyで捨てる。拒否だけだと Pod が既定拒否になるので、全部を通すingressと組にしている。CIDR の規則はクラスタの中(Pod・ノード)には当たらないallowed_clientsで絞らないのは、DoT・DoH にも効いて外の端末が使えなくなるためdocs/router.mdの「53 番は外にも開けている(意図して)」を「53 番は外に出さない」に書き換えた確かめること(マージ後)
heimaoipが止まり、10.x からの問い合わせは答えが返っている🤖 Generated with Claude Code
https://claude.ai/code/session_01T9PbUfqG4pPxus99UeLiJs