Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I need to start a tcpdump, and then download a file by FTP. I can't understand any way of achieving this in the tcpdump man file, iany help would ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2010
    Posts
    1

    FTP during tcpdump


    Hi,

    I need to start a tcpdump, and then download a file by FTP. I can't understand any way of achieving this in the tcpdump man file, iany help would be greatly appreciated! Thanks.

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,391
    Ftp is a bit tricky, as both passive and active use two connections with one of these connections being dynamic.

    The following will catch all connections to a <FTP_HOST> and ignore port 22.
    You can ignore more ports, if applicable.
    Code:
    tcpdump -n -i <DEVICE> host <FTP_HOST> and not port 22
    You must always face the curtain with a bow.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •