TCPDUMP

To filter eth1 interface

tcpdump -i eth1 

To filter eth1 interface without resolv DNS

tcpdump -i eth1 -nn

To filter one IP

tcpdump -i eth1 -nn host 192.168.0.7

To filter eth1 and destination port

tcpdump -i eth1 -nn dst port 2967

To filter more that one destination port

tcpdump -i eth1 -nn dst port 2967 or 80

To filter one source IP

tcpdump -i eth1 -nn src 10.20.181.55

To filter a destination IP

tcpdump -i eth1 -nn dst 207.46.26.23

To filter one IP and port

tcpdump -i eth1 -nn host 192.168.0.7 and port 80

To filter one source IP and port

tcpdump -i eth1 -nn src 10.20.181.55 and port 1863
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s