ProFTPD module mod_timelimit


The mod_timelimit configured time of service starting and ending as unit of 24 hours

This module was tested against over ProFTPD 1.2.0. Installation instructions are discussed here.

The most current version of mod_timelimit can be found at:

http://mirror.oops.org/pub/oops/proftpd/modules/mod_timelimit/ http://svn.oops.org/wsvn/ProFTPd.mod_timelimit

Author

Original author: SeonKon Choi <bushi at mizi.com>
Current author: JoungKyun.Kim <admin at oops.org>

Please contact JoungKyun.Kim <admin at oops.org> with any questions, concerns, or suggestions regarding this module.

Directives


UpTime

Syntax:UpTime [ 24H ["messages"] ]
Default: UpTime 0 "Sorry, out of operation time ( %B:00 ~ %b:00 )"
Context: server config, <VirtualHost>, <Global>, <Anonymous>
Module: mod_timelimit
Compatibility: 1.2.0 or later

The UpTime direction is configured time of service starting as unit of 24 hours. If this direction is set by starting time, configured equivalent account (Virtualhost, Anonymous, real) doesn't access before starting service time.

If don't set UpTime direction, UpTime direction is set 0 o'clock.

"message" is displayed alert to user whern they attempt login before UpTime, and use magic cookie %B (Uptime) and %b (DownTime). If config DownTime message, UpTime message is overwrited with DownTime message.


DownTime

Syntax:DownTime [ 24H ["messages"] ]
Default: DownTime 0 "Sorry, out of operation time ( %B:00 ~ %b:00 )"
Context: server config, <VirtualHost>, <Global>, <Anonymous>
Module: mod_timelimit
Compatibility: 1.2.0 or later

The DownTime direction is configured time of service ending as unit of 24 hours. If this direction is set by service ending time, configured equivalent account (Virtualhost, Anonymous, real) doesn't access after service time end.

If don't set DownTime direction, DownTime direction is set 0 o'clock.

"message" is displayed alert to user whern they attempt login after DownTime, and use magic cookie %B (Uptime) and %b (DownTime). If config DownTime message, UpTime message is overwrited with DownTime message.


Installation

First, source download at http://mirror.oops.org/pub/oops/profptd/modules/mod_timelimit-VERSION.tar.bz2, and unpack bz2 compress. Web browser can't access this ftp site, use ftp client program.

Or, checkout SVN repository with anonymous privileges as follow:
svn export svn://svn.oops.org/data/svn/proftpd/mod_timelimit/trunk ./mod_timelimit

To install mod_timelimit

1. build with proftpd source copy mod_timelimit.c to contrib/ in proftpd source 1) static build ./configure --with-module=...:mod_timelimit 2) shared build ./configure --with-shared=...:mod_timelimit make make install 2. shared build uncompress mod_timelimit source first, run configure script ./configure --with-proftpd-header=/usr/include/proftpd \ --with-proftpd-lib=/usr/lib/proftpd make install (or make DESTDIR=path install) * configure options --with-proftpd-header Header files location of proftpd --with-proftpd-lib Module of proftpd location

Usage

Example Configuration

By follow configuration, service is enabled from 12 o'clock to 21 o'clock.

<IfModule mod_timelimit.c> UpTime 12 DownTime 21 </IfModule>

Author: JoungKyun.Kim <admin at oops.org>
Last Updated: $Id: mod_timelimit.html 11 2014-03-14 18:22:24Z oops $


© Copyright 2014 JoungKyun.Kim
All Rights Reserved