| 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>ProFTPD module mod_dynmasq</title> |
| 5 | </head> |
| 6 | |
| 7 | <body bgcolor=white> |
| 8 | |
| 9 | <hr> |
| 10 | <center> |
| 11 | <h2><b>ProFTPD module <code>mod_dynmasq</code></b></h2> |
| 12 | </center> |
| 13 | <hr><br> |
| 14 | |
| 15 | The <code>mod_dynmasq</code> module is designed for those sites that |
| 16 | use the <code>MasqueradeAddress</code> directive in conjunction with DNS |
| 17 | names whose addresses periodically change, <i>e.g.</i> "dyndns" |
| 18 | addresses. The <code>proftpd</code> daemon is not aware of any changes |
| 19 | to the IP address for a <code>MasqueradeAddress</code> that happen after |
| 20 | the daemon has started up. The <code>mod_dynmasq</code> module periodically |
| 21 | checks all configured <code>MasqueradeAddress</code> directives and resolves |
| 22 | their IP addresses, updating the stored addresses as needed. |
| 23 | |
| 24 | <p> |
| 25 | This module is contained in the <code>mod_dynmasq.c</code> file for |
| 26 | ProFTPD 1.2.10 and later, and is not compiled by default. Installation |
| 27 | instructions are discussed <a href="#Installation">here</a>. |
| 28 | |
| 29 | <p> |
| 30 | The most current version of <code>mod_dynmasq</code> is distributed with |
| 31 | the <code>proftpd</code> source distribution. |
| 32 | |
| 33 | <h2>Author</h2> |
| 34 | <p> |
| 35 | Please contact TJ Saunders <tj <i>at</i> castaglia.org> with any |
| 36 | questions, concerns, or suggestions regarding this module. |
| 37 | |
| 38 | <h2>Directives</h2> |
| 39 | <ul> |
| 40 | <li><a href="#DynMasqRefresh">DynMasqRefresh</a> |
| 41 | </ul> |
| 42 | |
| 43 | <hr> |
| 44 | <h3><a name="DynMasqRefresh">DynMasqRefresh</a></h3> |
| 45 | <strong>Syntax:</strong> DynMasqRefresh <em>secs</em><br> |
| 46 | <strong>Default:</strong> None<br> |
| 47 | <strong>Context:</strong> server config<br> |
| 48 | <strong>Module:</strong> mod_dynmasq<br> |
| 49 | <strong>Compatibility:</strong> 1.2.10 |
| 50 | |
| 51 | <p> |
| 52 | The <code>DynMasqRefresh</code> directive configures the amount of time, |
| 53 | in seconds, between <code>mod_dynmasq</code>'s checking and updating of |
| 54 | all <code>MasqueradeAddress</code> directives. If no |
| 55 | <code>DynMasqRefresh</code> directive is configured, then the module will |
| 56 | do no checking. |
| 57 | |
| 58 | <p> |
| 59 | The process of resolving a DNS name to its IP address can, depending on |
| 60 | the DNS configuration, take a noticeable amount of time. This, combined |
| 61 | with the number of <code>MasqueradeAddress</code> directives in your |
| 62 | <code>proftpd.conf</code>, can cause <code>mod_dynmasq</code> to make |
| 63 | the daemon unavailable while it resolves all addresses. Therefore it |
| 64 | is highly recommended that the configured interval be as long as possible, |
| 65 | for example for 8 hours. |
| 66 | |
| 67 | <p> |
| 68 | Example: |
| 69 | <pre> |
| 70 | <IfModule mod_dynmasq.c> |
| 71 | # Refresh any configured MasqueradeAddress directives every 8 hours |
| 72 | DynMasqRefresh 28800 |
| 73 | </IfModule> |
| 74 | </pre> |
| 75 | |
| 76 | <p> |
| 77 | See also: |
| 78 | |
| 79 | <p> |
| 80 | <hr> |
| 81 | <h2><a name="Installation">Installation</a></h2> |
| 82 | The <code>mod_dynmasq</code> module is distributed with ProFTPD. Follow the |
| 83 | usual steps for using third-party modules in ProFTPD: |
| 84 | <pre> |
| 85 | $ ./configure --with-modules=mod_dynmasq |
| 86 | </pre> |
| 87 | To build <code>mod_dynmasq</code> as a DSO module: |
| 88 | <pre> |
| 89 | $ ./configure --enable-dso --with-shared=mod_dynmasq |
| 90 | </pre> |
| 91 | Then follow the usual steps: |
| 92 | <pre> |
| 93 | $ make |
| 94 | $ make install |
| 95 | </pre> |
| 96 | |
| 97 | <p> |
| 98 | For those with an existing ProFTPD installation, you can use the |
| 99 | <code>prxs</code> tool to add <code>mod_dynmasq</code>, as a DSO module, to |
| 100 | your existing server: |
| 101 | <pre> |
| 102 | $ prxs -c -i -d mod_dynmasq.c |
| 103 | </pre> |
| 104 | |
| 105 | <p> |
| 106 | <hr> |
| 107 | <font size=2><b><i> |
| 108 | © Copyright 2004-2013 TJ Saunders<br> |
| 109 | All Rights Reserved<br> |
| 110 | </i></b></font> |
| 111 | <hr> |
| 112 | |
| 113 | </body> |
| 114 | </html> |