LoginSignup
0
1

More than 5 years have passed since last update.

VyOS:tcpdumpでログを取得する

Posted at

たとえば、ポート番号80番〜8079番のログを取得したいとき。

sudo tcpdump portrange 80-8079 -s 0 -C 100 -w /config/tcpdump/log.pcap &

  • パケットから取り出すバイト数を無制限に(-s 0)
  • 指定MBごとにファイルを変える(-C 100)
  • 時間ごとに指定の場合は-Zを使う
  • 書き出し(-w)
  • バックグラウンド実行(末尾に&)
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1