Git Product home page Git Product logo

docker-ftpsmb's Introduction

docker-ftpsmb

Docker image from base Ubuntu 18.04 that contains basic firewall (ufw), ftp (proftpd) and samba (v4) servers. The purpose is an anonymous ftp/smb server to store and distribute some files.

Environemtn variables

  • OS_FTP_USER - default: ftp, specify a real os user to own the ftp directory
  • DATA_DIR - default: /srv/ftp, the data directory
  • FTP_USER, FTP_PASSWORD, default: empty, specify a virtual ftp user and password FIREWALL_ENABLED, default: empty, can be true` to enable ufw

Notes on the firewall

  1. The containers need to be ran as priviledged for the firewall to work
  2. The firewall is useless in the context of Kubernetes deployment

Sample configs

  1. The etc directory contains some sample config files for:
    • ufw: allow some ip subnets
    • samba: use an anonymous share mapped to /srv/ftp
    • proftpd: use anonymous access to /srv/ftp
  2. These sample configs are mapped at container runtime, can be loaded as configmaps in Kubernetes as well.

Release notes

  • 2019-11-19 [1.0.6]:
    • Start cron service as well
  • 2019-08-14 [1.0.5]:
    • Added cron package
  • 2019-08-13 [1.0.4]:
    • Added dedicated SMB_USER/SMB_PASSWORD env variables, alongside FTP_USER/FTP_PASSWORD
    • Set write group to a default @sambashare
    • Set samba log to /var/log/samba.log instead of syslog
  • 2019-08-03 [1.0.3]:
    • Added samba user using FTP_USER and FTP_PASSWORD
    • In the sample etc/samba/smb.conf, guests now are read only and the designated FTP_USER can write
  • 2019-07-26 [1.0.2]:
    • Added FTP_USER and FTP_PASSWORD env vars to allow creation of a virtual ftp user, if not specified anonymous will be the default
    • Added FIREWALL_ENABLED, that if true will enable ufw, otherwise disable at container start
  • 2019-07-24 [1.0.1]:
    • Replaced vsftpd with proftpd as is easier to configure and does the same job
  • 2019-06-06 [1.0.0]:
    • Initial release

docker-ftpsmb's People

Stargazers

 avatar

Watchers

 avatar

Forkers

taylor-cao

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.