Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
「経路が無い」は「遮断」じゃなかった
Search
dctsatopy
October 30, 2026
Technology
37
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
「経路が無い」は「遮断」じゃなかった
Transit Gateway × Outound Shred VPC で起きた、意図しない折り返し通信
dctsatopy
October 30, 2026
Other Decks in Technology
See All in Technology
bpf_arenaとstruct_opsを使うのが難しかった話
masu_mi
0
220
セキュリティ専任チームなしで攻撃を先回りするSREが実践したSIEM on Amazon OpenSearch Service
cscengineer
PRO
1
710
[JAWS Festa 2026]一番いい仕事は、請求書に現れない / jawsfesta2026
sh_fk2
2
420
超⼩型・多⾔語検索モデル Bekko Embedding
hotchpotch
1
140
re:Invent2026 事前勉強会 歴史と愉しみ方10分LT編
toshi_atsumi
0
170
分析作業をどこまで任せるか自分で決められる AIネイティブBI『Golden Analytics』が 良さげな話 /golden-analytics-is-ai-native-bi
shinyaa31
0
130
AWS構成から考えるWebセキュリティ ― WordPressの構築経験から考える公開範囲と更新運用【JAWS FESTA 2026 in AKITA】
cscengineer
PRO
2
380
MCPでAIが自分で調べに行く
cdataj
0
110
TSKaigi Sendai 2026 - tsgo時代のTypeScript Playgroundはどう動くか
teamlab
PRO
0
110
Microsoft Entra Kerberos で実現するクラウド デバイス管理
tamaiyutaro
2
660
FinOpsを導入してマルチプロダクトのコスト最適化を実現する
kworkdev
PRO
0
140
公共システムAdventCalendar2026
toru_kubota
0
290
Featured
See All Featured
Game over? The fight for quality and originality in the time of robots
wayneb77
1
330
Statistics for Hackers
jakevdp
799
230k
Ruling the World: When Life Gets Gamed
codingconduct
0
440
Building Flexible Design Systems
yeseniaperezcruz
330
41k
YesSQL, Process and Tooling at Scale
rocio
174
15k
The SEO identity crisis: Don't let AI make you average
varn
0
630
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
470
The Curse of the Amulet
leimatthew05
3
17k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
1
510
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8.2k
A Soul's Torment
seathinner
8
3.9k
Transcript
Shima Tech Hub #22 見えないところも面白い!?インフラLT! 「経路が無い」は 「遮断」じゃなかった Transit Gateway Outbound
Shared VPC で起きた、 意図しない折り返し通信 AWS / Terraform ※約1年前の事例 ※CIDR はすべてダミー値です
自己紹介 大城 吏司 所属 株式会社クラフトマンソフトウェア ATOE/Nextcloud チーム 資格 2026 Japan
All AWS Certifications Engineers
構成: 6つの VPC を TGW でつなぐ ※CIDR はダミー値
通信要件: C → E は無し。だから E 宛の経路も書かない ※CIDR はダミー値
発見 試してみたら、 C から F の NAT GW まで届いた きっかけは、Blackhole
ルートで VPC 間の意図しない通信を解決した技術ブログ traceroute で F の NAT GW まで到達を確認。VPC E への到達は推測
想定経路: F の NAT GW が折り返し地点だった ※CIDR はダミー値 ※約1年前の事例。確認済みは F
の NAT GW まで。以降は推測
対策: C の TGW RT に E 宛の Blackhole を追加
※CIDR はダミー値
Terraform 例: blackhole = true の 1 リソース resource "aws_ec2_transit_gateway_route"
"blackhole_c_to_e" { destination_cidr_block = "10.10.12.0/22" blackhole = true transit_gateway_route_table_id = aws_ec2_transit_gateway_route_table.c.id } 宛先 最も具体的に一致するルート 結果 VPC E(10.10.12.0/22) 10.10.12.0/22 → Blackhole 破棄 インターネット 0.0.0.0/0 → VPC F F の NAT GW へ 公式: "You can optionally prevent inter-VPC communication by adding a blackhole route for each VPC CIDR."(AWS Transit Gateway ガイド)
学び 3 つ 1 2 3 「経路が無い」は 「遮断」ではない SG は最後の防御線
届かないことを 事前に確認 0.0.0.0/0 が受け皿にな SG なしの NLB は全クライ Network Access る。遮断したい宛先は Blackhole で明示的に落と す アントがリスナーに到達で きる(公式)。TGW で先 に止める Analyzer で意図しない到達 性を確認し、TGW Flow Logs で実際の通信を確認 する
まとめ 「経路が無い」を信じず、 「落とす」と書く ご清聴ありがとうございました
参考資料(AWS 公式) ・How AWS Transit Gateway works(ルート評価順 / Blackhole /
Centralized outbound) docs.aws.amazon.com/vpc/latest/tgw/how-transit-gateways-work.html ・NAT gateways(TGW 経由のとき送信元は NAT GW のプライベート IP) docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html ・Creating a single internet exit point from multiple VPCs Using AWS Transit Gateway(AWS ブログ) aws.amazon.com/blogs/networking-and-content-delivery/creating-a-single-internet-exit-point-from-multiple-vpcsusing-aws-transit-gateway/ ・NLB のセキュリティグループ docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-security-groups.html ・Reachability Analyzer docs.aws.amazon.com/vpc/latest/reachability/how-reachability-analyzer-works.html ・Network Access Analyzer docs.aws.amazon.com/vpc/latest/network-access-analyzer/what-is-network-access-analyzer.html ・Transit Gateway Flow Logs(事後調査) docs.aws.amazon.com/vpc/latest/tgw/tgw-flow-logs.html