Tag Archive for tcpdump

Tcpdump usage examples

Tcpdump usage examples

In most cases you will need root permission to be able to capture packets on an interface. Using tcpdump (with root) to capture the packets and saving them to a file to analyze with Wireshark (using a regular account) is recommended over using Wireshark with a root account to capture packets on an «untrusted» interface. See the Wireshark security advisories for reasons why.

See the list of interfaces on which tcpdump can listen:

tcpdump -D

Listen on interface eth0:

tcpdump -i eth0
Read more

Команды ANTI-DDOS

Команды ANTI-DDOS:

Сколько апачей:
Код:

    ps aux | grep httpd  |wc -l 

Cколько коннектов на 80 порт:
Код:

    netstat -na | grep ":80\ " | wc -l

Read more