SlideShare una empresa de Scribd logo
1 de 12
Descargar para leer sin conexión
FTP
                           File Transfer Protocol


                    CIS 68C2
                    UNIX Network Administration



                             CIS68C2 UNIX Network Administration
Updated: 11/27/02                Copyright 2002 - Mike Cappella    1
FTP
! FTP – File Transfer Protocol
    quot; Allows upload and downloading of files
    quot; One of the oldest TCP/IP services
          quot; And still widely in use
    quot; Client/Server
    quot; Advantages over HTTP file transfer
          quot; Allows inspection of file tree, includes file sizes and timestamps
          quot; No HTML code required
    quot; Caution!
          quot; Improperly configured ftp servers are security risks


                                 CIS68C2 UNIX Network Administration
Updated: 11/27/02                    Copyright 2002 - Mike Cappella              2
FTP
! Two Primary File Transfer Modes
    quot; ASCII (plain text)
          quot; End-of-line translation occurs between platforms
          quot; Data is consider to be only 7 bits (high order bit is lost)
    quot; Binary image
          quot; Data is transferred raw (not interpreted)
    quot; Other modes (EBCDIC, local) are rarely ever used
    quot; Mode must be set before transfer begins
          quot; Many clients have an auto-select mode
                    quot; File suffix/name guides selection of transfer mode
          quot; Common mistake to transfer a binary file in ASCII mode
                    quot; The download is corrupted

                                        CIS68C2 UNIX Network Administration
Updated: 11/27/02                           Copyright 2002 - Mike Cappella    3
FTP
! FTP Communication
    quot; Uses 2 TCP ports: 20 (data) and 21 (command)
          quot; Data port defined by RFC to be the command port - 1
    quot; Client
          quot; Initiates command connection to server’s TCP port 21
          quot; Selects random high numbered port to use for data connection
          quot; Sends PORT command
                    quot; Includes client’s IP address and high numbered port
          quot; Listens for data connection on high numbered port
    quot; Server
          quot; Initiates data connection to client
                    quot; Uses IP and port number given by client’s PORT command
                                        CIS68C2 UNIX Network Administration
Updated: 11/27/02                           Copyright 2002 - Mike Cappella     4
FTP
! FTP – Single Connection
                           FTP Client
                           FTP Client
                    User
                    User
                                User
                                User
                             Interface
                              Interface
                                                                                FTP Server
                                                                                FTP Server
                               Protocol
                               Protocol         Command Connection
                                                                                    Protocol
                                                                                    Protocol
                             Interpreter
                              Interpreter                                         Interpreter
                                                                                   Interpreter
                                               TCP/random          TCP/21
                            Commands
                            Commands                                                Replies
                                                                                    Replies



                           Data Transfer
                           Data Transfer          Data Connection                Data Transfer
                                                                                 Data Transfer
                             Process
                             Process           TCP/random      TCP/20              Process
                                                                                   Process




                           File System
                           File System                                           File System
                                                                                 File System

                                          CIS68C2 UNIX Network Administration
Updated: 11/27/02                             Copyright 2002 - Mike Cappella                     5
FTP
! FTP Communication
    quot; PASV command
          quot; Requests server to return an IP / port number
                    quot; Client establishes the data connection, not the server
                    quot; Server listens on that port number for client’s connection
          quot; Allows FTP to…
                    quot; work through firewalls and NAT
                    quot; act as a proxy
                    quot; support site mirroring
          quot; Typically used instead of PORT command
                    quot; But both can be used to override both connection ends
                    quot; PASV mode is considerably more secure

                                         CIS68C2 UNIX Network Administration
Updated: 11/27/02                            Copyright 2002 - Mike Cappella        6
FTP
! FTP – Proxy Connection
                                                    proxy get
    FTP Client
    FTP Client                                                                                      proxy put

           User
           User
        Interface
         Interface
                                              FTP Server A
                                              FTP Server A                                        FTP Server B
                                                                                                  FTP Server B
                      Secondary Controller
                      Command Connection
         Protocol
         Protocol                                    Protocol
                                                     Protocol                                         Protocol
                                                                                                      Protocol
       Interpreter    TCP/random                   Interpreter                                      Interpreter
        Interpreter                                 Interpreter                         TCP/21       Interpreter
      Commands
      Commands                       TCP/21       Commands
                                                  Commands                                         Commands
                                                                                                   Commands
                       Primary Controller
                      Command Connection

     Data Transfer
     Data Transfer                               Data Transfer
                                                 Data Transfer           Data Connection           Data Transfer
                                                                                                   Data Transfer
       Process
       Process                                     Process
                                                   Process             TCP/random TCP/server         Process
                                                                                                     Process
                                                                                   B identified




                                                 File System
                                                 File System                                       File System
                                                                                                   File System

                                              CIS68C2 UNIX Network Administration
Updated: 11/27/02                                 Copyright 2002 - Mike Cappella                                   7
FTP
! FTP – Proxy Connection
    quot; Secondary server must support PASV command
          quot; It cannot initiate the data connection to FTP Server A
    quot; GET transfers from primary to secondary
    quot; PUT transfers from secondary to primary
    quot; Security Alert!
          quot; Proxy exposes the difficult to trace Bounce Attack
                    quot; Using proxy FTP to connect to WKS port (mail, news, etc) and
                      sending instructions
          quot; Eases brute force password guessing
          quot; 3rd party transfers are disabled by default on most modern servers

                                        CIS68C2 UNIX Network Administration
Updated: 11/27/02                           Copyright 2002 - Mike Cappella           8
wu-ftpd
! A leading, feature-rich FTP server implementation
    quot; Used by Red Hat and many other UNIX distributions
    quot; Makes distinction between 3 different types of users
          quot; Real Users
          quot; Guests
          quot; Anonymous Users

                                   Additional Features beyond RFC 959
            Advanced logging (commands, transfers)                 On-the-fly compression and archiving
              User classifications (type and location)                              Per-class limits
                    Per directory upload permissions                         Restricted guest accounts
            System wide and per directory messages.                                 Directory alias
                                cdpath                                             Filename filtering
                             Virtual hosts

                                             CIS68C2 UNIX Network Administration
Updated: 11/27/02                                Copyright 2002 - Mike Cappella                           9
wu-ftpd
! wu-ftpd User Types
    quot; Real Users
          quot; Login to ftp with real username and password
          quot; Can access entire disk structure
          quot; Security risk! - Use with extreme caution!
    quot; Guests
          quot; Login to ftp with real username and password
          quot; Chroot’ed to user’s home directory – cannot escape
    quot; Anonymous Users
          quot; User: anonymous or ftp; Password: your-email-address
          quot; Chroot’ed to common, public ftp directory

                               CIS68C2 UNIX Network Administration
Updated: 11/27/02                  Copyright 2002 - Mike Cappella    10
wu-ftpd
! Configuration Files
    quot; /etc/ftpaccess
          quot; Main configuration file for most settings
    quot; /etc/ftpconversions
          quot; Configuration file for on-the-fly conversions
    quot; Generally depreciated
          quot; /etc/ftphosts
                    quot; List of hosts allowed/denied ftp access
          quot; /etc/ftpusers
                    quot; List of useres allowed/denied ftp access



                                         CIS68C2 UNIX Network Administration
Updated: 11/27/02                            Copyright 2002 - Mike Cappella    11
Additional Information
! wu-ftp documentation
  quot; /usr/share/doc/wu-ftpd-*
! Many wu-ftpd related documents
  quot; http://www.wu-ftpd.org/
  quot; http://www.wu-ftpd.org/rfc/
  quot; http://www.landfield.com/wu-ftpd/
! CERT FTP Articles
  quot; Anonymous FTP Abuses & Configuration Guidelines
          quot; http://www.cert.org/tech_tips/anonymous_ftp_abuses.html
          quot; http://www.cert.org/tech_tips/anonymous_ftp_config.html
    quot; Bounce Attacks
          quot; http://www.cert.org/tech_tips/ftp_port_attacks.html
! RFCs
  quot; 959             – FTP Protocol
  quot; 2577            – FTP Security Considerations
                                   CIS68C2 UNIX Network Administration
Updated: 11/27/02                      Copyright 2002 - Mike Cappella    12

Más contenido relacionado

La actualidad más candente

(Ftp) file transfer protocol
(Ftp)   file transfer protocol(Ftp)   file transfer protocol
(Ftp) file transfer protocolGouasmia Zakaria
 
Open Flow Tutorial Series - Set 1
Open Flow Tutorial Series - Set 1Open Flow Tutorial Series - Set 1
Open Flow Tutorial Series - Set 1Radhika Hirannaiah
 
File transfer protocol (ftp)
File transfer protocol (ftp)File transfer protocol (ftp)
File transfer protocol (ftp)Cort1026
 
File transfer protocol
File transfer protocolFile transfer protocol
File transfer protocolAmandeep Kaur
 
FTP Conflict troubleshooting & MINI-LINK TN FTP
FTP Conflict troubleshooting & MINI-LINK TN FTPFTP Conflict troubleshooting & MINI-LINK TN FTP
FTP Conflict troubleshooting & MINI-LINK TN FTPMohamed Abd El Razek Bakry
 
SDN - OpenFlow protocol
SDN - OpenFlow protocolSDN - OpenFlow protocol
SDN - OpenFlow protocolUlf Marxen
 
File Transfer Protocol(FTP)
File Transfer Protocol(FTP)File Transfer Protocol(FTP)
File Transfer Protocol(FTP)Varnit Yadav
 
Using an FTP client - Client server computing
Using an FTP client -  Client server computingUsing an FTP client -  Client server computing
Using an FTP client - Client server computinglordmwesh
 
Solarwinds port requirement
Solarwinds port requirementSolarwinds port requirement
Solarwinds port requirementEzahir Amer
 
file transfer and access utilities
file transfer and access utilitiesfile transfer and access utilities
file transfer and access utilitiestumetr1
 
FTP - File Transfer Protocol
FTP - File Transfer ProtocolFTP - File Transfer Protocol
FTP - File Transfer ProtocolPeter R. Egli
 
TFTP - Trivial File Transfer Protocol
TFTP - Trivial File Transfer ProtocolTFTP - Trivial File Transfer Protocol
TFTP - Trivial File Transfer ProtocolPeter R. Egli
 
Tftp client server communication
Tftp client server communicationTftp client server communication
Tftp client server communicationUday Sharma
 

La actualidad más candente (20)

(Ftp) file transfer protocol
(Ftp)   file transfer protocol(Ftp)   file transfer protocol
(Ftp) file transfer protocol
 
Open Flow Tutorial Series - Set 1
Open Flow Tutorial Series - Set 1Open Flow Tutorial Series - Set 1
Open Flow Tutorial Series - Set 1
 
File transfer protocol (ftp)
File transfer protocol (ftp)File transfer protocol (ftp)
File transfer protocol (ftp)
 
File transfer protocol
File transfer protocolFile transfer protocol
File transfer protocol
 
FTP Conflict troubleshooting & MINI-LINK TN FTP
FTP Conflict troubleshooting & MINI-LINK TN FTPFTP Conflict troubleshooting & MINI-LINK TN FTP
FTP Conflict troubleshooting & MINI-LINK TN FTP
 
Ftp hari edu
Ftp hari eduFtp hari edu
Ftp hari edu
 
SDN - OpenFlow protocol
SDN - OpenFlow protocolSDN - OpenFlow protocol
SDN - OpenFlow protocol
 
FTP & TFTP
FTP & TFTPFTP & TFTP
FTP & TFTP
 
File Transfer Protocol(FTP)
File Transfer Protocol(FTP)File Transfer Protocol(FTP)
File Transfer Protocol(FTP)
 
Using an FTP client - Client server computing
Using an FTP client -  Client server computingUsing an FTP client -  Client server computing
Using an FTP client - Client server computing
 
Solarwinds port requirement
Solarwinds port requirementSolarwinds port requirement
Solarwinds port requirement
 
file transfer and access utilities
file transfer and access utilitiesfile transfer and access utilities
file transfer and access utilities
 
Ftp tftp
Ftp tftpFtp tftp
Ftp tftp
 
Ft pv2(1)
Ft pv2(1)Ft pv2(1)
Ft pv2(1)
 
Ftp
FtpFtp
Ftp
 
Ftp server
Ftp serverFtp server
Ftp server
 
FTP - File Transfer Protocol
FTP - File Transfer ProtocolFTP - File Transfer Protocol
FTP - File Transfer Protocol
 
TFTP
TFTPTFTP
TFTP
 
TFTP - Trivial File Transfer Protocol
TFTP - Trivial File Transfer ProtocolTFTP - Trivial File Transfer Protocol
TFTP - Trivial File Transfer Protocol
 
Tftp client server communication
Tftp client server communicationTftp client server communication
Tftp client server communication
 

Similar a FTP File Transfer Protocol Guide

Similar a FTP File Transfer Protocol Guide (20)

File Transfer Protocol
File Transfer ProtocolFile Transfer Protocol
File Transfer Protocol
 
ARM LPC2300/LPC2400 TCP/IP Stack Porting
ARM LPC2300/LPC2400 TCP/IP Stack PortingARM LPC2300/LPC2400 TCP/IP Stack Porting
ARM LPC2300/LPC2400 TCP/IP Stack Porting
 
Client server architecture
Client server architectureClient server architecture
Client server architecture
 
3rd edition chapter2
3rd edition chapter23rd edition chapter2
3rd edition chapter2
 
App layer
App layerApp layer
App layer
 
TCP/IP – Transmission Control Protocol/ Internet Protocol
TCP/IP – Transmission Control Protocol/ Internet ProtocolTCP/IP – Transmission Control Protocol/ Internet Protocol
TCP/IP – Transmission Control Protocol/ Internet Protocol
 
protocols (1).pptx
protocols (1).pptxprotocols (1).pptx
protocols (1).pptx
 
Application Protocol
Application Protocol Application Protocol
Application Protocol
 
Cisco discovery d homesb module 6 - v.4 in english.
Cisco discovery   d homesb module 6 - v.4 in english.Cisco discovery   d homesb module 6 - v.4 in english.
Cisco discovery d homesb module 6 - v.4 in english.
 
Computer network coe351- part2- final
Computer network coe351- part2- finalComputer network coe351- part2- final
Computer network coe351- part2- final
 
Np unit1
Np unit1Np unit1
Np unit1
 
FTP-PPT.pptx
FTP-PPT.pptxFTP-PPT.pptx
FTP-PPT.pptx
 
Basic to advance protocols
Basic to advance protocolsBasic to advance protocols
Basic to advance protocols
 
Chapter2 application
Chapter2 applicationChapter2 application
Chapter2 application
 
Protocols and the TCP/IP Protocol Suite
Protocols and the TCP/IP Protocol SuiteProtocols and the TCP/IP Protocol Suite
Protocols and the TCP/IP Protocol Suite
 
Meeting 6 : ftp
Meeting 6 : ftpMeeting 6 : ftp
Meeting 6 : ftp
 
Web Dev Research
Web Dev ResearchWeb Dev Research
Web Dev Research
 
protocol and the TCP/IP suite Chapter 02
 protocol and the TCP/IP suite Chapter 02 protocol and the TCP/IP suite Chapter 02
protocol and the TCP/IP suite Chapter 02
 
TCP/IP Models
TCP/IP ModelsTCP/IP Models
TCP/IP Models
 
Group20 Dynamic Networks
Group20 Dynamic NetworksGroup20 Dynamic Networks
Group20 Dynamic Networks
 

Más de Eri Alam

Produk global final jadiiii
Produk global final jadiiiiProduk global final jadiiii
Produk global final jadiiiiEri Alam
 
Overview VOIP
Overview VOIPOverview VOIP
Overview VOIPEri Alam
 
overview VSAT
overview VSAToverview VSAT
overview VSATEri Alam
 
Tcpip Suite
Tcpip SuiteTcpip Suite
Tcpip SuiteEri Alam
 
Ip Address
Ip AddressIp Address
Ip AddressEri Alam
 
Stti The Building Blocks
Stti The Building BlocksStti The Building Blocks
Stti The Building BlocksEri Alam
 
Wsdl Bahankuliah
Wsdl BahankuliahWsdl Bahankuliah
Wsdl BahankuliahEri Alam
 
Web Service
Web ServiceWeb Service
Web ServiceEri Alam
 
Ip Address Dan Subnetting
Ip Address Dan SubnettingIp Address Dan Subnetting
Ip Address Dan SubnettingEri Alam
 

Más de Eri Alam (14)

Produk global final jadiiii
Produk global final jadiiiiProduk global final jadiiii
Produk global final jadiiii
 
Overview VOIP
Overview VOIPOverview VOIP
Overview VOIP
 
overview VSAT
overview VSAToverview VSAT
overview VSAT
 
NOC
NOCNOC
NOC
 
Smtp
SmtpSmtp
Smtp
 
Http
HttpHttp
Http
 
Tcpip Suite
Tcpip SuiteTcpip Suite
Tcpip Suite
 
Tcp Udp
Tcp UdpTcp Udp
Tcp Udp
 
Ip Address
Ip AddressIp Address
Ip Address
 
Stti The Building Blocks
Stti The Building BlocksStti The Building Blocks
Stti The Building Blocks
 
Wsdl Bahankuliah
Wsdl BahankuliahWsdl Bahankuliah
Wsdl Bahankuliah
 
Web Service
Web ServiceWeb Service
Web Service
 
Soap
SoapSoap
Soap
 
Ip Address Dan Subnetting
Ip Address Dan SubnettingIp Address Dan Subnetting
Ip Address Dan Subnetting
 

Último

FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 

Último (20)

FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 

FTP File Transfer Protocol Guide

  • 1. FTP File Transfer Protocol CIS 68C2 UNIX Network Administration CIS68C2 UNIX Network Administration Updated: 11/27/02 Copyright 2002 - Mike Cappella 1
  • 2. FTP ! FTP – File Transfer Protocol quot; Allows upload and downloading of files quot; One of the oldest TCP/IP services quot; And still widely in use quot; Client/Server quot; Advantages over HTTP file transfer quot; Allows inspection of file tree, includes file sizes and timestamps quot; No HTML code required quot; Caution! quot; Improperly configured ftp servers are security risks CIS68C2 UNIX Network Administration Updated: 11/27/02 Copyright 2002 - Mike Cappella 2
  • 3. FTP ! Two Primary File Transfer Modes quot; ASCII (plain text) quot; End-of-line translation occurs between platforms quot; Data is consider to be only 7 bits (high order bit is lost) quot; Binary image quot; Data is transferred raw (not interpreted) quot; Other modes (EBCDIC, local) are rarely ever used quot; Mode must be set before transfer begins quot; Many clients have an auto-select mode quot; File suffix/name guides selection of transfer mode quot; Common mistake to transfer a binary file in ASCII mode quot; The download is corrupted CIS68C2 UNIX Network Administration Updated: 11/27/02 Copyright 2002 - Mike Cappella 3
  • 4. FTP ! FTP Communication quot; Uses 2 TCP ports: 20 (data) and 21 (command) quot; Data port defined by RFC to be the command port - 1 quot; Client quot; Initiates command connection to server’s TCP port 21 quot; Selects random high numbered port to use for data connection quot; Sends PORT command quot; Includes client’s IP address and high numbered port quot; Listens for data connection on high numbered port quot; Server quot; Initiates data connection to client quot; Uses IP and port number given by client’s PORT command CIS68C2 UNIX Network Administration Updated: 11/27/02 Copyright 2002 - Mike Cappella 4
  • 5. FTP ! FTP – Single Connection FTP Client FTP Client User User User User Interface Interface FTP Server FTP Server Protocol Protocol Command Connection Protocol Protocol Interpreter Interpreter Interpreter Interpreter TCP/random TCP/21 Commands Commands Replies Replies Data Transfer Data Transfer Data Connection Data Transfer Data Transfer Process Process TCP/random TCP/20 Process Process File System File System File System File System CIS68C2 UNIX Network Administration Updated: 11/27/02 Copyright 2002 - Mike Cappella 5
  • 6. FTP ! FTP Communication quot; PASV command quot; Requests server to return an IP / port number quot; Client establishes the data connection, not the server quot; Server listens on that port number for client’s connection quot; Allows FTP to… quot; work through firewalls and NAT quot; act as a proxy quot; support site mirroring quot; Typically used instead of PORT command quot; But both can be used to override both connection ends quot; PASV mode is considerably more secure CIS68C2 UNIX Network Administration Updated: 11/27/02 Copyright 2002 - Mike Cappella 6
  • 7. FTP ! FTP – Proxy Connection proxy get FTP Client FTP Client proxy put User User Interface Interface FTP Server A FTP Server A FTP Server B FTP Server B Secondary Controller Command Connection Protocol Protocol Protocol Protocol Protocol Protocol Interpreter TCP/random Interpreter Interpreter Interpreter Interpreter TCP/21 Interpreter Commands Commands TCP/21 Commands Commands Commands Commands Primary Controller Command Connection Data Transfer Data Transfer Data Transfer Data Transfer Data Connection Data Transfer Data Transfer Process Process Process Process TCP/random TCP/server Process Process B identified File System File System File System File System CIS68C2 UNIX Network Administration Updated: 11/27/02 Copyright 2002 - Mike Cappella 7
  • 8. FTP ! FTP – Proxy Connection quot; Secondary server must support PASV command quot; It cannot initiate the data connection to FTP Server A quot; GET transfers from primary to secondary quot; PUT transfers from secondary to primary quot; Security Alert! quot; Proxy exposes the difficult to trace Bounce Attack quot; Using proxy FTP to connect to WKS port (mail, news, etc) and sending instructions quot; Eases brute force password guessing quot; 3rd party transfers are disabled by default on most modern servers CIS68C2 UNIX Network Administration Updated: 11/27/02 Copyright 2002 - Mike Cappella 8
  • 9. wu-ftpd ! A leading, feature-rich FTP server implementation quot; Used by Red Hat and many other UNIX distributions quot; Makes distinction between 3 different types of users quot; Real Users quot; Guests quot; Anonymous Users Additional Features beyond RFC 959 Advanced logging (commands, transfers) On-the-fly compression and archiving User classifications (type and location) Per-class limits Per directory upload permissions Restricted guest accounts System wide and per directory messages. Directory alias cdpath Filename filtering Virtual hosts CIS68C2 UNIX Network Administration Updated: 11/27/02 Copyright 2002 - Mike Cappella 9
  • 10. wu-ftpd ! wu-ftpd User Types quot; Real Users quot; Login to ftp with real username and password quot; Can access entire disk structure quot; Security risk! - Use with extreme caution! quot; Guests quot; Login to ftp with real username and password quot; Chroot’ed to user’s home directory – cannot escape quot; Anonymous Users quot; User: anonymous or ftp; Password: your-email-address quot; Chroot’ed to common, public ftp directory CIS68C2 UNIX Network Administration Updated: 11/27/02 Copyright 2002 - Mike Cappella 10
  • 11. wu-ftpd ! Configuration Files quot; /etc/ftpaccess quot; Main configuration file for most settings quot; /etc/ftpconversions quot; Configuration file for on-the-fly conversions quot; Generally depreciated quot; /etc/ftphosts quot; List of hosts allowed/denied ftp access quot; /etc/ftpusers quot; List of useres allowed/denied ftp access CIS68C2 UNIX Network Administration Updated: 11/27/02 Copyright 2002 - Mike Cappella 11
  • 12. Additional Information ! wu-ftp documentation quot; /usr/share/doc/wu-ftpd-* ! Many wu-ftpd related documents quot; http://www.wu-ftpd.org/ quot; http://www.wu-ftpd.org/rfc/ quot; http://www.landfield.com/wu-ftpd/ ! CERT FTP Articles quot; Anonymous FTP Abuses & Configuration Guidelines quot; http://www.cert.org/tech_tips/anonymous_ftp_abuses.html quot; http://www.cert.org/tech_tips/anonymous_ftp_config.html quot; Bounce Attacks quot; http://www.cert.org/tech_tips/ftp_port_attacks.html ! RFCs quot; 959 – FTP Protocol quot; 2577 – FTP Security Considerations CIS68C2 UNIX Network Administration Updated: 11/27/02 Copyright 2002 - Mike Cappella 12