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
1.1k
0
Share
seccamp2018_Z4_DPDK_FW
agodoriru
August 19, 2018
More Decks by agodoriru
See All by agodoriru
tmuxで快適CLI生活
agodoriru
0
69
Other Decks in Programming
See All in Programming
의존성 주입과 모듈화
fornewid
0
150
GNU Makeの使い方 / How to use GNU Make
kaityo256
PRO
16
5.6k
SkillがSkillを生む:QA観点出しを自動化した
sontixyou
6
3.5k
ソフトウェア設計の結合バランス #phperkaigi
kajitack
0
140
tRPCの概要と少しだけパフォーマンス
misoton665
2
240
How We Benchmarked Quarkus: Patterns and anti-patterns
hollycummins
1
150
ルールルルルルRubyの中身の予備知識 ── RubyKaigiの前に予習しなイカ?
ydah
1
210
t *testing.T は どこからやってくるの?
otakakot
1
710
Spec-driven Development: How AI Changes Everything (And Nothing)
simas
PRO
0
100
SREに優しいTerraform構成 modulesとstateの組み方
hiyanger
2
150
書籍「ユーザーストーリーマッピング」が私のバイブル
asumikam
4
420
PicoRuby for IoT: Connecting to the Cloud with MQTT
yuuu
2
650
Featured
See All Featured
Ethics towards AI in product and experience design
skipperchong
2
260
Utilizing Notion as your number one productivity tool
mfonobong
4
290
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.2k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
120
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
199
73k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Heart Work Chapter 1 - Part 1
lfama
PRO
6
35k
30 Presentation Tips
portentint
PRO
1
280
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
150
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
61
43k
RailsConf 2023
tenderlove
30
1.4k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.4k
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トラック圧倒的受講生密着型(一対一)