mod_dynmasq
MasqueradeAddress
proftpd
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.
mod_dynmasq.c
The most current version of mod_dynmasq is distributed with the proftpd source distribution.
Please contact TJ Saunders <tj at castaglia.org> with any questions, concerns, or suggestions regarding this module.
The DynMasqRefresh directive configures the amount of time, in seconds, between mod_dynmasq's checking and updating of all MasqueradeAddress directives. If no DynMasqRefresh directive is configured, then the module will do no checking.
DynMasqRefresh
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.
proftpd.conf
Example:
<IfModule mod_dynmasq.c> # Refresh any configured MasqueradeAddress directives every 8 hours DynMasqRefresh 28800 </IfModule>
See also:
$ ./configure --with-modules=mod_dynmasq
$ ./configure --enable-dso --with-shared=mod_dynmasq
$ 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
$ prxs -c -i -d mod_dynmasq.c