• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

securitywing

Menu
  • About
  • Must Read
      • IIS Performance Boost
      • RFID Security
      • Web App Security Testing
      • How to Secure Home Network
      • Prevent Cross-Site Scripting Attacks
      • Renew Self-Signed Certificates
      • Penetration Testing Tools
      • VPN Concentrator
      • Forensic Investigation Tools
      • Digital Certificates
      • Cloud Security Issues
      • Advanced Evasion Prevention
      • Firewall Types
      • Tips to Prevent Data Exfiltration
      • Classified Info Handling
      • MySQL Security
      • Definition of 7 Types of Malware
      • VOIP Security
      • Why Antivirus Software Fails
      • 15 Network Security Vulnerabilities
      • Web App Security
      • IT Security Standards
      • Types of Virtualization
      • Android Security
      • Digital Signature
      • Advanced Malware Protection
    • Close
  • Consultancy
  • Contact

Active vs Passive FTP Mode: Which One is More Secure?

by wing

FTP or file transfer protocol is used to transfer files between two computers: one is FTP host or server and another is FTP client. In addition to transferring files, FTP helps to gain access to the physical location of the server to modify files such as file deleting, folder creating or even modifying file contents.

Before knowing the difference between active and passive FTP, you need to know how FTP functions. Normally, when you open FTP connectivity with a FTP server, there opens two connections between the computers: one is used to transfer data and another one is used to transfer control signals. Both the channels are TCP connections. For commands, TCP port number 21 is used and the port number 20 is used for data.

Benefit of active FTP: it increase FTP server security

Benefit of passive FTP: it requires less configuration changes on client  computer.

Active mode

In this mode a FTP client machine opens a connection using a random port to the server’s port 21. Then server opens a data port with its port number 20 to a random port of the client machine. The data port number in the client machine is supplied by the client machine. Both the servers and the clients are responsible for opening connection. The client starts the command channel connection whereas the server start the data channel connection. When configuring FTP active mode you need to make sure the ports are open in the client machines, if you are using a firewall.

FTP mode active

Passive mode

In passive mode both the command and data channel is opened by the client machine.  At the starting phase of the connection, the client opens a TCP connection from a random port to the server’s port 21.next the client send a PASV command to the server and the server sends the port number that it wants to use as a data channel. Then, the client sends data the port number send by the server. The port number supplied by the server for data channel must be opened in the server side firewall. In IIS, there is an option to choose a range of ports to be used for data channel. After defining the range of ports, you need to open that port range in the server firewall. The port number used by the clinet in passive mode are always greater than 1023.

In active mode, the server use well known port 20 for data and port 21 for command, whereas the client uses random port numbers for both data and command.

passive ftp mode

Which mode is more secure? Both the mode is insecure because they do not use SSL. Therefore, anybody sniffing the network card can read the data pass through FTP (both in active and passive modes)

Related Posts:

  • No Related Posts

Filed Under: Tutorial Tagged With: ftp, mode

Primary Sidebar

CISSP Sample Test

Take a CISSP Sample Test

CISA IT governance Sample test



Twitter Follow @securitywing

Categories

  • AWS
  • containers
  • Internet Security and Safety
  • IS Audit
  • IT Security Exams
  • Network Security Tips
  • Off Track
  • Telecom
  • Tutorial

Pages

  • About
  • Best IT Security Certification Exam
  • CISA IT governance Sample test
  • CISA Sample Test
  • CISSP Sample Test Online
  • Consultancy
  • Contact

Popular Posts

  • 8 Effective Ways to Impro...
  • 3 Steps to Install Miniku...
  • Yahoo Mail Security Setti...
  • How to Setup AWS CloudFro...
  • 3 Simple Steps to Capture...
  • 5 Steps to Setup a Nexus3...
  • How to Configure AAA (TAC...
  • How to Configure SNMP in...
  • How to Install AWS CLI an...
  • How to Renew Self-Signed...

Footer

Copyrights

Protected by Copyscape Duplicate Content Detection Software

Securitywing.com reserves the copyrights of all of its published articles.No contents of this site is permitted to be published to anywhere else in the Internet.If any contents are found in any other websites, securitywing reserves the rights to file a DMCA complaint. But you have the right to use the link of any relevant article of this site to point from your website if you consider that it might improve the quality of your article.

Tags

antivirus audit AWS backup browser check cisco cloud computer cyber data database encryption firewall home hsrp ids informaiton internet intrusion it kubernetes linux load balancing malware network protection putty risk router security security tips server ssh SSL switch tools virus vpn vulnerability web webserver website windows wordpress

Copyright © 2010-2023 ·All Rights Reserved · SecurityWing.com