- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to capture ftp activity through tcpdump comman...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2005 07:48 PM
тАО04-24-2005 07:48 PM
How do i capture ftp activity thorugh tcpdump command, we have automated ftp scripts in place, and I would like to capture ftp traffic.
Please advise
Cheers
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2005 10:10 PM
тАО04-24-2005 10:10 PM
Re: How to capture ftp activity through tcpdump command
tcpdump -i lan0 -n port 21 -w /tmp/ftp.out
Hope this helps,
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2005 11:19 PM
тАО04-25-2005 11:19 PM
Re: How to capture ftp activity through tcpdump command
This would certainly help, so I can use ent0 for ethernet(production network), the command should look like this then,
tcpdump -i lan0 -n port21 -w /tmp/ftp.out, is that right?
Kind Regards,
Raf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2005 11:44 PM
тАО04-25-2005 11:44 PM
SolutionJust define ftp to do more logging by changing /etc/inetd.conf:
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -L -v -u 000
then get the pid of inetd:
ps -ef | grep inetd
then send it a command to reread the inetd.conf file:
kill -s SIGHUP pidnumberhere
You get things like this:
Apr 26 07:38:20 vpart3 ftpd[24050]: USER root
Apr 26 07:38:22 vpart3 ftpd[24050]: PASS password
Apr 26 07:38:22 vpart3 ftpd[24050]: FTP LOGIN FROM vpart1.mydomain.com [10.2.109.29], root
Apr 26 07:38:22 vpart3 ftpd[24050]: SYST
Apr 26 07:38:22 vpart3 ftpd[24050]: TYPE Image
Apr 26 07:38:25 vpart3 ftpd[24050]: CWD /tmp
Apr 26 07:38:27 vpart3 ftpd[24050]: PORT
Apr 26 07:38:27 vpart3 ftpd[24050]: TYPE ASCII
Apr 26 07:38:27 vpart3 ftpd[24050]: LIST
Apr 26 07:38:27 vpart3 ftpd[24050]: TYPE Image
Apr 26 07:38:48 vpart3 ftpd[24050]: PORT
Apr 26 07:38:48 vpart3 ftpd[24050]: RETR stats_5040.txt
Apr 26 07:38:51 vpart3 ftpd[24050]: QUIT
Apr 26 07:38:51 vpart3 ftpd[24050]: FTP session closed
beats trying to decypher tcpdump
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-26-2005 12:06 AM
тАО04-26-2005 12:06 AM
Re: How to capture ftp activity through tcpdump command
How do I automate this task, so I only capture ftp traffic, we have automated ftp scripts in place, and I'd like to capture ftp traffic only.
Thanks for your help
Cheers,
Raf