Forum Discussion
tcpdump
hi how i can make tcpdump with source IP and port
- mf5Nimbostratus
tcpdump -ni 0.0 src xx.xx.xx.xx and port xx
replace the x with ip address and port
eg: tcpdump -ni 0.0 src 10.1.1.4 and port 80
- youssef1Cumulonimbus
Hi,
Nice article by F5 on TCPDUMP with all needed command:
https://support.f5.com/csp/article/K411
Additional point keep in mind that if you want to capture traffic on all interface you have to set
however you will not capture traffic that pass trough mangement interface with this command.tcpdump -ni 0.0
If you want to capture traffic that pass trough mgmt interface you have to specify mgmt interface like that:
tcpdump -ni eth0
If you want to capture dest port 80 use this command for example:
tcpdump -nni 0.0 src host 172.16.101.20 and dst port 80
For info:
-nn disable both name and service port resolution while performing a capture.
-i allow to select interface
Regards
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com