GithubHelp home page GithubHelp logo

docker-anon-ftp's Introduction

anon-ftp: An quick, anonymous ftp server docker image

This image is meant for running something like a public read-only share. User accounts are not supported and all data access is meant to be read only via ftp anonymous login.

Up-and-Running

View my included docker-compose.yml for a runtime configuration example or check the below one-liner for a quick launch!

docker run -d -p 20-21:20-21 -p 65500-65515:65500-65515 -v /tmp:/var/ftp:ro metabrainz/docker-anon-ftp

Runtime Configuration Options

There are a series of available variables you can tune at your own discretion. The defaults are most likely acceptable for most use cases.

  • ANON_ROOT - The directory in the container which vsftpd will serve out (default: /var/ftp)
  • PASV_MAX_PORT - The maximum port for pasv communiation (default: 65515)
  • PASV_MIN_PORT - The minimum port for pasv communication (default: 65500)
  • MAX_PER_IP - The maximum connections from one host (default: 2)
  • MAX_LOGIN_FAILS - Maximum number of login failures before kicking (default: 2)
  • MAX_CLIENTS - Maximum number of simultaneously connected clients (default: 50)
  • ANON_MAX_RATE - Maximum bandwidth allowed per client in bytes/sec (default: 6250000)
  • FTPD_BANNER - An ftpd banner displayed when a client connects (default: Welcome to an awesome public FTP Server)
  • BANNER_FILE - File containing ftpd banner (default: ``)

Notes

  • Ensure you use :ro at the end of your bind mount declaration!
  • We utilize ftp passive mode so we can define the ports we need and not have to use --net=host. This is the preferred way to use ftp!
  • You can find some great documentation on configuration options and other vsftpd information on the Archwiki and in the man page

docker-anon-ftp's People

Contributors

zas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

docker-anon-ftp's Issues

Include files to serve within the docker?

It looks like this project would help me with something I'm trying to do, however I would need to distribute my docker with all the files to serve via ftp within the docker, not on the external file system.

Is there a way to easily accomplish this?

Possibility to add users

Hi,
Can you please make it possible to add user/passwords? This way we can use this container to test FTP features.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.