Slashdot Mirror


No More FTP At Debian (debian.org)

New submitter Gary Perkins writes: It looks like anonymous FTP is officially on its way out. While many public repositories have deprecated it in favor of HTTP, I was rather surprised to see Debian completely drop it on their public site. In a blog post, the team cited the FTP's lack of support for caching or acceleration, and declining usage as some of the reasons for their decision.

75 comments

  1. Network admins rejoice! by Bluecobra · · Score: 2, Informative

    Thank goodness, FTP needs to die in a fire. Everyone should be using SCP/SFTP nowadays anyways.

    1. Re:Network admins rejoice! by serviscope_minor · · Score: 4, Insightful

      Or https/http, for simply fetching files.

      --
      SJW n. One who posts facts.
    2. Re:Network admins rejoice! by Anonymous Coward · · Score: 5, Funny

      Correct, FTP was never intended to transport files.

    3. Re: Network admins rejoice! by zakzor · · Score: 1

      Maybe both? SCP for the update and HTTP for grabbing files?

    4. Re: Network admins rejoice! by Anonymous Coward · · Score: 0

      Ha, I apologize... Mr Anonymous I'll be sending you a bill for a new keyboard.

    5. Re:Network admins rejoice! by Anonymous Coward · · Score: 4, Insightful

      While good on paper, what you propose is a lot more complicated. SCP and SFTP are subsystems of SSH, which do not have the degree of fine-grained control and capability as most decent FTP servers do. Rate-limiting is one such example (i.e. rate-limiting only SCP/SFTP but not SSH). Network administrators love to think of the situation simply ("yay, I can remove annoyances relating to TCP port 20 and 21 for FTPs passive and active modes, now just pass TCP port 22 and my job is done!"), but those of us in systems who have to actually try to implement the fine-grained controls for this with SSH/SCP/SFTP are driven absolutely mad because even servers like OpenSSH do not provide that granularity.

      In short: SCP/SFTP are no where close to drop-in replacements for FTP.

    6. Re:Network admins rejoice! by unixisc · · Score: 1

      How much adaption has SCP/SFTP seen? I haven't seen it anywhere.

      Combine it w/ IPv6, and it should be ideal!

    7. Re:Network admins rejoice! by Anonymous Coward · · Score: 0

      You don't need "fine grained control" to dump some files in a directory securely.

    8. Re:Network admins rejoice! by Anonymous Coward · · Score: 0

      Correct, FTP was never intended to transport files.

      Yeah, you should be using some kind of protocol for that kind of stuff. :)

    9. Re:Network admins rejoice! by manu0601 · · Score: 1

      Everyone should be using SCP/SFTP nowadays anyways.

      FTP has file download resume (REGET), which is quite useful for big archives with weak connection.

    10. Re:Network admins rejoice! by Bite+The+Pillow · · Score: 1

      And http has range requests.

      I have a utility that requests the end of a zip, displays the contents, and lets you select files. The compressed data is downloaded, the central directory rewritten, and you saved bytes.

      Tell me how useless it is, but this was 20 years ago and range requests were a thing back then.

    11. Re:Network admins rejoice! by serviscope_minor · · Score: 1

      In your rush to be pedantic, you missed the point. I said fetching, not generally transporting.

      scp and sftp allow you to also send files.

      --
      SJW n. One who posts facts.
    12. Re:Network admins rejoice! by arglebargle_xiv · · Score: 1

      FTP was never intended to transport files.

      Exactly. Everyone knows you use email to move files around. I've just this minute received a file from virusbucket.ru that I'm about to click on.

    13. Re:Network admins rejoice! by Anonymous Coward · · Score: 0

      I put my files in spreadsheets before I email them.

    14. Re:Network admins rejoice! by Anonymous Coward · · Score: 0

      Whooosh

    15. Re:Network admins rejoice! by Anonymous Coward · · Score: 0

      He wants to limit download or upload rate which seems reasonable if the bandwidth is also used for a hundred other things. I suppose he could run two ssh servers, one on port 22 and one on some port else.
      That's not great compared to using just one port. Although if 99% users only need the file access and get served that on port 22 (the default port) with everything locked down, that might be convenient. (somewhat)

    16. Re:Network admins rejoice! by BinBoy · · Score: 1

      Raw http/https? Are you some sort of savage? Convert it to base64, store it in an XML file and handle the download with a custom es6 app. Bonus points for each line of code installed from a package manager.

  2. Dupe by Anonymous Coward · · Score: 0

    Also, FP

  3. HTTP is faster to connect by fred6666 · · Score: 4, Interesting

    Every time I used FTP in my sources.list, it was slower to connect. The whole apt-get update process could therefore be twice as long on FTP, compared to HTTP. Even though I guess once connected, the file transfer protocol should be more efficient.

    1. Re:HTTP is faster to connect by buchner.johannes · · Score: 4, Informative

      Even though I guess once connected, the file transfer protocol should be more efficient.

      There are huge differences between FTP servers in terms of their delivery.
      But today's Apache delivers static files extremely fast, by telling the kernel to move a file data onto the network card, so the data are never actually moved to the application. That's fast, and you can still play proxying, cache-freshness and other HTTP tricks on top of this.

      --
      NB: The message above might reflect my opinion right now, but not necessarily tomorrow or next year.
    2. Re:HTTP is faster to connect by gmack · · Score: 1

      There really shouldn't be an advantage once the actual transfer starts going. In both cases they can copy direct from the disk cache to the network and push packets out as fast as the connection will allow. The downside of FTP is it's convoluted protocol, it's throwback to the days when everyone had a public IP and it makes a lot of connections assuming it can just connect in both directions without restriction. In modern times, Firewalls have to maintain a lot of code just to keep FTP functional. FTP *really* needs to just die.

    3. Re:HTTP is faster to connect by Anonymous Coward · · Score: 0

      FTP will live again when IPv6 restores end-to-end connectivity to all. Any day now.

    4. Re:HTTP is faster to connect by Anonymous Coward · · Score: 5, Informative

      > But today's Apache delivers static files extremely fast, by telling the kernel to move a file data onto the network card, so the data are never actually moved to the application.

      Hogwash. Even FreeBSD's accf_http.ko and accf_data.ko modules do not work this way. You cannot bypass "the application" layer -- that's httpd. Possibly you meant moved *by* the application? If so: yes that's true. I'll explain in detail:

      I believe what you're trying to speak about is the sendfile(2) syscall. This does not "move file data onto the network card" (that's misleading on your part) -- all it does is allow for the kernel itself to transfer data between two file descriptors, rather than httpd itself doing it. The theory is that this takes less time than the kernel having to copy to userland (httpd), then userland (httpd) doing a read/write, which sends it back up to the kernel, rise lather repeat for every buffer (i.e. it saves a read and write call being done per buffer). Also, FreeBSD's sendfile(2) syscall is zero-copy within kernel space, meaning there are no intermediary buffers used to store copies of the data being transferred (I'm unsure about Linux in this regard).

      sendfile(2) has a very precarious history of not working reliably with things like NFS and ZFS, or if working, the performance hit in kernel-land being major. This is why Apache has the EnableSendfile global directive, which defaults to off for a very good reason. The same goes for mmap(2) (EnableMmap, which defaults to on; if you're serving from NFS, you need to disable this for either a specific filesystem path using Location, or disable it globally). sendfile(2) also is known to have other problems, such as incorrect TCP checksum offloading calculation on Linux when using IPv6, and tends to have a transfer limit size of 2GBytes (a signed 32-bit number minus approximately 4096, due to page alignment), even on 64-bit systems (explains why there's sendfile64(2) on Linux). Refer to the Apache 2.4 documentation if you think I'm bluffing. You'll find *IX FTP servers (ex. proftpd) often allow disabling of sendfile as well, for the same reasons. In early 2005 there was there was even a serious security hole in sendfile(2) on FreeBSD 4.x/5.x (see FreeBSD-SA-05:02.sendfile).

      It's up to your systems administrator to decide if sendfile(2) is safe for use by whatever program might be using it. In general, it's best to default to not using it unless you know factually the underlying filesystems and applications work reliably with it. I've read a few anecdotal blogs talking about how sendfile(2) on OS X (based on FreeBSD, but these days deviates quite severely) is quite broken as well.

      Your other descriptions of use of things like proxying aren't really relevant from a performance perspective (re: "more efficient") -- if anything all this does is waste more resources -- but your point about proper use of HTTP caching directives is relevant as long as the client honours such (ex. ETags, If-Modified-Since, etc.).

    5. Re: HTTP is faster to connect by Anonymous Coward · · Score: 0

      A convoluted protocol, unlike the nice simple modern protocols like HTTP/2....

    6. Re:HTTP is faster to connect by dunkelfalke · · Score: 3, Interesting

      FTP convoluted? Seriously? I have recently written an FTP client, it was by far the easiest protocol I have ever implemented. Hell, XMODEM is more complicated.

      --
      "It's such a fine line between stupid and clever" -- David St. Hubbins, Spinal Tap
    7. Re:HTTP is faster to connect by Anonymous Coward · · Score: 0

      Very true. One of the first programs I used to always put on Windows installs was SlimFTPd (no longer developed), I just opened the source code now and the whole thing is about 1300 lines, and about half of that is simply just detecting and notifying the user about all possible errors messages, etc.

    8. Re:HTTP is faster to connect by demonlapin · · Score: 1

      Oh, man, bringing back some memories there. Too bad there wasn't an ftpd for the NCSA Telnet suite. Would have been really handy in the DOS days.

    9. Re:HTTP is faster to connect by Anonymous Coward · · Score: 1

      Have you written an FTP server, by any chance? A client can get away with doing very little, but a halfway-reliable FTP server needs to account for a lot of weirdness in the protocol.

      Of protocols that are still commonly used today, HTTP 1.1 and POP3 are both simpler by far if you're implementing them over raw TCP, and if you're willing to piggyback on SSH you'll find that SFTP is a far more straightforward approach to doing exactly the same thing that FTP does.

    10. Re:HTTP is faster to connect by Wootery · · Score: 1

      Possibly you meant moved *by* the application?

      Are you just being obtuse? It seems perfectly clear that buchner.johannes was referring to the elimination of a copy-to-userland copy-back-to-the-kernel roundtrip.

      As you say, that's just what happens.

    11. Re:HTTP is faster to connect by epine · · Score: 1

      sendfile(2) has a very precarious history of not working reliably with things like NFS and ZFS, or if working, the performance hit in kernel-land being major.

      Wow. +5 Anonymous Coward

      Just one question.

      Algernon, is that you?

  4. FTP caching by ls671 · · Score: 0

    Just put some memory on the server and sure the files will be cached by the OS in memory in the buffer/cache area.

    --
    Everything I write is lies, read between the lines.
    1. Re:FTP caching by Anonymous Coward · · Score: 2

      Hint: the "cache" mentioned by the article are several world-wide content-delivery networks. That's a fleet of 10Gbps servers located closer to the data consumers, giving you much better throughput *and* latency, and some DDoS resistance for free (and a lot more than "some" for $$$).

      Why the hell is the parent scored "3"? At least tag it "funny"...

    2. Re:FTP caching by ls671 · · Score: 1

      Just use a reverse-proxy and force caching duh!

      --
      Everything I write is lies, read between the lines.
    3. Re:FTP caching by ls671 · · Score: 1

      Or use a ftp reverse proxy like this one for cdn type use cases:

      http://www.delegate.org/delega...

      The following is a real example of a configuration of DeleGate on ftp://ftp2.delegate.org running as a caching-FTP-reverse-proxy. It expires the cache by 1 seconds because it is just for a backup server of ftp://ftp.delegate.org that is, it returns cached data only when the target server is down.

      --
      Everything I write is lies, read between the lines.
  5. NEWS FLASH!@! by faedle · · Score: 3, Funny

    uucp now deprecated by ftp.

    1. Re:NEWS FLASH!@! by Anonymous Coward · · Score: 1

      I actually worked at a place back in 2007 that still had servers in the wild where UUCP was the only option to transport files. I don't miss the slight line noise on the crappy phone lines running to customer sites corrupting my files 2/3 of the way through!

  6. Privacy, Authentication? by bill_mcgonigle · · Score: 1

    I was pretty excited by the title - thought maybe there would be a wholesale move to HTTPS, given that it's 2017 and all.

    Signed packages are great, but everything should be working towards being pro-privacy and MitM-resistant by this point. Leaking metadata is so 2014.

    --
    My God, it's Full of Source!
    OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
    1. Re:Privacy, Authentication? by omnichad · · Score: 2

      Compatibility, for one. If you want to support downloads from very old systems, then that HTTPS has to use insecure encryption anyway and one IP address per hostname.

      If there's one place where you'd want to allow old systems to connect, it's for downloading system updates.

    2. Re:Privacy, Authentication? by GuB-42 · · Score: 2

      The "lack of caching and acceleration" may be one of the reasons to stay with HTTP.

      HTTPS proxy support is very limited by design (because a proxy is a man-in-the-middle). And a caching HTTP proxy is really great for public repositories.
      Also, HTTPS is supported in the client, it is just that most servers are HTTP-only.

    3. Re: Privacy, Authentication? by Anonymous Coward · · Score: 0

      Maybe not. In some cases the old systems should just die and be replaced.

    4. Re: Privacy, Authentication? by Anonymous Coward · · Score: 0

      Well, signed with a CA, at least your cert(s) will be mitm resistant.

  7. As Aristotle said... by swimboy · · Score: 1

    ...and nothing of value was lost.

    --
    Ask me how the Heisenberg Principle may or may not have saved my life.
  8. NAT killed the FTP star by Anonymous Coward · · Score: 2, Insightful

    FTP has been obsolescent ever since NAT became widespread. HTTP passes through NAT with ease since only one TCP connection is established by the client to the server. The FTP way of using two separate connections for commands and data, and making the server connect back to the client, was always problematic. Passive mode FTP, in which the client establishes both connections, was always a lousy kludge to fix a fundamental incompatibility with NAT.

    1. Re:NAT killed the FTP star by petermgreen · · Score: 1

      FTP was an established enough protocol that most NATs added specific support for it.

      --
      note: i'm known as plugwash most places but i screwd up registering that here somehow in the past and now can't register
    2. Re:NAT killed the FTP star by Anonymous Coward · · Score: 0

      Kludges upon kludges.

    3. Re:NAT killed the FTP star by tlhIngan · · Score: 1

      FTP was an established enough protocol that most NATs added specific support for it.

      Which promptly broke when you enabled TLS and encrypted the control channel. (Not just FTPS, but this is running on regular FTP).

    4. Re:NAT killed the FTP star by Anonymous Coward · · Score: 0

      Eh? non-broken ftps defaults to passive mode. Which punches through NAT just fine, thank you very much, as long as the ftp *server* is not under NAT.

      Which doesn't make it any less of a pain for one-way data serving. http is much better for public data[1], and https is a bit better.

      [1] there is a thing called traffic analysis.

    5. Re:NAT killed the FTP star by thegarbz · · Score: 2

      Today I learnt that FTP has a problem with NAT. No really you just taught me that. I've been using FTP for decades (literally) behind NAT, not behind NAT. I've never noticed a difference.

      While someone may have done some kludge somewhere at some point. I never noticed. Why should other users?

    6. Re:NAT killed the FTP star by Anonymous Coward · · Score: 0

      https://www.openbsd.org/faq/pf/ftp.html

    7. Re:NAT killed the FTP star by Erik+Hensema · · Score: 1

      The thing you may have noticed is that FTP sends your password over the line unencrypted. This is due to the problems with NAT. An encrypted variant of FTP exists, but it doesn't work over NAT at all. Therefore almost no servers support it.

      Unencrypted FTP works fine over nat. It does require a specific ALG (application layer gateway) on the firewall, but that's been mainstrain for decades now.

      --

      This is your sig. There are thousands more, but this one is yours.

    8. Re:NAT killed the FTP star by thegarbz · · Score: 1

      I've never seen an FTP server support security extension (though plenty of clients) even before NAT became widely used. I have however used SFTP quite a lot. So even for security minded, alternatives which work exist. I reiterate: why should users care?

    9. Re:NAT killed the FTP star by Anonymous Coward · · Score: 0

      Yes, my "anonymous" password is a big secret.

    10. Re: NAT killed the FTP star by p91paul · · Score: 1

      Sftp is not ftp, is file transfer over ssh. So, security stands as a reason why users should care and stop using ftp.

    11. Re: NAT killed the FTP star by thegarbz · · Score: 1

      I know what it is which is why I said I've never seen an FTP server support security, immediately followed by I used SFTP a lot.
      Point is, for security there are alternatives.

  9. *sniff* by __aaclcg7560 · · Score: 1

    Since I live in Silicon Valley, the fastest way to download a Linux distro during the dial-up days was to download from Australian FTP servers. They and my dial-up UNIX provider had a direct connection to MAE-West, which was about five miles from where I lived at the time. It often took a week to download overnight each CD of a five-CD distro.

    1. Re:*sniff* by __aaclcg7560 · · Score: 2

      You forgot to mention the part about how you would jack off to photos of Mae West while you waited for the download, and you would pass out from exertion before reaching climax, because your sexual prowess is so bad that you can't even perform sexually for yourself.

      I was never into ASCII porn.

      Hand cramps, presumably.

      Pipe clamps worked better.

  10. Debian S released by Anonymous Coward · · Score: 0

    You now need our specialized app to install Debian, instead of standard protocols.

    Seriously, FTP is a standard that needs supporting, how else would you download Firefox without IE/Edge?

    1. Re:Debian S released by A.+Craig+West · · Score: 3, Informative

      wget

      --
      It's not a bug, it's a feature...
    2. Re:Debian S released by duke_cheetah2003 · · Score: 1

      how else would you download Firefox without IE/Edge?

      With another computer, of course.

    3. Re:Debian S released by omnichad · · Score: 3, Informative

      How else would you download Firefox without IE/Edge:

      In Powershell:
      Invoke-WebRequest -OutFile Firefox.exe "https://download.mozilla.org/?product=firefox-53.0-SSL&os=win64&lang=en-US"

      But I would rather use Edge than Powershell.

    4. Re:Debian S released by Anonymous Coward · · Score: 0

      Uppercase characters on the command line? That's so cute!

    5. Re:Debian S released by thegarbz · · Score: 1

      how else would you download Firefox without IE/Edge?

      I'm trying to come up with a scenario that would require someone to never start IE/Edge even if just for downloading Firefox. Maybe you can help me with that.

    6. Re:Debian S released by Anonymous Coward · · Score: 0

      For fun, and when the first thing done post installation is to throw the IE icon and others if applicable (Windows Media Player etc.) in the trash.
      If you're already network-connected when launching IE, it will also load some shit like msn.com or Windows Live website or whatever it is this decade (well, I don't know if IE11 and Edge do). No need to waste kilobytes for some web site I don't intend to visit.

  11. First Gohper by Anonymous Coward · · Score: 0

    Now this.

    Bleh.

    1. Re:First Gohper by Anonymous Coward · · Score: 0

      Hipsters won't be happy until absolutely every protocol has been replaced by HTTP. Since I'm posting through an HTTP CONNECT tunnel right now, it's happened already, the hipsters have won.

  12. *xz by bib1620 · · Score: 1

    Until I can list only *xz files, that I would like to see (s)ftp continue.

  13. Farewell FTP by duke_cheetah2003 · · Score: 4, Interesting

    Along with many other antiquated protocols, FTP is now going the way of gopher, telnet and other such early protocols the internet used.

    FTP was a neat tool in its day, with lots of anonymous-enabled repositories of free software (and sometimes not-so-free.) Gone are the days of highjacking a server with lots of disk to make it a file dump via FTP.

    As more repositories close down, I wonder how they will be replaced? I have not seen much in the way of clearing houses for free software in web-page format, yet. Sure, a lot of linux distros are hosted up on websites, but rarely do you find indexes like you can with FTP easily.

    I'll miss the days of using somewhat questionable 'ftp search' websites that tried to scrape as much info as they could from anonymous-enabled FTP servers around the globe.

    You'll be missed, good ol' FTP.

    1. Re:Farewell FTP by eneville · · Score: 4, Insightful

      Sure, a lot of linux distros are hosted up on websites, but rarely do you find indexes like you can with FTP easily.

      I'll miss the days of using somewhat questionable 'ftp search' websites that tried to scrape as much info as they could from anonymous-enabled FTP servers around the globe.

      You'll be missed, good ol' FTP.

      Yes, I think the real problem was just how to embed adverts into the listing output. If that problem could be solved then people would welcome FTP back with open arms.

    2. Re:Farewell FTP by Gavagai80 · · Score: 1

      FTP for the purpose of downloading is now rare. FTP for uploading files to web hosts is still ubiquitous, more so than SFTP.

      --
      This space intentionally left blank
  14. Average comuter user to stupid by Anonymous Coward · · Score: 0

    To use either server or client.

    If I could roll back anything it would be the GUI.

    1. Re:Average comuter user to stupid by Blaskowicz · · Score: 1

      Windows 98 with the bundled IE5 was really good for this. An explorer.exe window had three modes of operation basically : web browser, file manager and FTP client, the latter looking about identical to browsing local files.
      So, you've got a D:\crap window open, a D:\foo window perhaps, an Internet Explorer window you use for browsing some file archive website or whatever else. You can use the Internet Explorer window to browse a ftp site you've found, or turn the D:\foo window into a FTP client by hitting alt-d, entering something like ftp://ftp.site.com, hitting enter, then drag'n'drop files between the D:\crap window and the FTP client window.

      I suppose KDE does this or did this (what with Konqueror being deprecated. But I have few interest in KDE anyway as they keep rewriting it once or twice a decade and adding fade out effects or whatever)
      Windows XP/IE6 also did it and ME, 2000.

  15. help by Anonymous Coward · · Score: 0

    help! this page doesn't show all comments on mobile and the sliders do not work with touch.

  16. Fond memories.. by Anonymous Coward · · Score: 0

    The protocol itself may be antique but it was a fresh breath of air sometimes. Failing to find a manufacturer's driver on their crappy maze of a support website, yet I could anonymously get to there ftp site with a simple straight forward list of drivers and software.

    Some things just don't need web 2.0 lipstick slapped onto it. Sometimes I just want a file, not a damn "experience".