tcpdump - dump traffic on a network
2010-04-27 22:26
381 查看
Synopsis
tcpdump[ -AdDeflLnNOpqRStuUvxX
] [ -c
count
]
[ -C
file_size
] [ -F
file
]
[ -i
interface
] [ -m
module
] [ -M
secret
]
[ -r
file
] [ -s
snaplen
] [ -T
type
] [ -w
file
]
[ -W
filecount
]
[ -E
spi@ipaddr algo:secret,...
]
[ -y
datalinktype
] [ -Z
user
] [ expression
]
Description
Tcpdumpprints out the headers of packets on a network interface that match the boolean expression
. It can also be run with the
-w
flag, which causes it to save the packet data to a file for later analysis, and/or with the -r
flag, which causes it to read from
a saved packet file rather than to read packets from a network interface. In all cases, only packets that match expression
will be processed by
tcpdump
.
Tcpdump
will, if not run with the -c
flag, continue capturing packets until it is interrupted by a SIGINT signal (generated, for
example, by typing your interrupt character, typically control-C) or a SIGTERM signal (typically generated with the kill
(1) command); if run with the
-c
flag, it will capture packets until it is interrupted by a
SIGINT or SIGTERM signal or the specified number of packets have been
processed.
Example
tcpdump -i eth8 -A port 24422 | grep "dest_string"tcpdump -i eth1 -s 1500 port not 22 and port not 53
tcpdump -i eth1 port not 22 and host 1.2 .3 .4
Ref
http://linux.die.net/man/8/tcpdump相关文章推荐
- How to Monitor and Log Network Traffic on Linux Using vnStat
- Intercepting network traffic on Android
- How to Monitor and Log Network Traffic on Linux Using vnStat
- capture network traffic on windows ce
- capture network traffic on windows ce
- Record network traffic on Android or IOS with Charlies' Proxy or WireShark
- Caused by: android.os.NetworkOnMainThreadException错误解决办法(强制主线程做网络请求)
- Android 3.0以上 访问WebService 出现 android.os.NetworkOnMainThreadException异常
- Android “NetworkOnMainThreadException”出错原因及解决办法
- 关于Android之NetworkOnMainThreadException异常的处理
- android.os.NetworkOnMainThreadException 异常处理
- Frequently-Used Network Time Server(Base On NTP:Network Time Protocol)
- Install SVN Error:The Feature You Are Tring to Use is on a Network Resource That is Unvaliable
- android.os.NetworkOnMainThreadException
- android.os.NetworkOnMainThreadException
- Android 3.0 访问WebService 出现 android.os.NetworkOnMainThreadException异常
- [论文阅读] EIE: Efficient Inference Engine on Compressed Neural Network
- NetworkOnMainThreadException异常 --Android
- 【Xuggle】Failed to write core dump. Minidumps are not enabled by default on client versions
- android.os.NetworkOnMainThreadException异常如何解决