Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
seccamp2018_Z4_DPDK_FW
Search
agodoriru
August 19, 2018
Programming
0
1k
seccamp2018_Z4_DPDK_FW
agodoriru
August 19, 2018
Tweet
Share
More Decks by agodoriru
See All by agodoriru
tmuxで快適CLI生活
agodoriru
0
58
Other Decks in Programming
See All in Programming
新宿ダンジョンを可視化してみた
satoshi7190
2
230
Front-end application development, Symfony-style(s)
dunglas
2
2k
効率化に挑戦してみたらモバイル開発が少し快適になった話
ryunakayama
0
130
スキーマ駆動開発による品質とスピードの両立 - 私達は何故、スキーマを書くのか
kentaroutakeda
0
160
Blue/Greenデプロイの導入による 運用フローの改善
kudoas
1
360
Elm 0.19.0 Changes
bkuhlmann
0
490
GitHub Actionsで泣かないためにやっておきたい設定 / Recommended GHA settings to avoid crying
pinkumohikan
3
520
PHPはいつから死んでいるかの調査
chiroruxx
1
380
ADRを一年運用してみた/adr_after_a_year
hanhan1978
7
2.3k
VS Code をプロダクトにどう取り込むか
onomax
1
350
Site Reliability Engineering for GMO
pyama86
7
1k
Goのmultiple errorsについて (2024年4月版)
syumai
1
450
Featured
See All Featured
Product Roadmaps are Hard
iamctodd
44
9.7k
Atom: Resistance is Futile
akmur
259
25k
StorybookのUI Testing Handbookを読んだ
zakiyama
13
4.6k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
274
13k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
241
1.2M
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
120
39k
It's Worth the Effort
3n
180
27k
Unsuck your backbone
ammeep
663
57k
What's in a price? How to price your products and services
michaelherold
237
11k
GraphQLの誤解/rethinking-graphql
sonatard
50
9.2k
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
104
6.6k
Design by the Numbers
sachag
274
18k
Transcript
Z4 DPDKを用いた 圧倒的高速なファイアウォールの実装 @AG0D0R1RV
作成したもの DPDKを用いたFW 5tuple filter(ip-src/ip-dst/ip-protocol/port-src/port-dst)で 決められたパケットを通過させないようdropする • pcapを読み込んで、パケットをfilterして、特定のパケットを 一つのpcapに書き出すプログラム • DPDKのブリッジを改造して、filterしてmatchしたものをdrop
するプログラム
DPDKとは? DPDK…Data Plane Development Kit ネットワーク処理を高速化するC言語のライブラリ (ルーターやプロトコルスタックではない) ・Official site www.dpdk.org
DPDKの動作 user space linux DPDK linux kernel NIC user space
linux kernel NIC ・kernelをバイパス ・CPUを占有(polling)
[pcap]パケットフィルタリングの性能改善 0 20000000 40000000 60000000 80000000 100000000 120000000 140000000 strcmp
no strcmp log出力なし 処 理 時 間
[DPDK]パケット転送速度改善 (1filter) 0 2000 4000 6000 8000 10000 12000 log出力あり
高速化なしlog出力なし 高速化ありlog出力なし filterなし 処 理 速 度 [Mbits/s]
測定結果
今後の課題(開発を続けていく予定) • 壊れたパケットの処理の実装 • IP headerのoptionの解析 • CUIをかっこよくしたい • フィルターの条件を変えられるように変更
セキュキャン△感想 • 楽しい(治安悪い) • Zトラック圧倒的受講生密着型(一対一)