mod_dynmasqmodule is designed for those sites that use the
MasqueradeAddressdirective in conjunction with DNS names whose addresses periodically change, e.g. "dyndns" addresses. The
proftpddaemon is not aware of any changes to the IP address for a
MasqueradeAddressthat happen after the daemon has started up. The
mod_dynmasqmodule periodically checks all configured
MasqueradeAddressdirectives and resolves their IP addresses, updating the stored addresses as needed.
This module is contained in the
mod_dynmasq.c file for
ProFTPD 1.2.10 and later, and is not compiled by default. Installation
instructions are discussed here.
The most current version of
mod_dynmasq is distributed with
proftpd source distribution.
Please contact TJ Saunders <tj at castaglia.org> with any questions, concerns, or suggestions regarding this module.
DynMasqRefresh directive configures the amount of time,
in seconds, between
mod_dynmasq's checking and updating of
MasqueradeAddress directives. If no
DynMasqRefresh directive is configured, then the module will
do no checking.
The process of resolving a DNS name to its IP address can, depending on
the DNS configuration, take a noticeable amount of time. This, combined
with the number of
MasqueradeAddress directives in your
proftpd.conf, can cause
mod_dynmasq to make
the daemon unavailable while it resolves all addresses. Therefore it
is highly recommended that the configured interval be as long as possible,
for example for 8 hours.
<IfModule mod_dynmasq.c> # Refresh any configured MasqueradeAddress directives every 8 hours DynMasqRefresh 28800 </IfModule>
mod_dynmasqmodule, follow the usual steps for using third-party modules in proftpd:
./configure --with-modules=mod_dynmasqTo build
mod_dynmasqas a DSO module:
./configure --enable-dso --with-shared=mod_dynmasqThen follow the usual steps:
make make install
For those with an existing ProFTPD installation, you can use the
prxs tool to add
mod_dynmasq, as a DSO module, to
your existing server:
# prxs -c -i -d mod_dynmasq.c