This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

FTP over non-standard TCP ports

0

is it possible to build a capture filter to capture FTP traffic using non-standard TCP port 20 or 21?

asked 02 Mar '12, 23:26

wsitu's gravatar image

wsitu
1111
accept rate: 0%


One Answer:

0

If you are using Active FTP, you can use the alternative TCP ports for the command and the data channel to build a capture filter. If you use 10021 for the command channel and 10020 for the data channel, you can use the capture filter "tcp port 10021 or 10020".

If you are using passive FTP, then you can only filter on the command channel, as the data channel uses ephemeral ports for which you would have to do deep inspection of the FTP traffic to extract the port numbers.

answered 03 Mar '12, 08:26

SYN-bit's gravatar image

SYN-bit ♦♦
17.1k957245
accept rate: 20%