SlideShare a Scribd company logo
1 of 12
Download to read offline
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

More Related Content

What's hot

(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
 

What's hot (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 to 10 Lecture Ftp

Similar to 10 Lecture Ftp (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
 

More from 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
 

More from 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
 

Recently uploaded

AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 

Recently uploaded (20)

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 

10 Lecture Ftp

  • 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